Page 1 of 1

How to control two or more nema 17 stepper motor(s) using raspberry pi?

Posted: Wed Dec 27, 2017 5:36 am
by 19jai90
For an example, i have two stepper motors, let's name it steppper X and stepper Y.

I want stepper X and Y move together to 270 degree then stepper Y has to stay there until stepper X move to 90 degree then 300 degree. After stepper X finishes it's tasks, stepper X and Y move simultaneously to 0 degree.

above are the motions i want achieve. Hope i can get help from everyone.

I have two types of drivers, one is easy driver and A4899.

Thanks in advance for the guides and help

Re: How to control two or more nema 17 stepper motor(s) using raspberry pi?

Posted: Wed Dec 27, 2017 1:30 pm
by beta-tester
you can use something like this... https://blog.protoneer.co.nz/raspberry- ... board-hat/
so the RPi is sending kind of koordinates to an arduino.
then the arduino is doing the signal processing to control the stepper driver.

but in the simplest case you can control the stepper driver directly via GPIO and a python script to do stepp up /down manually.
https://www.pololu.com/product/1182

https://www.youtube.com/watch?v=LUbhPKBL_IU
https://www.rototron.info/raspberry-pi- ... -tutorial/