×

INDI Library v1.9.9 Released (30 Nov 2022)

Bi-monthly INDI Library released with new drivers and bug fixes.

Astroberry Focuser with Adafruit Motor HAT

  • Posts: 24
  • Thank you received: 1
I compiled and installed the Adafruit Motor HAT driver. So far so good. I run the Raspberry Pi as remote INDI server. I run the KStars/Ekos client on Windows 10 on my desktop. But the "Motor HAT Focuser" is not showing in the list of focusers in the KStars Profile Editor, so I can not add it to my profile.
I checked that the .xml file is in the /usr/share/indi folder and it is.

Any suggestions?
Windows 10 64-bit with remote access to Embedded Raspberry PI 3 with Ubuntu Mate 16.04.3 LTS and KStars 2.9.8, Skywatcher HEQ5 PRO, Robtics 80mm F7 doublet apochromaat refractor + CentralDS CDS-600DII
5 years 2 months ago #20753

Please Log in or Create an account to join the conversation.

  • Posts: 1284
  • Thank you received: 224
berendj:
Place the executable in /usr/bin, not in /usr/local/bin
INDI/KStars on Raspberry Pi 4, 4gb
Raspbian Buster with AstroPi3 script configuration
Skywatcher HEQ5 Pro Mount
Canon 600D Camera
Orion SSAG/ASI120mm @280mm Guide Scope
PHD2
Waveshare Stepper Motor Board - DIY Focuser
Adafruit GPS Module
Generic Bluetooth Joystick.
Startech 7 port powered USB Hub.
5 years 2 months ago #20754

Please Log in or Create an account to join the conversation.

  • Posts: 24
  • Thank you received: 1
Thanks for that suggestion Ihoujin.
I moved the file, but it still does not show in the profile editor. (see attachment)
When i open the Web Manager in my browser, the Motor HAT Focuser does show in the drivers select box in the focuser group and is select-able.

I installed KStars/Ekos also on the Raspberry PI itself, but the result is the same.

Lost this battle, but hope to win the war.
Windows 10 64-bit with remote access to Embedded Raspberry PI 3 with Ubuntu Mate 16.04.3 LTS and KStars 2.9.8, Skywatcher HEQ5 PRO, Robtics 80mm F7 doublet apochromaat refractor + CentralDS CDS-600DII
5 years 2 months ago #20757
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 983
  • Thank you received: 375
It works over webmanager because the xml file does exist on the machine the webmanager is running on.
But it doesn't exist on the macine you are running KStars/Ekos on. Probably you need to copy it to your windows machine. Just find the place where all the other driver's xml files are, and copy it there.
--
Radek Kaczorek
Astroberry Server | Orion CT8 | Askar FRA 400 | NEQ6 (hypermod) | Atik 460EX | ASI 1600 | ASI 120MM | Atik EFW2
The following user(s) said Thank You: BJ Ruiterkamp
5 years 2 months ago #20758

Please Log in or Create an account to join the conversation.

  • Posts: 1284
  • Thank you received: 224
I just found that it is possible to increase the I2C baudrate. By default, it is set to only 100KHz. But by increasing it the PPS (pulse per second) signal that dictates to the motor controller how fast to run, can be set to operate at much higher speeds. I experimented up to 2MHz, and settled on 1.5MHz for safety buffer. The end result is I can now drive my stepper motor much faster and effectively implement microstepping, which before would absolutely crawl. With microstepping I get the added benefit of quieter and smoother operation.

To implement this, to /boot/config.txt
dtparam=i2c_baudrate=1500000
For example that will set the frequency to 1.5MHz. And 400000 would be 400KHz.

To verify i2c speed
sudo cat /sys/module/i2c_bcm2708/parameters/baudrate
OR
dmesg
And locate a this related line
bcm2708_i2c 3f804000.i2c: BSC1 Controller at 0x3f804000 (irq 83) (baudrate 1500000)
INDI/KStars on Raspberry Pi 4, 4gb
Raspbian Buster with AstroPi3 script configuration
Skywatcher HEQ5 Pro Mount
Canon 600D Camera
Orion SSAG/ASI120mm @280mm Guide Scope
PHD2
Waveshare Stepper Motor Board - DIY Focuser
Adafruit GPS Module
Generic Bluetooth Joystick.
Startech 7 port powered USB Hub.
The following user(s) said Thank You: Radek Kaczorek
Last edit: 4 years 10 months ago by Andrew.
4 years 11 months ago #23587

Please Log in or Create an account to join the conversation.

  • Posts: 27
  • Thank you received: 2
Hi,

I'm a newbie trying to set up my new RPi 3 B+ as an Indi server using the Astroberry Adafruit Motor HAT driver. I've followed the GitHub instructions however I'm having trouble compiling.

I'm getting the following errors:
Scanning dependencies of target indi_amh_focuser
[ 90%] Building CXX object CMakeFiles/indi_amh_focuser.dir/amh_focuser.o
/home/steve/astroberry-amh/amh_focuser.cpp: In constructor ‘IndiAMHFocuser::IndiAMHFocuser()’:
/home/steve/astroberry-amh/amh_focuser.cpp:79:38: error: ‘setFocuserConnection’ was not declared in this scope
  setFocuserConnection(CONNECTION_NONE);
                                      ^
