Linkit ONE Touch LED

by Diwask in Circuits > Microcontrollers

1247 Views, 12 Favorites, 0 Comments

Linkit ONE Touch LED

DSC00320.JPG
This instructable will guide you to glow an LED using a touch sensor which means that the LED will glow when you touch on the probe of the sensor.

The project uses the Mediatek linkit one connected to a touch sensor and an LED. As soon a touch is detected, the output goes high which is detected by linkit one thus the LED glows.

So let's begin with this project.........

Parts Required

DSC00170.JPG
DSC00167.JPG
DSC00242.JPG
DSC00304.JPG
DSC00259.JPG
DSC00267.JPG
DSC00256.JPG
The following parts are required to make this project:

- Linkit one
- Battery
- Breadboard
- Touch sensor
- Transistor
- LED
- Jumper wires

Connect the Battery

DSC00250.JPG
DSC00247.JPG
DSC00246.JPG
DSC00243.JPG
The first step or the easiest step is to connect the battery to linkit one. Simply plug it to it's socket.

Connect the LED

DSC00306.JPG
DSC00308.JPG
DSC00311.JPG
DSC00310.JPG
Next step is to connect the LED. You can follow the images provided above. The digital pin that you need to use is- pin 2.

Connect the Sensor

DSC00313.JPG
DSC00320.JPG
Connect the touch sensor to linkit one as per the following:

- Vcc --------------------- 5v of linkit
- Gnd --------------------- Gnd
- Out ------------------------ A0

Upload the Code

DSC00252.JPG
Upload the code provided below to your linkit one. The switches should be in SPI, USB and UART positions.

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

Test

DSC00318.JPG
After completing the project, switch in on. On touching the probe of your sensor with your hands, you will observe that the LED lights up!

So, this is the end of this instructable. Thank you so much for watching!!