×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

Astroberry Focuser with Adafruit Motor HAT

  • Posts: 16
  • Thank you received: 0
Thanks for the input.

By the end of the week the Adafruit Motor HAT will be in my local store. I'll ask for a 12V stepper motor and try to get that to work. Then I will begin with step two: putting it on my telescope. I have a Starway Crayford Focusser with a 10:1 micro focussing. A canon 700D will be attached to it.



This will be my second electronic DIY project after putting the raspberry PI together. So I'm a newbie on this topic :)

Gunther
Remote PI : Raspberry PI 3B+ with Stellarmate 1.16.2 /
Telescope : Skywatcher HEQ5 /
Camera : Canon 700D
5 years 2 months ago #34612
Attachments:

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

  • Posts: 16
  • Thank you received: 0
Yesterday I received my Adafruit Motor HAT earlier then expect. So I started working on my focusser. In the image you can see the Adafruit Motor HAT attached to the Raspberry Pi and to a hybdrid stepper motor. I connected the stepper motor as a bipolar motor.

After installing the python driver I made a script so I could test the stepper motor. It all works well :)
Next step was installing the astroberry-diy. I followed the steps written on GitHub. I can find the focusser in Ekos. There is no error message, but the focusser is probably not working cause he doesn't respond.
I used the command : cmake -DWITH_WIRINGPI=OFF -DCMAKE_INSTALL_PREFIX=/usr ..
The Adafruit Motor HAT is working through GPIO, should i use the option -DWITH_WIRINGPI=ON ? Or do I need to do something else?

kind regards,
Gunther
Remote PI : Raspberry PI 3B+ with Stellarmate 1.16.2 /
Telescope : Skywatcher HEQ5 /
Camera : Canon 700D
5 years 2 months ago #34690
Attachments:

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

  • Posts: 983
  • Thank you received: 375
For Adafruit Motor HAT you should use other driver. You can find it here github.com/rkaczorek/astroberry-amh
Good luck!
5 years 2 months ago #34699

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

  • Posts: 1309
  • Thank you received: 226
Kaczorek, would it be possible to make the drive mode selectable? As it is, to change from single step to microstep requires editing the source and recompiling.
Thanks.
5 years 2 months ago #34708

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

  • Posts: 16
  • Thank you received: 0
Hi Kaczorek,

I have downloaded the suggested driver bu I have trouble with the last step for building the driver. It is the make install command.

Can you make something out of this message?

[ 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/stellarmate/astroberry-amh/build/libs/AdafruitStepperMotorHAT_CPP/tmp/libAdafruitStepperMotorHAT-gitupdate.cmake:136 (message):


Failed to unstash changes in:
'/home/stellarmate/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


It looks I have probably an older version of wiringpi. Updating this first.
Remote PI : Raspberry PI 3B+ with Stellarmate 1.16.2 /
Telescope : Skywatcher HEQ5 /
Camera : Canon 700D
Last edit: 5 years 2 months ago by Gunther Fleerackers.
5 years 2 months ago #34718

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

  • Posts: 983
  • Thank you received: 375

Remove build/libs/AdafruitStepperMotorHAT_CPP before make install
OR
after make (it goes successfully) manually copy indi_amh_focuser to /usr/bin and indi_amh_focuser.xml to /usr/share/indi
5 years 2 months ago #34719

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

  • Posts: 983
  • Thank you received: 375
This is just a simple implementation of a driver for Adafruit HAT. It would be good idea to update it to the latest Astroberry-DIY, which is much more mature. I could do this some time, in the meantime new pull requests are more than welcomed.
The following user(s) said Thank You: Gunther Fleerackers
5 years 2 months ago #34720

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

  • Posts: 16
  • Thank you received: 0
I had copied the files manually and it works :) Thank you for make it so easy.

Gunther
Remote PI : Raspberry PI 3B+ with Stellarmate 1.16.2 /
Telescope : Skywatcher HEQ5 /
Camera : Canon 700D
5 years 2 months ago #34725

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

  • Posts: 1309
  • Thank you received: 226
Thank you, I was not aware of Astroberry-DIY. I'll have a look.
5 years 2 months ago #34729

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

  • Posts: 34
  • Thank you received: 2
Radek,

A question? How does the position reset function work? I’ve had kstars/ekos crash a few times while focusing leaving the focuser near focus and near focus being the zero position rather than the zero position being racked in. I understand position reset allows one to move to negative positions while still identifying the new position as zero. How many steps is the focuser moved inward when selecting position reset?

Regards,

Steve
4 years 10 months ago #39997

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

  • Posts: 1309
  • Thank you received: 226
I've encountered an issue.
I'm setting up a new Raspberry Pi 4 with Rlancaste's script, which is wonderful.
When I build the AMH focuser driver everything appears to complete. I copy the driver to /use/bin/ and the XML to /usr/share/indi/.
However when I run the driver in EKOS, The driver's does not appear in the INDI control panel, nor in the focul module. I can however see it as a running task in a resource monitor.
4 years 7 months ago #42442

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

  • Posts: 983
  • Thank you received: 375
Check the XML file and it's syntax by comparing to other files in the directory.
4 years 7 months ago #42493

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

Time to create page: 0.981 seconds