I have an Adafruit Motor Shield v 1.2 and I wanted to use it to power 2 DC Motors for my Robot.
The motors are working just fine on their own but as soon as I want to use the Motorshield to control them they just do not start. So I searched for the fault.
I tried powering the Motor Shield with a Battery-Pack with 12V and with one with 6V. first with 6V because that is what is recommended for them.
The motors did not start spinning so I decided to measure the V on M1 M2 M3 and M4.
First I activated M1 and M2 - on M1 i got 2.5V and M2 2.1V. How can that be different?
Then M3 and M4 (M1 and M2 deactivated) - both below 1V. - I just do not understand it.
That explains why the motors where not spinning but I do not understand why the voltage is so low. I also tried to change motor speed in the script or powering the arduino via the DC jack, powering both the arduino and shield separately but nothing seems to work. I think the shield might be broken.
What do you guys think? Help would be appreciated.
Please read the first post in any forum entitled how to use this forum. http://forum.arduino.cc/index.php/topic,148850.0.html then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.
What level of PWM are you trying to run the motors, most DC motor will stall below 40% PWM, for testing run the PWM at 200 out of 255.
I put my robot base on a block and let the wheels spin, to test.
Sorry for not posting properly - my bad. Here is my code by the way. Yes I am using a Knock-off from DK-Electronics.
So you mean by changing the motorSpeed I am changing the PWM value and thus the voltage should behave accordingly right?
The Voltage should be exactly the same on every Motor through the board I guess?
As you can see in my code I am using an ultrasonic sensor too. No problems with that.