Forum >The 2A Motor Shield not working
ArduinoGeneral

The 2A Motor Shield not working

userHead gunnlaugursig 2013-07-17 07:50:24 5545 Views7 Replies
I'm using the 2A Motor Shield stacked on a Arduino UNO R2 to drive a RC car.

Using the existing car power supply which is 8xC = ~12V to go into the external power of the Motor Shield.

The motors wont drive the car at all.

This is how my stuff is wired up [url=https://fbcdn-sphotos-f-a.akamaihd.net/hphotos-ak-frc1/1073776_10201657287093384_1897655985_o.jpg]https://fbcdn-sphotos-f-a.akamaihd.net/hphotos-ak-frc1/1073776_10201657287093384_1897655985_o.jpg[/url]

I am using PWM code sample from the manual here [url=http://www.dfrobot.com/wiki/index.php?title=Arduino_Motor_Shield_%28L298N%29_%28SKU:DRI0009%29]http://www.dfrobot.com/wiki/index.php?title=Arduino_Motor_Shield_%28L298N%29_%28SKU:DRI0009%29[/url]

I've read that the grounds should be connected together but I'm not sure if I need to do that since my shield is stacked on the UNO. If I still need to do that, how do I do that?

The Arduino is powered by a separate 4xAA = ~6V.

I can't tell you the output voltage measurement to the motors since I don't have a multimeter.

Any ideas or suggestions would be great.

Thank you.

-Gunnlaugur
2013-07-20 15:01:37 Hi Phoebe

I got my hands on a multimeter today and found that patina had accumulated on the battery connectors in the car chassis preventing proper connection between the two. Now it's working as it should.

Thank you for your time and help :)

Regards,
Gunnlaugur
userHeadPic gunnlaugursig
2013-07-19 18:51:32 Hi Gunnlaugur

Nice to hear that.  ;D
I check the schematic that the PWRIN should be OK. May be there is something wrong with the two power supply.
Look forward to your test results ;)

Best
Phoebe
userHeadPic Phoebe
2013-07-19 06:16:03 Hi Phoebe,

I changed the jumpers on the shield to VIN and hooked the Arduino up with 9V box battery.
Uploaded the Romeo in PWM control mode code sample and tested it with the x,a,d,w commands in the serial monitor ant that worked as intended. This leads me to think if either the external power source I'm using or the PWRIN input on the shield are at fault.

When I've verified the external power source is working or not I'll try the PWRIN again.

I'll get back to you with my results when I get my hands on a multimeter to test the ext pwr src.

Thank you.

-Gunnlaugur
userHeadPic gunnlaugursig
2013-07-18 18:56:01 Hi  Gunnlaugur

Seems your wiring is OK. You can try to do things as following:

1) First make sure the four motors are OK and they should work in  proper voltage.
2) Try to use one power supply, such as 7V . Pay attention to the jumper caps should in the side of VIN.
3)Try the sample code of Romeo in PWM control mode. Don't connect motors and test weather the output voltage of " Motor+ and Motor-" is OK.

[url=https://www.dfrobot.com/wiki/index.php?title=DFRduino_Romeo-All_in_one_Controller_V1.1(SKU:DFR0004)]https://www.dfrobot.com/wiki/index.php?title=DFRduino_Romeo-All_in_one_Controller_V1.1(SKU:DFR0004)[/url]

Best
userHeadPic Phoebe
2013-07-18 01:01:20 Hi Phoebe,

I hooked the Arduino up with 9V box battery with same result as before.

Any other suggestions or ideas?

-Gunnlaugur
userHeadPic gunnlaugursig
2013-07-18 00:39:40 Hi Phoebe,

I've used 4xAA before but I'll give your suggestion a try and come back with the result.

What about my wiring - does it look right to you?

-Gunnlaugur
userHeadPic gunnlaugursig
2013-07-18 00:28:06 Hi gunnlaugursig

I think it is the problem of power supply. The Arduino should be powered between 7 to 12V. You can try ;)


Best
userHeadPic Phoebe