Line following Robot Using Arduino. Its super simple, low cost (2 sensor based) line follower robot. If you are a absolute beginner, you can make it only in 2 hours. Components required. Circuit diagram. Codes. /*-------definning Inputs------*/ #define LS 2 // left sensor #define RS 5 // right sensor /*-------definning Outputs------*/ #define LM1 11 // left motor #define LM2 10 // left motor #define RM1 9 // right motor #define RM2 6 // right motor void setup () { pinMode ( LS , INPUT ); pinMode ( RS , INPUT ); pinMode ( LM1 , OUTPUT ); pinMode ( LM2 , OUTPUT ); pinMode ( RM1 , OUTPUT ); pinMode ( RM2 , OUTPUT ); } void loop (){ if (( digitalRead ( LS ) == LOW ) && ( digitalRead ( RS ) == LOW )) // Condition_1 stop { MoveForward (); } if (( digitalRead ( LS ) == HIGH ) && ( digitalRead ( RS ) =...
Curio tech, harisalip, blogger, harisalip.blogspot.com Harisali, harisali, curiotech, curio, technology, blogger, Curiotechnology, curiotech