×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

Astroberry Focuser with Adafruit Motor HAT

  • 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 1 month 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 1 month 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 1 month 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 1 month ago #34729

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

  • Posts: 27
  • 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 9 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.

  • Posts: 1309
  • Thank you received: 226
Syntax appears to be unchanged, And I've confirmed with test scripts that the motor driver does work.
This appears in my ekos log
"Unable to establish:\n+ Motor HAT Focuser\nPlease ensure the device is connected and powered on."

The bizarre thing was I had it working once the first time I installed it on the Pi4. But I've failed on subsequent rebuilds, and I don't believe I've missed anything. So the code should be fine. But there is some troubleshooting to do.
4 years 7 months ago #42504

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

  • Posts: 1309
  • Thank you received: 226
I managed to get it to work after building the INDI libraries, Drivers and KStars myself.
Happy Ending.
4 years 7 months ago #42542

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

  • Posts: 1309
  • Thank you received: 226
I have come across a modification to the Adafruit Motor Hat Library that improves the performance of the board. Unfortunately I am unclear on how to implement it. If you have the time could you take a look?
Thank you kindly
morepootling.blogspot.com/2016/06/gettin...ruit-dc-stepper.html
4 years 6 months ago #42618

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

Time to create page: 1.995 seconds