For Contact Send an Email at: [email protected]
Subscribe My Channel For More Arduino Based Projects
We will upload more Arduino based videos on this channel, So keep connected with us
Thank You.
Following is the program, Copy it and paste it in Arduino IDE
//Light Blocking Module with Arduino
int ledPin=13;
int detectorPin=3;
void setup() {
// put your setup code here, to run once:
pinMode(ledPin,OUTPUT);
pinMode(detectorPin,INPUT);
}
void loop() {
// put your main code here, to run repeatedly:
int val=digitalRead(detectorPin);
if (val==HIGH)
{
digitalWrite(ledPin,HIGH);
}
else
{
digitalWrite(ledPin,LOW);
}
}
Смотрите видео Interfacing Light Blocking Module With Arduino || Light Blocking || 37 Sensor Kit || Arduino Uno онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Samandar Khan Afridi 26 Август 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 149 раз и оно понравилось 7 людям.