Pages: [1] 2   Go Down
Author Topic: Use digital pins to use a 8-9V Motor ?  (Read 722 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi guys,

I'm making a DIY IR Controlled Car . So for that I've 2 x 8-9V motor .
You understand now what's my problem : digitals pins of arduino nano (or uno, i have both) give just 5 V but I need 8-9 V.
I must use digital pins because i follow this tutorial :
http://www.instructables.com/id/Simple-2-way-motor-control-for-the-arduino/#intro

Thanks guys in advance !

(sorry for my bad english)
« Last Edit: November 21, 2013, 01:08:15 pm by yeko » Logged

Johannesburg UTC+2
Offline Offline
Faraday Member
**
Karma: 60
Posts: 3242
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

We shouldn't even think of plugging a motor in like that, even if it works on 5v. At a minimum you should control it with a transistor (with a diode across the motor). That won't allow reversal of direction though, so you'll need an h-bridge.

Have a look at small, cheap, controller boards like the Pololu 2130
Logged

Have you looked for answers in the Learning, Reference, Products and Playground tabs on http://arduino.cc/en/ ?
Look here http://electronicsclub.info/ for basic electronics

Oregon, USA
Offline Offline
Edison Member
*
Karma: 35
Posts: 1538
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Just another of those awful, completely misleading tutorials! Note the disclaimer:
Quote
I am not responsible for any thing bad that happens to you or to your arduino!
(damage to the Arduino is quite likely with 99.99% of motors chosen at random)
Logged

"It seems to run on some form of electricity"

0
Offline Offline
Shannon Member
****
Karma: 159
Posts: 10409
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

That instructable might teach you why you don't driver motors from logic devices
the hard way - steer well clear of it.  All inductive loads can destroy chips if you don't
make sure you have the right protection circuitry (free-wheel diode, snubber circuit,
etc).

The Arduino cannot supply enough current for all but the most microscopic of motors
without exceeding its abs-max ratings - don't do this!
Logged

[ I won't respond to messages, use the forum please ]

Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Ok thank guys for your answers !
I would use a L293D or the DRV8833 , there is a lot of tuts on google about it .

So thanks for help !
Bye
Logged

Johannesburg UTC+2
Offline Offline
Faraday Member
**
Karma: 60
Posts: 3242
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Seeing as you have the ability to choose, rather stay away from the 293 and it's larger cousin the 298: they are older technology and wasteful of energy. Go with newer stuff like the 8833 like that Pololu I linked.

Have fun....
Logged

Have you looked for answers in the Learning, Reference, Products and Playground tabs on http://arduino.cc/en/ ?
Look here http://electronicsclub.info/ for basic electronics

Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I think to the Pololu but I don't found a tuto to use it .
Logged

Johannesburg UTC+2
Offline Offline
Faraday Member
**
Karma: 60
Posts: 3242
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You don't really need a tutorial- look at the "minimal wiring diagram" in the Pictures tab....

You supply the motor power across Vin and Gnd as the pic shows: the control is provided by the AIN1/2 and BIN1/2 lines on the left,  the outputs AOUT1/2 and BOUT1/2 to do what you need to drive the motors.

There are 2 motor channels, A and B. Each has 2 inputs, which are digital lines from your Arduino. If you want speed control, at least one of those will need to be a PWM line. You control direction by changing polarity on those 2 inputs. So if say BIN1 high and BIN2 low is clockwise, the BIN1 low and BIN2 high will be anti-clockwise. Pulse either with PWM and you'll get speed control.

Don't forget to join the grounds together.



Logged

Have you looked for answers in the Learning, Reference, Products and Playground tabs on http://arduino.cc/en/ ?
Look here http://electronicsclub.info/ for basic electronics

Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Ok the minimal wiring schema isn't hard to understand ! So thanks for that .

But i want to find it on ebay or amazon or another site with low shipping cost because i live in France and i don't want to pay 15$ of shipping fee for a 5$ product (DRV8833) .  smiley

Instead of the L932D on ebay (because it's older)


« Last Edit: November 23, 2013, 02:18:38 pm by yeko » Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

So finally i buy a SN754410 on ebay (http://goo.gl/mUuPoV) .

There is a mini-list of Double H-Bridge IC :
- DRV8833
- SN754410
- L293
- L298

Thanks to all !
Logged

Offline Offline
Full Member
***
Karma: 0
Posts: 237
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I use a sainsmart l293d motor shield. I find it to work quite well, though you need to refer to adafruit for tutorial as there is none under 'sainsmart'.
Logged

Johannesburg UTC+2
Offline Offline
Faraday Member
**
Karma: 60
Posts: 3242
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The 293 and 298 are wasteful of energy remember. The SN754410  is pin-compatible with the 293, but I'm not sure if it's the same technology?
Logged

Have you looked for answers in the Learning, Reference, Products and Playground tabs on http://arduino.cc/en/ ?
Look here http://electronicsclub.info/ for basic electronics

Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

For the L293 and L298 you need 2 Capacitors on pins 4,5 and 13,12 compared to the SN754410 that doesn't need it .
That's why there are shields for L293 and L298 with integrated capacitor . It's simply to use .

But how to you know they are wasteful of energy ?
Logged

Johannesburg UTC+2
Offline Offline
Faraday Member
**
Karma: 60
Posts: 3242
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Because there's always a significant voltage drop across those things. I forget what it is for 293 but the 298 loses 1.8 min, up to something like 4 at higher current. Since that voltage is at a current, that's power, and power times time is energy. Look at pics of a 298 shield and you'll see a heatsink the size of a truck. The 293's middle 4 ground pins are also for attachment to heatsink.

The 8833 may need a heatsink at high current but it's not in the same league.
Logged

Have you looked for answers in the Learning, Reference, Products and Playground tabs on http://arduino.cc/en/ ?
Look here http://electronicsclub.info/ for basic electronics

Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I've seen the sainsmart shield but it is compatible with arduino uno (duemilanove and mega) and i've a arduino nano .

JimboZA , can you talk me about the SN754410 ?  (wasteful ?)
« Last Edit: November 24, 2013, 02:12:45 pm by yeko » Logged

Pages: [1] 2   Go Up
Jump to: