Research into Stepper Motors with the #RaspberryPi

I’ve decided that my next project with the Pi will involve motors of some sort. At the very least I’d like to work out how to control a motor and have it do… something. I’d like, ideally, to create some kind of remote-controlled vehicle. But, I know this isn’t exactly an original idea so it’ll be interesting to see if I can come up with something a bit unique. Whether I control the motor direct from the Pi or have some kind of Pi-Arduino interface is up for debate!

So, this post is all about research and will be a collection of links and tidbits that I’ve collected on the subject.

Some basic research…

First of all, over at, we have a blog post describing the different types of motors including unipolar, bipolar etc. Read the article.

Scrap to Power has a good article on connecting a stepper motor to the Pi. Read the article.

Francois Dion at Raspberry Pi Python Adventures has written some excellent blog posts on getting various motors working. Browsing around his site is great and he is the only blogger I know who posts in multiple languages! Read an article about stepper motors and another one about H Bridges.

Patrick Cambria has worked out how to run a uni-polar stepper using the Pi and Python. Read the article and watch the video.

Georgia-based John Jay has developed a board and Robert Savage has written an article about setting it up.

Raspberry Pi Spy has an article about using a ULN2003 board and a 28BJY-48 motor. Read the article. The RaspiRobot blog has implemented the steps in the article and blogged about it.

Andy at PiStuffing has blogged about his experiments trying to create a TurtlePi and also a quad-copter. Read his blog.

Now for some videos

A video from Peter Szabo in which we see a stepper motor controlled by a ULN2003 control board.

A video from BitWizardNL that shows an SPI driver board running off the SPI header on the Pi and driving a motor:

Finally, some eBay lots and Online Shop items which might prove useful

L298N Controller board

Lots from Georgia-based 9030plc

EasyDriver Stepper Motor Driver from SK Pang (requires 7V power supply)

L293D from Adafruit

L293D on eBay from Shock Waves Shop

Bits n Pieces

An example of running a motor on the GPIO but using Java.


Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.