/home/steve/astroberry-amh/amh_focuser.cpp: In member function ‘virtual bool IndiAMHFocuser::initProperties()’:
/home/steve/astroberry-amh/amh_focuser.cpp:161:66: error: ‘SetFocuserCapability’ was not declared in this scope
  SetFocuserCapability(FOCUSER_CAN_ABS_MOVE | FOCUSER_CAN_REL_MOVE);
                                                                  ^
CMakeFiles/indi_amh_focuser.dir/build.make:62: recipe for target 'CMakeFiles/indi_amh_focuser.dir/amh_focuser.o' failed
make[2]: *** [CMakeFiles/indi_amh_focuser.dir/amh_focuser.o] Error 1
CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/indi_amh_focuser.dir/all' failed
make[1]: *** [CMakeFiles/indi_amh_focuser.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

Any thoughts regarding what the problem might be?

Regards,

Steve
4 years 9 months ago #25382

Please Log in or Create an account to join the conversation.

  • Posts: 27
  • Thank you received: 2
Hi,

I'm a newbie trying to set up a RPi 3 B+ with Ubuntu-MATE Indi server using the Astroberry AMH Focuser driver and I'm getting the following error when compiling:
Scanning dependencies of target indi_amh_focuser
[ 90%] Building CXX object CMakeFiles/indi_amh_focuser.dir/amh_focuser.o
/home/steve/astroberry-amh/amh_focuser.cpp: In constructor ‘IndiAMHFocuser::IndiAMHFocuser()’:
/home/steve/astroberry-amh/amh_focuser.cpp:79:38: error: ‘setFocuserConnection’ was not declared in this scope
  setFocuserConnection(CONNECTION_NONE);
                                      ^
/home/steve/astroberry-amh/amh_focuser.cpp: In member function ‘virtual bool IndiAMHFocuser::initProperties()’:
/home/steve/astroberry-amh/amh_focuser.cpp:161:66: error: ‘SetFocuserCapability’ was not declared in this scope
  SetFocuserCapability(FOCUSER_CAN_ABS_MOVE | FOCUSER_CAN_REL_MOVE);
                                                                  ^
CMakeFiles/indi_amh_focuser.dir/build.make:62: recipe for target 'CMakeFiles/indi_amh_focuser.dir/amh_focuser.o' failed
make[2]: *** [CMakeFiles/indi_amh_focuser.dir/amh_focuser.o] Error 1
CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/indi_amh_focuser.dir/all' failed
make[1]: *** [CMakeFiles/indi_amh_focuser.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

Any thoughts regarding what's missing here?

Regards,

Steve
4 years 9 months ago #25384

Please Log in or Create an account to join the conversation.

  • Posts: 27
  • Thank you received: 2
Apologies for double post. My first post didn't appear and I wasn't sure why. I noticed after the second post that my posts were being moderated before being posted.
4 years 9 months ago #25465

Please Log in or Create an account to join the conversation.

  • Posts: 983
  • Thank you received: 375
The issue has been hotfixed in the last commit. Please redownload the code and recompile.
--
Radek Kaczorek
Astroberry Server | Orion CT8 | Askar FRA 400 | NEQ6 (hypermod) | Atik 460EX | ASI 1600 | ASI 120MM | Atik EFW2
The following user(s) said Thank You: Steve
4 years 9 months ago #25475

Please Log in or Create an account to join the conversation.

  • Posts: 27
  • Thank you received: 2
Thanks Radek!

I can compile but I'm getting this error now when I "make install":
steve@SmackAstroRPi:~/astroberry-amh/build$ sudo make install
[ 10%] Performing update step for 'libAdafruitStepperMotorHAT'
Current branch master is up to date.
No stash found.
No stash found.
No stash found.
CMake Error at /home/steve/astroberry-amh/build/libs/AdafruitStepperMotorHAT_CPP/tmp/libAdafruitStepperMotorHAT-gitupdate.cmake:136 (message):
 
 
  Failed to unstash changes in:
  '/home/steve/astroberry-amh/libs/AdafruitStepperMotorHAT_CPP/'.
 
  You will have to resolve the conflicts manually
 
 
CMakeFiles/libAdafruitStepperMotorHAT.dir/build.make:94: recipe for target 'libs/AdafruitStepperMotorHAT_CPP/src/libAdafruitStepperMotorHAT-stamp/libAdafruitStepperMotorHAT-update' failed
make[2]: *** [libs/AdafruitStepperMotorHAT_CPP/src/libAdafruitStepperMotorHAT-stamp/libAdafruitStepperMotorHAT-update] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/libAdafruitStepperMotorHAT.dir/all' failed
make[1]: *** [CMakeFiles/libAdafruitStepperMotorHAT.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

Apologies for my cluelessness.
4 years 9 months ago #25517

Please Log in or Create an account to join the conversation.

  • Posts: 983
  • Thank you received: 375
This driver uses submodules, which are downloaded to /home/steve/astroberry-amh/build/libs/AdafruitStepperMotorHAT_CPP
Just delete the /home/steve/astroberry-amh/build/libs directory and rerun make install
--
Radek Kaczorek
Astroberry Server | Orion CT8 | Askar FRA 400 | NEQ6 (hypermod) | Atik 460EX | ASI 1600 | ASI 120MM | Atik EFW2
The following user(s) said Thank You: Steve
4 years 9 months ago #25523

Please Log in or Create an account to join the conversation.

  • Posts: 27
  • Thank you received: 2
Victory! Thanks again. Not smart enough, yet, to understand why it worked but it did :)
4 years 9 months ago #25528

Please Log in or Create an account to join the conversation.

Time to create page: 0.901 seconds