Linkit ONE Touch LED

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.

Linkit ONE Touch LED

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………

Step 1: Parts Required

Parts Required 1

The following parts are required to make this project:

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

Step 2: Connect the Battery

Connect the Battery 3

The first step or the easiest step is to connect the battery to linkit one. Simply plug it to it’s socket.

Step 3: Connect the LED

Connect the LED

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.

Step 4: Connect the Sensor

Connect the Sensor

Connect the touch sensor to linkit one as per the following:

– Vcc ——————— 5v of linkit
– Gnd ——————— Gnd
– Out ———————— A0

Step 5: Upload the Code

Upload the Code 2

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);
}
\\

Source: Linkit ONE Touch LED


About The Author

Author avatar

Muhammad Bilal

I am a highly skilled and motivated individual with a Master's degree in Computer Science. I have extensive experience in technical writing and a deep understanding of SEO practices.

Stay in the loop

New AVR projects, tutorials and schematics, every week.

Subscribe Browse projects

Scroll to Top