pranavmadhavaram
Published © GPL3+

Obstacle avoider

Avoids obstacle at all cost

AdvancedFull instructions provided178
Obstacle avoider

Things used in this project

Story

Read more

Schematics

arduino_website_7_fPsozdudMM.png

Code

Untitled file

Arduino
void setup()

{

Serial.begin(9600);

pinMode(13, OUTPUT);//dc motor

pinMode(11, OUTPUT);

pinMode(4,INPUT);

}

void loop()

{ if (digitalRead(4)==HIGH)
{digitalWrite(13, HIGH);
digitalWrite(11, HIGH);}
else
{digitalWrite(13, HIGH);}}

Credits

pranavmadhavaram
16 projects • 1 follower

Comments