×

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: 1117
  • Thank you received: 182

Check out my solution, posted earlier last year in this thread: 

indilib.org/forum/focusers-filter-wheels....html?start=48#54478

That has been working flawlessly for me ever since. 
 
Atlas Pro AZ-EQ, ASI1600MM-Pro, ASI120MM-S, ES102ED, WO-Z61, Nikon D3300, ASI-EFW, ZWO LRGB,Ha,O3,S2 filter set
1 year 6 months ago #69304

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

  • Posts: 75
  • Thank you received: 5
I see. Today is arrived arduino and stepper 5V is perfect.
Ettore
INDI/KStars on Raspberry Pi 4, 4gb
Raspberry Bull 64bit
Skywatcher 150PDS
CGE-PRO Mount
Nikon D5300 Camera
ZWO183MM
ZWO ASI120mm
Whaveshave focuser
1 year 6 months ago #69325

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

  • Posts: 87
  • Thank you received: 12
  • Posts: 51
  • Thank you received: 1
@Kevin My system is now working. The WaveShare HAT obviously was faulty, the replacement part does work now. Focus in & out in the focuser module does spin the motor in the correct direction, movement is smooth and silent. There might be an opportunity next week to try the autofocus under real time conditions outside. I will report. Two question:1. So far I finished an imaging session leaving the telescope focus where it was at last. When I now start Ekos the next time the actual focuser position is at 0 in the focuser module. If I wanted to check the focus with autofocus, I can only focus out, not focus in as a position below 0 is not possible. What do I do to change the field „Steps“ to a value >> 0 without that the motor spins so that both focus directions are possible? I tried with setting the absolute position to a certain value, but then after finishing the INDI server, the motor spins to bring the former absolute position does to 0. 2. What are the parameters „Polling (Perod(ms), in options tab)“ and „Syn(Steps), in main control)“ used for? Thank you for the support. It seems to be a great driver.
Skywatcher HEQ-5 EQMod | ASI1600MM Pro | ASI EFW | TS61EDPH | ZWO ASI 120MM | Artesky 130mm guidescope | Raspi 4B 4GB | Waveshare Stepper Motor HAT - DIY Focuser | Stellarmate | PixInsight
1 year 6 months ago #69349

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

  • Posts: 176
  • Thank you received: 20
You can use the Syn control to set the driver's notion of its position to an arbitrary value. So if you know that you finish up one session at position 450, and don't touch the focus, next time you fire up your system you can Sync to 450 and go from there.
1 year 6 months ago #69351

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

  • Posts: 1275
  • Thank you received: 221
Those of you who suspect a defective Waveshare HAT might want to try using the Motor B controller.
If I am not mistaken, to select which motor driver is used edit the file wmh_focuser.cpp
Edit line 91
from
DRV8825_SelectMotor(MOTOR1);
to
DRV8825_SelectMotor(MOTOR2);
 
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.
1 year 6 months ago #69367

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

  • Posts: 51
  • Thank you received: 1
@ Ihoujin

The defect that I found on motor controller A did exist also on controller B, I checked both. The faulty board had a board revision 2.1, the new board did not show a revision at all, so I suspect a design change or a faulty production lot ...
Skywatcher HEQ-5 EQMod | ASI1600MM Pro | ASI EFW | TS61EDPH | ZWO ASI 120MM | Artesky 130mm guidescope | Raspi 4B 4GB | Waveshare Stepper Motor HAT - DIY Focuser | Stellarmate | PixInsight
1 year 6 months ago #69377

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

  • Posts: 51
  • Thank you received: 1
@ Kevin,

I was out in the garden this night and tried the waveshare focuser: it worked like a charm! Great stuff!
Skywatcher HEQ-5 EQMod | ASI1600MM Pro | ASI EFW | TS61EDPH | ZWO ASI 120MM | Artesky 130mm guidescope | Raspi 4B 4GB | Waveshare Stepper Motor HAT - DIY Focuser | Stellarmate | PixInsight
1 year 6 months ago #69438

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

  • Posts: 387
  • Thank you received: 95
Excellent, glad to hear it!
 
1 year 6 months ago #69439

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

  • Posts: 1275
  • Thank you received: 221
I thought I should share what I have done. So here is one of the focusers I have created based on the Waveshare Stepper HAT.
 
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.
1 year 6 months ago #69442

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

  • Posts: 59
  • Thank you received: 3
Very nice!  What stepper did you use?  I ended up using a larger stepper (NEMA-17) with a belt/loop under tension.  I really like the smaller stepper and worm gear arrangement you used.  And for this purpose, a larger gear ratio seems better since it enables finer control and decreases the required torque to move the focuser.
1 year 6 months ago #69443

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

  • Posts: 1275
  • Thank you received: 221
It's a tiny stepper motor I found on Aliexpress with a built in 50:1 gear box. The worm ratio is 120:1. Together it is a very high gear reduction. The position resolution is insane. A command for 100 steps barely has a noticeable effect on a bahtinov pattern. I had to use an initial step size of around 800 for the autofocus to get a good V curve.

I am thinking of selling my design as a kit.
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.
1 year 6 months ago #69444

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

Time to create page: 0.783 seconds