loading

Components:

Intel Galileo

Ldr

Potentiometer

breadboard

Operational Amplifier

Darlington transistor

Dc motor

resistor

Step 1: Working

The project is for controlling a robot using Intel Galileo that takes a signal from a light dependent resistor (ldr) .

Power is fed to the ldr,when the brightness increases current passes through the ldr to the Op Amp,then to the

Galileo board, a signal is then sent from the board to the transistor which switches on the motor,the motor in turn rotates the wheels of the robot thus driving it.

The speed of the robot depends on the amount of light on the ldr, when the light is reduced,the robot slows down and stops.

Step 2: Code

int in=13;
int out=12; 
int pinState=0; 
void setup() {
  pinMode(in,INPUT); 
  pinMode(out,OUTPUT);    
}
void loop() {
 
 pinState=digitalRead(in); 
  if(pinState==HIGH)
  {
    digitalWrite(out,HIGH); 
  }
 
 else
  {
 
   digitalWrite(out,LOW); 
  }  
}
<p>amazing great post and 10 on 10 <a href="http://www.theengineeringprojects.com/2016/11/engineering-projects.html" rel="nofollow">engineering projects</a> by Intel the innovation</p>
<p>Great Post for Engineers</p>

About This Instructable

903views

7favorites

License:

More by DavidM386:LCD and keypad interface Interfacing Keypad and LCD with Intel Galileo Light follower robot using Intel Galileo 
Add instructable to: