Linkit ONE Dark Detector

Linkit ONE Dark Detector
Linkit ONE Dark Detector
Linkit ONE Dark Detector
Linkit ONE Dark Detector

This instructable will guide you to make a dark detector with Linkit ONE.

It makes use of light dependent resistor to detect darkness and switch on an LED as indicator. Linkit one takes analog input from LDR then switches the LED accordingly.

This project can be extended to make automatic home lights and street lights which on automaticaly as it turns dark.

So let’s begin……..

Task 1: Parts Required

Linkit ONE Dark Detector
Linkit ONE Dark Detector
Linkit ONE Dark Detector
Linkit ONE Dark Detector
Linkit ONE Dark Detector
Linkit ONE Dark Detector
Linkit ONE Dark Detector

The following parts are required to make this project:

– Linkit ONE
– Battery
– Light sensor
– LED
– BC547 transistor
– Breadboard
– Jumper wires

Task 2:

Linkit ONE Dark Detector
Linkit ONE Dark Detector
Linkit ONE Dark Detector
Linkit ONE Dark Detector

The first very basic step is to connect the linkit one battery to it. For this, you just have to plug it in your linkit one.

Task 3:

Linkit ONE Dark Detector
Linkit ONE Dark Detector
Linkit ONE Dark Detector
Linkit ONE Dark Detector

The next step is to connect an LED to linkit one. You can follow the images above. You may need to use a BC547 transistor or the brightness of the LED would be too low. I connected the LED to digital pin 2.

Task 4:

Linkit ONE Dark Detector
Linkit ONE Dark Detector
Linkit ONE Dark Detector

Next, connect your light sensor to linkit one as per the following:

– Vcc sensor ——————- 5v Linkit
– Gnd ————————– Gnd
– Vout ————————- A0

Task 5:

Linkit ONE Dark Detector

Upload the code given below by copying it and pasting to your IDE. The switches on linkit one should be in SPI, USB, UART modes.

\\
void setup()
{
pinMode(2, OUTPUT);
}
void loop()
{
if(analogRead(A0) > 600)
{
digitalWrite(2, LOW);
}
else
digitalWrite(2, HIGH);
}
\\

Task 6:

Linkit ONE Dark Detector

Finally, after completing everything, switch the device on. Initially, the LED would be off but when you switch off your room lights or go to a dark room, the LED would glow indicating darkness.

This is the end of this instructable. Thanks for watching!! sensors – Linkit ONE Dark Detector, in category: technology

Written by admin