×

INDI Library v1.9.7 Released (29 Jul 2022)

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

INDI focuser driver for Waveshare Stepper Motor HAT for Raspberry Pi

  • Posts: 317
  • Thank you received: 80
Barry,

That motor should be fine. In the default 32x microstepping configuration, it might move a little slow. If that turns out to be the case, you can change the DIP switches on the Waveshare HAT to a lower microstepping factor, to speed things up. You will need to modify the #define MICROSTEPPING at the top of the source code file to match the DIP switches, and rebuild the driver. But it will work as is, maybe just a little slow.

-- Kevin
The following user(s) said Thank You: Barry Dyer
10 months 6 days ago #76237

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

  • Posts: 9
  • Thank you received: 1
Hi Kevin
Firstly a huge thank you for the work you've done on this driver.  It's been a lot of fun playing with getting this working on my Raspberry Pi 4 and StellarmateOS.  I have a question on microstepping and I suspect I am missing something elementary.  I have a 1.8 degree (200 steps/rev) Nema14 motor that I am trying to pair with my SVX102T refractor.  My scope has a CFZ of 111 microns and I am trying to achieve the recommended 10 steps per CFZ.  I believe that using 1/8 steps should achieve this goal, but I am a loss as to how to make the driver do this.  I tested with the Waveshare Python code (which needed to be corrected for the active high enable pin) and was able to make the stepper motor do a 1/8 rev with 200 steps:
    Motor1.SetMicroStep('hardward','1/8step')
    Motor1.TurnStep(Dir='forward', steps=200, stepdelay = 0.0001)
    time.sleep(0.5)
    Motor1.TurnStep(Dir='backward', steps=200, stepdelay = 0.0001)
    Motor1.Stop()
Questions:
  1. To make this work for the focuser, I changed the MICROSTEPPING define in wmh_focuser.cpp to 8 and set the dip switches to 110 on the board.  However, this still yields a full turn for 200 steps when I test using the Indi Control panel for the focuser. I'm sure I'm misunderstanding the intent of the MICROSTEPPING define, but for the life of my I can't figure it out. 
  2. I then figured I could put the motor onto the fine focus knob, but wouldn't that make focusing really slow?


 
7 months 4 weeks ago #78508

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

  • Posts: 1251
  • Thank you received: 219
I believe the way microstepping was implemented in the driver is for smoother and quieter motor movement rather than added precision. And a microstep position can only be held with constant power to the motor, which is not desirable. Your options are therefor to use gear reduction and backlash compensation.
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: Anand Narwani
7 months 3 weeks ago #78544

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

  • Posts: 1251
  • Thank you received: 219
I've been playing around lately with the hardware DIP switches, and I found that the Modes switches are orientated in a very non-intuitive way.
Switches 123 belong to motor 1
Switches 456 belong to motor 2
The Mode table is organized as Mode 2, Mode 1, Mode 0 in the documentation. I found they actually correspond to the DIP switches in reverse order.
Mode 0 is switch 1 and 4
Mode 1 is switch 2 and 5
Mode 2 is switch 3 and 6

So to set it for 1/8 step you need to set DIP 1, 2, 3 to 1, 1, 0 respectively.

  
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.
Last edit: 6 months 2 weeks ago by Andrew.
6 months 2 weeks ago #79780
Attachments:

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

  • Posts: 75
  • Thank you received: 5
Eureka!!!
Stubborn as I am I wanted to try the waveshare stepper hat again; all worked out perfectly. Soon the report with 150PDS
Ettore
INDI/KStars on Raspberry Pi 4, 4gb
Raspberry Bull 64bit
Skywatcher 150PDS
CGE-PRO Mount
Nikon D5300 Camera
ZWO183MM
ZWO ASI120mm
Whaveshave focuser
5 months 4 weeks ago #80361

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

  • Posts: 4
  • Thank you received: 0
  Kevin,
Can't tell you how much I appreciate the work you have done on the Waveshare Hat focuser module.  I have been working on fabricating a motor bracket for my 1990's C8 and a Nikon 70-200mm F2.8 lens.  Attached photos of the completed brackets and presently performing software calibrations for travel parameters before attempting outdoor focusing tests.
I am using a 5:1 pulley reduction on the C8 and a 6:1 reduction on the Nikon lens.
Thanks again!
Bill G

   
Last edit: 5 months 3 hours ago by Bill Glynn.
5 months 1 day ago #81171
Attachments:

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

  • Posts: 317
  • Thank you received: 80
I'm glad it's working for you. I can't see your pictures, they say "You do not have permissions to access this page."
5 months 5 hours ago #81203

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

  • Posts: 4
  • Thank you received: 0
Kevin,
I see that your RPi4 is attached directly to the scope. Does it have a cooling fan and if so are there no vibration concerns? I would love to fasten it to my mount but was concerned about vibration?
Bill G
4 months 4 weeks ago #81232

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

  • Posts: 317
  • Thank you received: 80
Now I see your pictures. Nice 3d printed brackets :)

My Pi does not have a cooling fan. I never have problems with it overheating. But I don't live in the desert, where it can be 100 degree F at midnight.
The following user(s) said Thank You: Bill Glynn
4 months 4 weeks ago #81234

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

  • Posts: 4
  • Thank you received: 0
My INDI Waveshare focuser works great on the local RPI4. Have published camera, mount, gps, and Waveshare Focuser to INDI Webmanager. Trying to build remote profile via ethernet cable to notebook running Ubuntu 18.04LTS, Kstars/Ekos. Can see all RPI4 modules except for the Waveshare Focuser. Does the remote notebook need a Waveshare component loaded or should I be seeing it already?

Thanks

Bill

Super Polaris C8, Nikon D850, RPI4, Stellarmate OS, Waveshare Focusing Module, Waveshare hat and motor
2 weeks 3 days ago #84556

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

  • Posts: 317
  • Thank you received: 80
Yes, there's a file you need to install on the remote KStars machine so it knows about the focuser. Copy the "indi_wmh_focuser.xml" file to the remote computer. I think it's in /usr/share/indi (going from memory, I'm traveling right now)
The following user(s) said Thank You: Bill Glynn
2 weeks 3 days ago #84563

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

  • Posts: 4
  • Thank you received: 0
My mistake Kevin. Just ran across your install documentation where you clearly spelled out how to do this. Sorry - Bill
1 week 6 days ago #84659

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

Time to create page: 0.527 seconds