Arduino Forum

Using Arduino => Motors, Mechanics, and Power => Topic started by: John05 on May 05, 2015, 04:31 am

Title: need to run 2 dc 9 volt gear motors with Arduino Uno.
Post by: John05 on May 05, 2015, 04:31 am
Hello , I am a new forum member and am also new to Arduino. I am trying to find instructions on how to connect two 9 volt dc gear motors and a joystick to the Arduino uno . The only information I could find is about connecting stepper motors or servo motors.
Any help would be most appreciated.


Thank You
John
Title: Re: need to run 2 dc 9 volt gear motors with Arduino Uno.
Post by: keeper63 on May 05, 2015, 05:53 am
Do you need these motors to turn in one direction, or both? Do you need speed control, or just on/off?

What are the max current needs of the motors (stall current)?

What kind of joystick?

Ideally - if you can give us datasheets or manufacturer/model #s for the parts - that would also be helpful.
Title: Re: need to run 2 dc 9 volt gear motors with Arduino Uno.
Post by: JimboZA on May 05, 2015, 07:52 am
Joystick's reasonably straight forward: if it's analog with 2x potentimeters at right angles, just work off this code (http://www.arduino.cc/en/Tutorial/AnalogInOutSerial) but double up. Using that approach you could PWM your motors for speed, subject to connecting the motors safely.

With a bit of cunning you could use the analog values from the joystick to handle motor direction, since the stickis likely centred normally.

Pololu have a range of modules for connecting motors of various current and voltage characteristics, check here (http://www.pololu.com/search/compare/11).
Title: Re: need to run 2 dc 9 volt gear motors with Arduino Uno.
Post by: John05 on May 07, 2015, 04:26 am
Hello, I am making a pan/tilt camera jib for my camera.I would like to use 2 -12volt motors with the following specs.Could I use the Arduino Uno to run these motors?

no load characteristic
no load current 100mA
no load speed 50rpm

Load characteristic
rated Torque 4.5+Kg.cm
rated current 300mA
rated speed 40rpm
stall Torque 10.0+kg.cm
Rated current 1.1A
Title: Re: need to run 2 dc 12 volt gear motors with Arduino Uno.
Post by: John05 on May 07, 2015, 04:29 am
In my previous post I meant 2 -12 volt motors, not 9 volt.
Title: Re: need to run 2 dc 9 volt gear motors with Arduino Uno.
Post by: MarkT on May 07, 2015, 09:44 pm
Yes you can.  With a suitable motor shield (which should be easy for 0.3A).
Title: Re: need to run 2 dc 12 volt gear motors with Arduino Uno.
Post by: John05 on May 07, 2015, 09:58 pm
What type of motor shield should I use with the arduino UNO
Title: Re: need to run 2 dc 9 volt gear motors with Arduino Uno.
Post by: MarkT on May 08, 2015, 01:35 am
An Arduino Motor Shield would work, anything capable of driving 2 DC motors should
be OK
Title: Re: need to run 2 dc 9 volt gear motors with Arduino Uno.
Post by: chiruanku on Jun 05, 2019, 11:15 am
I am using two 60 rpm geared motor to run a robot using an l293d motor driver IC. I am using a 9V battery but the robot is not moving forward. Do I use 12 V instead of 9V to run . Please suggest
Title: Re: need to run 2 dc 9 volt gear motors with Arduino Uno.
Post by: daysleeper on Jun 05, 2019, 05:26 pm
What type of motor shield should I use with the arduino UNO
This shield (https://www.banggood.com/custlink/KGG3ht4FNR) would be fine.

It can drive motor from 6 to 15V, tipically 9V, 12V motors are fine.
It handles 4 DC motor @ 600mA, if you have only two motor and if you need more current, you can remove the unused L298d and piggyback it on the used one and double increase the available current.
1.1A are close to the limit of the piggybacked L298d but the standard motor load could be managed.

If you want to stay safe this is a 4A motor shield (https://www.banggood.com/custlink/GK33HHQUkD).

This (https://www.banggood.com/custlink/3GDDht0PQ8) is not a motor "shield" but it's a common motor "driver module". 2A, 25W max -> easily enough.
Title: Re: need to run 2 dc 9 volt gear motors with Arduino Uno.
Post by: daysleeper on Jun 05, 2019, 05:28 pm
I am using two 60 rpm geared motor to run a robot using an l293d motor driver IC. I am using a 9V battery but the robot is not moving forward. Do I use 12 V instead of 9V to run . Please suggest
No, 9V are perfectly fine for a L293d driver, the issue is somewhere else.
You can still try with 12V, but this won't solve the "real" issue.
Title: Re: need to run 2 dc 9 volt gear motors with Arduino Uno.
Post by: Wawa on Jun 06, 2019, 01:03 am
I am using a 9V battery...
Would that be a 9volt smake alarm battery?
Then no. They can't provide the current for motors. At least not for long.

And yes, it is wise to use a ~12volt supply for 9volt motors if you want them to run at full speed.
Because the ancient/inefficient L293D drops/looses about 2-4volt in H-bridge mode.
Leo..

Edit: All the shields/modules mentioned by daysleeper use the L293D and L298 motor drivers.
Both chips are ancient/inefficient. Not wise if you have to use battery power.
Stores like Adafruit have long ago replaced that v1 L293 shield with a v2 that uses TB6612 mosfet drivers. (https://learn.adafruit.com/adafruit-motor-shield-v2-for-arduino/overview)
Title: Re: need to run 2 dc 9 volt gear motors with Arduino Uno.
Post by: daysleeper on Jun 06, 2019, 09:21 am
Both chips are ancient/inefficient. Not wise if you have to use battery power.
That's simply true, even though the OP didn't mentioned batteries, the mosfet shields perform better.

On the other hand should also be noted that "my" shields arrive in my mailbox with exactly 2€ (2.24$ now). The adafruit one is 19.95$, plus 32.86$ shipping, and also plus estimated 11.62$ customs (which is strange. the item cost should be below the minimum taxable amount, afaik).

Talking about beginner users, i don't think that's wiser not to suggest a 2.24$ shield, which is old but can nevertheless do the job, because a 64.43$ one is more efficient.


Title: Re: need to run 2 dc 9 volt gear motors with Arduino Uno.
Post by: Wawa on Jun 06, 2019, 11:28 pm
Sure, but you should compare clones with clones.
The v2 clone is US4.99 on ebay, including shipping.
Leo..
Title: Re: need to run 2 dc 9 volt gear motors with Arduino Uno.
Post by: daysleeper on Jun 07, 2019, 03:52 pm
The v2 clone is US4.99 on ebay
Good to know.
I actually can't find it (in EU) for less than 7$, but anyway that's a proper reply!