Introduction
- In this article, I will explain about the Working With Touch Sensor By Using In Arduino Mega.
- When we touch the things that we have kept or connected to the Arduino, it will be used to blink the LED.
Parts Of Lists
- Arduino Mega 2560
- Touch sensor
- Bread Board
- LED
- Hook Up wires
Touch Sensor
- Touch Sensor enables you to replace the press with touch.
- It can detect the change in capacitance when a finger is nearby.
- That means no matter your finger directly touches the pad or just stays close to the pad.
- Touch Sensor would output HIGH also.

Figure 1: Touch Sensor
Connection
Step 1: Connection From ArduinoMega To Touch Sensor,
- Connect the SIG pin to Ao of the Analog pin to the Board
- Connect the VCC pin to 5v of the Arduino Board
- Connect the GND pin to Gnd of the Arduino Board.
Step 2: Connection From ArduinoMega To LED,
- Connect the positive side to 02 of board
- Connect the negative side to the GND of the board.
Programming
- void setup()
- {
- pinMode(2, OUTPUT);
- }
- void loop()
- {
- if(analogRead(A0) > 600)
- {
- digitalWrite(2, HIGH);
- }
- else
- digitalWrite(2, LOW);
- delay(100);
- }
Explanation
- In this article I explained about the Working With Touch Sensor By Using In ArduinoMega.
- It can clearly display the output on the LED blink
- When we touch the sensor it will glow high automatically.
Output

Figure 2: Output


Shobana JPosted Jul 8, 2016, 12:17 AM EDT
Good one
Sr KarthigaPosted May 25, 2016, 4:05 AM EDT
thank you sonu sir
Sr KarthigaPosted May 25, 2016, 4:05 AM EDT
thank you gowtham k sir
Sr KarthigaPosted May 25, 2016, 4:05 AM EDT
thank you gowtham sir
Sr KarthigaPosted May 25, 2016, 4:04 AM EDT
thank you raja sir
Sr KarthigaPosted May 25, 2016, 4:04 AM EDT
thank you prasana
Sr KarthigaPosted May 25, 2016, 4:04 AM EDT
thank you gopi sir
Sr KarthigaPosted May 25, 2016, 4:04 AM EDT
thank you vignesh sir
Sr KarthigaPosted May 25, 2016, 4:03 AM EDT
Thank you thiruppathi sir
Sr KarthigaPosted May 25, 2016, 4:03 AM EDT
Thank you munesh sir
Sr KarthigaPosted May 25, 2016, 4:02 AM EDT
Thank you debasis sir
Sonu ChaudharyPosted May 24, 2016, 8:48 AM EDT
Nice Sharing..
Gowtham KTOP 100Posted May 24, 2016, 2:10 AM EDT
Good One
Gowtham RajamanickamTOP 100Posted May 23, 2016, 9:18 PM EDT
good work
RajaPosted May 23, 2016, 8:38 PM EDT
Great Work......
Prasanna MuraliPosted May 23, 2016, 6:20 PM EDT
Good one..
Vignesh ManiTOP 100Posted May 23, 2016, 11:47 AM EDT
Good one
Gopi ChandPosted May 23, 2016, 11:27 AM EDT
Nice work..Keep going..
Thiruppathi RPosted May 23, 2016, 10:53 AM EDT
Good ..
Munesh SharmaPosted May 23, 2016, 9:57 AM EDT
great
Debasis SahaTOP 100Posted May 23, 2016, 9:45 AM EDT
Good One..