stefano123
Posts: 3
Joined: Tue Oct 16, 2018 2:39 pm

How to use a stepper motor

Mon Jul 22, 2019 2:21 pm

I'm new to Raspberry Pi and I'm doing a project involving a stepper motor. What do you think is the best and easier way to use a 12v bipolar stepper motor with a RPi?
Thank you

User avatar
BLOODHOUND
Posts: 3
Joined: Mon Jul 22, 2019 2:24 pm

Re: How to use a stepper motor

Mon Jul 22, 2019 2:52 pm

We would also need to know required AMPS, if you got a link to the motor or any other information regarding your application, that'll help better.
You're breathtaking!


peppe8o
Posts: 12
Joined: Sun Apr 07, 2019 9:57 am
Contact: Website Twitter

Re: How to use a stepper motor

Sat Aug 10, 2019 6:08 pm

Depending on what stepper motor you have (or want to buy), there are different control ways. Usually stepper motors have datasheet with electric instructions about how to activate them. There could be also the need to develop or download some pieces of code (maybe python, for example) to map motor control on your rpi pins. I've tried some 28BYJ-48 stepper motor, which are very cheap hardware and very easy to wire and configure. So, with a very affordable price you can test simple robotics projects. I tested them with my RPI Zero W and published on my blog the related guide. Main things that you need to be aware:
  • power needs for stepper motor: your RPI can supply up to 3.3V or 5V but low amperage, so you could need to assemble a battery pack to give external power to stepper motor
  • GPIO map of your RPI: if the stepper motor is controlled directly by GPIO you must use the correct map related to your RPI version
  • requirements foy your project: if you have speed or strength needs, you must consider it in choosing the correct motor

Return to “Beginners”