filmov
tv
interfacing Arduino with IR sensor

Показать описание
Interfacing Arduino with IR sensor and controlling the LED
interfacing Arduino with IR sensor / How to interface Arduino with IR sensor / How do I connect Arduino to IR sensor? / Arduino with IR Sensor /
Components required
1) Arduino board
2) IR (infrared) sensor
3) LED
4) Jumper cables
program code
void setup()
{
pinMode(A0,INPUT);
pinMode(8,OUTPUT);
}
void loop()
{
int a = digitalRead(A0);
if (a==HIGH)
{
digitalWrite(8,LOW);
}
else
{
digitalWrite(8,HIGH);
}
}
copy the above code and check the circuit in the video and follow all the instructions
#ArduinowithIRsensor #technologywithtutorials #irsensor #interfacearduinoandirsensor
Link to buy
Arduino
IR sensor
LED
Jumper cables
Previous video about Arduino
1 what is Arduino
2 interfacing LED with Arduino
3 How to use Tinkercad for circuit simulation
interfacing Arduino with IR sensor / How to interface Arduino with IR sensor / How do I connect Arduino to IR sensor? / Arduino with IR Sensor /
Components required
1) Arduino board
2) IR (infrared) sensor
3) LED
4) Jumper cables
program code
void setup()
{
pinMode(A0,INPUT);
pinMode(8,OUTPUT);
}
void loop()
{
int a = digitalRead(A0);
if (a==HIGH)
{
digitalWrite(8,LOW);
}
else
{
digitalWrite(8,HIGH);
}
}
copy the above code and check the circuit in the video and follow all the instructions
#ArduinowithIRsensor #technologywithtutorials #irsensor #interfacearduinoandirsensor
Link to buy
Arduino
IR sensor
LED
Jumper cables
Previous video about Arduino
1 what is Arduino
2 interfacing LED with Arduino
3 How to use Tinkercad for circuit simulation