×

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

Bi-monthly release with minor bug fixes and improvements

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

  • Posts: 222
  • Thank you received: 20
BTW Kevin I almost had to beg you for help -- my working Beverly Hillbillies focuser suddenly began to act bizarrely. The motor would buzz but not move, or move a little bit slowly and then back the other way, or refuse to do anything at all. I thought it was a loose pulley, then maybe a wrecked gearbox in the motor, then a software problem. I even ordered a second motor to check (I needed one anyway). Then I thought to eliminate all the intermediate cabling and connectors and wire the motor straight onto the HAT terminals. Worked like a charm. Must've been a loose connection, I have an RJ-11 breakout board with screw-clamp terminals at either end and a phone cord between them. One of the wires in the clamps must have come a bit loose.

Noting here just in case somebody else runs into a similar problem.
3 years 1 month ago #68845

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

  • Posts: 421
  • Thank you received: 102

Nice solution! Thanks for sharing!
3 years 1 month ago #68850

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

  • Posts: 421
  • Thank you received: 102
Nice looking setup (both of them)!

I do have an STL file that I designed. It may or may not be perfect for you. It has a cutout where I mount a DB-9 connector for attaching the motor. The lid also doesn't attach, it just rests on there, because I strap the whole thing down with Velcro straps anyway, and this makes it easy to get inside when I want to.

Anyway, attached are my STL files. I include the Fusion 360 file, as well as a STEP file, in case you want to modify the design for your liking.

 

File Attachment:

File Name: RaspberryPi4Case.zip
File Size:383 KB
3 years 1 month ago #68852
Attachments:

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

  • Posts: 144
  • Thank you received: 7
3 years 1 month ago #68861

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

  • Posts: 67
  • Thank you received: 1
KevinI am also trying to get a NEMA 14 stepper motor spinning via the Waveshare stepper motor hat. So far without success, here is my observation:1. The wiring is correct (see 4. below)2. I start INDI and go to the wave share options tab and set delay per step to a number > 0, let’s say 400. When I set relative position to 1000 and click set, nothing happens, I only notice a very short bucking (1 ms or so) as if the motor starts spinning but then immediately stops.3. When I go to the focus module, I can’t get the motor spinning regardless if I click focus out or focus in.4. I disconnect and stop INDI services and repeat steps 2 & 3. Once I click the INDI start button, the motor starts spinning. In the focus module however, clicking on focus out or in the motor does not react as expected, only a very short bucking again.I tried this several times with different delays per step and subsequently after next start of INDI the motor spins according to the delay per step set in the cycle before, e.g. it looks like the system „remembers“ what delay was set in the cycle before.After a few minutes the motor heats up so much that I need to switch off the whole system.A few questions:Is this the expected behavior of the driver, I guess not?
Could the behavior be different under StellarMate?
How can I avoid the heat production of the motor?
What is the meaning of „Sync steps“ (Main Control tab) and „Polling Period“ (Options tab)?I was using the driver on my Astroberry disti under Buster on a Raspi 4B 4GB. Any hint is welcome.Thanks
Kurt
3 years 4 weeks ago #68983

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

  • Posts: 144
  • Thank you received: 7
Today i have same problems.
3 years 4 weeks ago #69002

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

  • Posts: 144
  • Thank you received: 7
Today i have same problems.
3 years 4 weeks ago #69003

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

  • Posts: 144
  • Thank you received: 7
Now the engine works but it doesn't stop anymore, it goes back and forth without ever stopping, not respecting the steps, see this video:

 
  
3 years 4 weeks ago #69022
Attachments:

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

  • Posts: 421
  • Thank you received: 102
I will recompile with the latest INDI and do some testing. It's possible something changed in INDI that isn't compatible.
 
3 years 4 weeks ago #69028

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

  • Posts: 144
  • Thank you received: 7
3 years 4 weeks ago #69029

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

  • Posts: 421
  • Thank you received: 102
Unfortunately (or fortunately, depending on how you look at it) I am not able to replicate the problem. The focuser continues to work perfectly for me. It was working with INDI 1.8.9, and I just built the latest INDI 1.9.0 from git, and the focuser continues to work as intended.

One thing, if you have updated your INDI libraries, make sure you rebuild and reinstall the Waveshare INDI driver. Go to the indi-wmh-focuser/build folder, do "make clean", then "make" then "sudo make install".

BTW, I'm using 400 for the delay per step option.

This is the stepper motor I use:

www.omc-stepperonline.com/nema-14-bipola...35x26mm-4-wires.html

 
Last edit: 3 years 4 weeks ago by Kevin Ross.
3 years 4 weeks ago #69036

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

  • Posts: 144
  • Thank you received: 7
Time to create page: 0.639 seconds