DC Motor & Stepper Motor HAT with Pi Issue

For Adafruit customers who seek help with microcontrollers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
adafruit_support_bill
 
Posts: 88141
Joined: Sat Feb 07, 2009 10:11 am

Re: DC Motor & Stepper Motor HAT with Pi Issue

Post by adafruit_support_bill »

The example does not appear to have any thread synchronization, so it would probably not run reliably with multiple steppers.

User avatar
Finksterr
 
Posts: 22
Joined: Fri Dec 11, 2015 10:56 pm

Re: DC Motor & Stepper Motor HAT with Pi Issue

Post by Finksterr »

Adding a time.sleep(0.005) before each not st.isAlive() check seems to fix the issue.

Locked
Please be positive and constructive with your questions and comments.

Return to “Microcontrollers”