Sensor de Luz LDR 5MM GL5528
LDRs or Light Dependent Resistors are very useful especially in light/dark sensor circuits. Normally the resistance of an LDR is very high, sometimes as high as 1000 000 ohms, but when they are illuminated with light resistance drops dramatically.
Política de segurança
Política de entrega 24/48H
Política de devolução
int portaLed = 10; //Port is being used to connect the LED
int portaLDR = A5; //Analog port used by LDR
pinMode(portaLed, OUTPUT); //Sets Led door as output
int estado = analogRead(portaLDR); Read the value provided by LDR
// If the value read from the analog port is greater than
// 800, acende o LED
// Set the value below according to your circuit
if (estado > 800)
else //Otherwise, the LED goes out
No customer reviews for the moment.
Clientes que compraram este produto também compraram:
The Raspberry Pi Zero is an ultra low cost and ultra small variant of the original Raspberry Pi. It's tiny, measuring just 65mm x 30mm, and is perfectly designed for embedded applications, wearables, prototyping and any other Pi based tinkering you can think of, on a micro scale!
Disponível a partir de 15/2/16