nik012003
Posts: 9
Joined: Tue Apr 21, 2015 7:05 pm

Drive 1 stepper motor and two servo motors together

Mon Jun 22, 2015 8:19 pm

Hello everyone I would use 2 servo sg90 and 1 stepper motor 28BYJ-48-5V without a driver .
I tried already with Arduino and it all works
.Now I want to use them with the raspberry pi 2 or B + .I have a power supply 2.1 A.
Here's the video with the code I used for the stepper motor . https://youtu.be/lkJBTsVbKMY
Can you help me with the code and the wiring ?
Thanks in advance

scotty101
Posts: 3958
Joined: Fri Jun 08, 2012 6:03 pm

Re: Drive 1 stepper motor and two servo motors together

Mon Jun 22, 2015 8:51 pm

Unlike the Arduino, the Raspberry Pi cannot drive a stepper motor without a driver.
Electronic and Computer Engineer
Pi Interests: Home Automation, IOT, Python and Tkinter

nik012003
Posts: 9
Joined: Tue Apr 21, 2015 7:05 pm

Re: Drive 1 stepper motor and two servo motors together

Tue Jun 23, 2015 8:08 am

Can I use the serial port of the Arduino through raspberry and python ?

User avatar
joan
Posts: 14935
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: Drive 1 stepper motor and two servo motors together

Tue Jun 23, 2015 8:16 am

nik012003 wrote:Can I use the serial port of the Arduino through raspberry and python ?
The Pi is a 3V3 device. If your Arduino is a 5V device you'll need to use at least a resistor divider on the Arduino TX line.

nik012003
Posts: 9
Joined: Tue Apr 21, 2015 7:05 pm

Re: Drive 1 stepper motor and two servo motors together

Tue Jun 23, 2015 8:40 am

I found this guide that uses the USB port .
Can I use this guide with the raspberry pi 2 or B + ?
link :
http://blog.oscarliang.net/connect-rasp ... usb-cable/

User avatar
DougieLawson
Posts: 39121
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Drive 1 stepper motor and two servo motors together

Tue Jun 23, 2015 8:51 am

nik012003 wrote:Can I use the serial port of the Arduino through raspberry and python ?
It's much easier to connect your RPi to your Arduino using the USB-A (Pi end) to USB-B (Arduino end) connection. You can run serial over that.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Return to “Troubleshooting”