BlindSquirrel
Posts: 49
Joined: Mon Jan 06, 2014 3:57 am
Location: US

Help controlling motors with raspberry pi?

Sat Mar 08, 2014 9:04 pm

Hi there, I am trying to build build a small robot with a few motors. Just something that can do some cool stuff. I am looking for a good way to control the board. I found this one on adafruit

http://www.adafruit.com/products/1687#Tutorials

but I am looking to control more than 2 motors. Are there any other methods of controlling them or any other boards?
If you want a huge list of why I love Steve Jobs, but I strongly dislike Apple, say 'Apple is better than Microsoft'. I DARE you.

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

Re: Help controlling motors with raspberry pi?

Sat Mar 08, 2014 9:08 pm

ebay search L298N or L9110 motor driver board. Generally each one will drive 2 DC motors.

User avatar
mikronauts
Posts: 2732
Joined: Sat Jan 05, 2013 7:28 pm
Contact: Website

Re: Help controlling motors with raspberry pi?

Sat Mar 08, 2014 9:50 pm

The L298 is a good choice, for motors that do not require more than 1A of current, and do not pull much over 2A when stalled.

The board you linked to is more for 600mA normally, and stall current less than 1.2A.

I'd suggest starting with "continuous rotation" servos, and later getting an appropriate rating driver board once you choose the motors you want to use.

If you want to control a lot motors, servos, and also get analog inputs, take a peek at:

http://www.mikronauts.com/raspberry-pi/robopi/
BlindSquirrel wrote:Hi there, I am trying to build build a small robot with a few motors. Just something that can do some cool stuff. I am looking for a good way to control the board. I found this one on adafruit

http://www.adafruit.com/products/1687#Tutorials

but I am looking to control more than 2 motors. Are there any other methods of controlling them or any other boards?
http://Mikronauts.com - home of EZasPi, RoboPi, Pi Rtc Dio and Pi Jumper @Mikronauts on Twitter
Advanced Robotics, I/O expansion and prototyping boards for the Raspberry Pi

ThomasS
Posts: 118
Joined: Thu Jan 23, 2014 7:05 pm
Location: Leeds
Contact: Website

Re: Help controlling motors with raspberry pi?

Sun Mar 09, 2014 9:56 am

I used the Raspberry Pi Guy's tutorial, with the L298N - http://www.youtube.com/embed/b4uhh_j8uR0?autoplay=1
ThomasS

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

Re: Help controlling motors with raspberry pi?

Sun Mar 09, 2014 10:11 am

I think that's the tutorial which suggests connecting a gpio to an enable jumper pin which may be connected to 5V. That is unnecessary and may damage the Pi.

Code: Select all

x         x
o o o o o o
E I I I I E
N N N N N N
A 1 2 3 4 B
Don't connect a gpio to the jumper pin (x) above ENA/ENB.

Return to “General discussion”