ardumoto, help needed

Your source for all things Atmel.

Moderator: phalanx

Post Reply
Panikos
Posts: 5
Joined: Fri Jan 08, 2010 4:25 pm

ardumoto, help needed

Post by Panikos » Tue Mar 02, 2010 6:07 am

Hi all, i was wondering if anyone can give me any info with regards to ardumoto.
I am using pins 10,11,12,13 as per documentation and the following work as expected:
  • pin10,pin11,pin12,pin13,
    255,255,HIGH,HIGH,
    255,255,HIGH,LOW,
    255,255,LOW,HIGH
However 255,255,LOW,LOW turns both motors off when in my understanding they should both be reversed.

i used the sample code from http://mechomaniac.com/ArduinoMotorCont ... motoShield when i run into this trouble with my code. Exact same thing happens with both pieces of code.

seems to me that this guy has the same problem but the post was of no help:
viewtopic.php?f=8&t=16448&p=91837&hilit=ARDUMOTO#p91837

Could someone give me a guiding hand?

mechomaniac
Posts: 3
Joined: Tue Sep 22, 2009 6:43 am
Contact:

Re: ardumoto, help needed

Post by mechomaniac » Tue Mar 02, 2010 3:15 pm

It's possible that the motors that you are using draw too much current, causing problems with the power supply to the Arduino. Does the code work with a multimeter in place of a motor?

Panikos
Posts: 5
Joined: Fri Jan 08, 2010 4:25 pm

Re: ardumoto, help needed

Post by Panikos » Wed Mar 03, 2010 3:30 am

Thanks for the reply and the suggestions. I will have a try when I can and post back with results.

Panikos
Posts: 5
Joined: Fri Jan 08, 2010 4:25 pm

Re: ardumoto, help needed

Post by Panikos » Fri Mar 05, 2010 5:08 am

You advice was spot on. hooking up to a battery not only gave results as expected but also increased the performance of the motors in terms of response time and speed/stregth.

Thanks

Post Reply