Arduino Motor Control Car
Arduino Motor Control Car Using L293H Bridge
//This will run only one time.
void steup ()
{
pinMode (3, OUTPUT);
pinMode (4, OUTPUT);
pinMode (5, OUTPUT);
Serial.begin (9600)
}
void loop()
{
int reading = analogRead(A0);
Serial.println (reading);
int output = reading/100;
digitalWrite (3, HIGH);
digitalWrite (4, LOW);
digitalWrite (5, output);
delay (2000);
}
Comments
Post a Comment