Hello !
I just get my arduino Uno and rob-09207 kit, I mounted it (Without weld anything) and now I wanted to programm the motor, so I write this in arduino 1.0.1 programm :
void setup(){
analogWrite(3,255);
analogWrite(5,255);
analogWrite(6,255);
analogWrite(9,255);
pinMode(13,OUTPUT);// These two lines is just for knowing that the download is working !
digitalWrite(13,LOW);//
}
void loop(){
}
But when I download the programm into my arduino card nothing happend ! The motor don't turn !
Do you have any ideas ?
Thanks for your help !
Thank for this fast reply ! (sorry my english is very bad)
Yes I didn't link anything.
I follow this tutorial : Build an Ardubot - SparkFun Electronics ... But I had not all the break away headers so I use copper wire for the motor (7th picture) !
OK the first thing to do is to see if there is power going to the H-bridge driver. Put your voltmeter on pin 13 an pin 16 and see if you have a voltage here. This is the motor supply.
Then check that there is a voltage between pin and pin 8 - this is the logic supply.
Pins 1 & 9 are the enable pins, these have to be high before a motor will turn. Is this connected to an arduino pin? If so that pin needs to be set to be an output and driven low. That is currently not happening in your sketch.
Thank, I don't have voltmètre, do you think that I can try with a lamp (9V) ? You say pin 16 ??!! My pin stop at 13 and there ise CND and AREF
But I though that pin 9 have to be configured like that :
analogWrite(3,255);
analogWrite(5,255);
analogWrite(6,255);
//analogWrite(9,255);
analogWrite(10,255);
digitalWrite(1,LOW);
digitalWrite(9,LOW);
analogWrite(11,255);
pinMode(13,OUTPUT);// These two line is just for knowing that the download is working !
digitalWrite(13,LOW);//
}
void loop(){
}
Hey, Sorry for being late (I was buying a Voltmeter) !
So I put my voltmetre in continue mode and I put the caliber to 20V ...
I don't have any volt between pin 13 and 16 ! Do you have an ideas ?
Thank !