Light Follower Robot Using Arduino

The circuit is used to control a robot by increasing or reducing the light intensity.circuit components are,

potential meter,arduino uno,operational amplifier, npn darlington transistor, motor,Ldr-light dependent resistor,

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1:

Step 2: Working

when the intensity of light to the ldr is increased current flows to the amplifier then to the arduino.This causes the motor to rotate,.The motor rotates the wheels of the robot

Step 3: Code

int in=13;

int out=12;

int pinState=0;

void setup() {

pinMode(in,INPUT);

pinMode(out,OUTPUT); // put your setup code here, to run once:

}

void loop() {

pinState=digitalRead(in);

if(pinState==HIGH)

{ digitalWrite(out,HIGH);

} else

{ digitalWrite(out,LOW);

} // put your main code here, to run repeatedly:

}

Be the First to Share

    Recommendations

    • Made with Math Contest

      Made with Math Contest
    • Multi-Discipline Contest

      Multi-Discipline Contest
    • Robotics Contest

      Robotics Contest

    Discussions