×

INDI Library v1.9.8 Released (29 Sep 2022)

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

INDI focuser driver for Waveshare Stepper Motor HAT for Raspberry Pi / Rock Pi

  • Posts: 6
  • Thank you received: 0
Jon, many thanks! Adding custom driver didn't work, but you gave me idea to copy driver from usr/local/bin to usr/bin and it appeared in the list and WORKED! Super thanks for your help! Now off to get a motor and tuning the setup :)
2 years 1 month ago #61293

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

  • Posts: 1279
  • Thank you received: 222
Thank you for your work. I have been inspired to upgrade my motor controller board from the Adafruit HAT to this new one from Waveshare.
Question: Kaczorek pointed out that is can "remember focuser position between runs". Does this mean it stores stepper position on the board? Will it therefore know the position in the focus module when started, or when recovering from a crash?
I have been frustrated by restarting after the occasional crash and the focuser position being reset to zero. Requiring me to intervene to give it room to work with.
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.
2 years 1 month ago #61313

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

  • Posts: 1117
  • Thank you received: 182
I am using MyFocuserPro and that stores the stepper position in the configuration on my Pi4. It always starts out at the last position the focuser was in. Or I can use a Preset and then move to the appropriates starting position, if I prefer.
Atlas Pro AZ-EQ, ASI1600MM-Pro, ASI120MM-S, ES102ED, WO-Z61, Nikon D3300, ASI-EFW, ZWO LRGB,Ha,O3,S2 filter set
2 years 1 month ago #61314

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

  • Posts: 215
  • Thank you received: 16
The indi_wmh_focuser driver stores the absolute position between 0 and the total number of motor/gear positions for your particular setup. The total number being a variable you set in the INDI control panel and is thereby saved in the configuration. If the client dies, the number remains valid in driver memory until the original client (reactivated,) or another some other client, manipulates the focuser once again. If the indiserver or driver dies, the absolute position data is lost.

It may be that storing the configuration prior to a crash or prior to a disconnect would also save the absolute position data, but I never do this. I generally startup the scope with the focuser at 0, then use a preset to go to my initial setting.
SkyWatcher 10" SynScan Goto Dobsonian, SV106 Guide, ZWO ASI178MC, Svbony SV105, SV305, Pi3HQcam, Pi4, DIY WaveShare focuser, Linux Ubuntu, KStars/Ekos, Carte du Ciel/CCDCiel, AstroDMx_Capture, Siril, StarTools, GIMP
2 years 1 month ago #61333

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

  • Posts: 1279
  • Thank you received: 222
Thank you for bringing this new controller board to our attention and for all your efforts in creating the driver for it. I must say, this controller is far superior in every way to the adafruit motor hat. My motor can now run smoother, quicker and quieter with much greater torque.
I haven't had an opportunity to use it in the field yet, but I expect it will perform much more reliably.
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.
2 years 1 month ago #61978

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

  • Posts: 1
  • Thank you received: 0
Great thread ... I have found the Waveshare Stepper Motor HAT to buy (in the UK) - but how do I decide which stepper motor is appropriate? Is there any calculations or is a stepper motor a stepper motor ?

Appreciate any model / parts numbers to look up for the motor side.

Also How are people attaching the motor to the scope / focus knob itself ?

Many thanks
2 years 1 month ago #62203

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

  • Posts: 6
  • Thank you received: 0

This would be good point of reference regarding the stepper motor choice, etc: sourceforge.net/projects/arduinoascomfocuserpro2diy/
2 years 1 month ago #62205

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

  • Posts: 319
  • Thank you received: 24

Good question. I'm building mine as we speak. The electronics is the easy part. You need to refer to the attached document page 22 to know which motor suitable for your scope and start putting the plan together.

This browser does not support PDFs. Please download the PDF to view it: Download PDF

Clear Skies!
Mohamed

Permanent
C9.25 f/10, HEQ5, MyFocuserPro2, OAG, ASI174MC guide, ASI533MC Pro

Portable
WO Z61, iOptron SmartEQ Pro+, MyFocuserPro2, OAG, ASI120MM guide, ASI183MM Pro, EFW
2 years 1 month ago #62207
Attachments:

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

  • Posts: 1279
  • Thank you received: 222
I'm still using the same motor I used with the adafruit motor hat. A smaller nema 14. It has plenty of torque at 12 volts. However, I have purchased a 12v nema 17 motor with 0.9°/step (400 step/rev) as an optional upgrade. I'll decide what to keep once I've used it a bit more.
As for attaching it you have options that you will have to work out what is best for your case.
You can:
Direct drive the focus shaft for zero backlash, but may not have the step resolution within the CFZ (critical focus zone)
Direct drive the fine focus knob. May introduce backlash, but increases step resolution.
Gear driven focus shaft or fine focus knob. Minimal added backlash, allows for gear reduction.
Belt driven. Use fiber reinforced belts with enough tension to avoid slack when changing directions. Belts also seem to slacken in the cold.

For hardware, there are shaft couplers and motor brackets. But truly the best asset is access to a 3d printer to produce custom gears, mounts and enclosure.
For connections I use DB9 sockets that can be screwed on.
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.
2 years 1 month ago #62208

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

  • Posts: 1279
  • Thank you received: 222
If at all possible, can the Abort feature be added to this driver? Thank you kindly.
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.
2 years 3 weeks ago #62721

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

  • Posts: 415
  • Thank you received: 99

That sounds like a good idea. I will look into it!
2 years 3 weeks ago #62731

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

  • Posts: 215
  • Thank you received: 16
I have a question. Why is this most excellent driver not part of the indilib on GitHub? Not even 3rd party?

I ask this for purely selfish reasons. Whenever I reconfigure my collection of Pi devices, I end up doing a git/compile for some of the things I need. This is especially true now that I am running Pi4 rather than Pi3 devices. While it is convenient enough to go to your site on github and do the same, it would save a step or three if it was associated in with the indi stuff. Also, perhaps that would make it unnecessary to create an "off-label" device during the Ekos setup. Sometimes that routine in Ekos can be a bit tedious.
SkyWatcher 10" SynScan Goto Dobsonian, SV106 Guide, ZWO ASI178MC, Svbony SV105, SV305, Pi3HQcam, Pi4, DIY WaveShare focuser, Linux Ubuntu, KStars/Ekos, Carte du Ciel/CCDCiel, AstroDMx_Capture, Siril, StarTools, GIMP
The following user(s) said Thank You: Andrew Murphy
2 years 3 weeks ago #62756

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

Time to create page: 0.689 seconds