Home › Forums › snickerdoodle › • Projects › Pynq Stepper Motor Controller Project
-
AuthorPosts
-
-
Hi,
I recently dug out my snickerdoodle black for a project involving four 4-phase stepper motors, I was wondering if anyone could share some advice regarding the direction I would take in this project. I have quite a lot of PL programming experience in Vivado with the Zynq 7020, but I am looking to go through a smarter more user-friendly route perhaps involving a Pynq Jupyter workbook. I would be interested to know whether it would be possible to design low-latency stepper motor controllers just using the Pynq Jupyter workbooks? The speed of the motors would perhaps be controlled over the serial port or wifi, it depends if the latency spec is up to scratch for the robot application.
Any advice would be much appreciated and I would be happy to discuss.
Best Regards, Jarez
-
Hi Jarez,
While I’m not aware of any existing projects for driving stepper motors via PYNQ, I don’t see any reason you couldn’t do that. The only stepper motor snickerdoodle project I can recall is from a few years ago: https://krtkl.com/resources/forums/topic/machinekit-on-snickerdoodleae/
Poking around a bit, I came across this project using the Z2 board: https://rk.edu.pl/en/using-gpio-usb-and-hdmi-pynq-z2-board/
It uses some arduino_io module, but it’s definitely feasible (and probably easier without the Z2’s I/O limitations).
Sorry we don’t have a preexisting reference project for this, but hopefully that helps (somewhat) point you in the right direction.
-Ryan
-
Thanks Ryan,
Nice to hear from you again and I hope you are well? – I will carry on researching on ways to approach this and I’ll use this thread to update users how I get on. I am thinking I will use the standard Ubuntu image and develop my own C program to control some custom PL modules (stepper motor controllers), I’ve also tested some SPI code which seems to be working quite well. I am looking at ways of repurposing the serial port to behave as a serial slave device communicating with another SBC platform, turning the snickerdoodle into a fancy motor controller and high performance data acquisition platform.
Best Regards, Jarez
-
-
AuthorPosts
- You must be logged in to reply to this topic.