Contenidos
Introduction to the Touch Sensor for Arduino
Principle of operation
The capacitive sensor is simply a capacitor that detects when a person press it. He circuit integrated already prepared for arduino has of all the components for a performance right.
Connection of the Joystick
It has five two power and three pins that will be the outputs.
- GND: GND of Arduino.
- + 5V: power, five 5V Arduino.
- VIG: Input digital, 1 if it is pressed and 0 otherwise.
Features of the Touch Sensor
He sensor detects when is you touches with the hand (or any part of the body) usually this sensor detects a certain capacity to the press it our body creates an effect capacitive on Earth enough so the sensor jump to state high.
Characteristics of the Capacitive Touch sensor
Work voltage | 5V DC |
Dimensions | 2.0 cm x 2.0 cm x 0.3 cm |
Connection of Touch Sensor for Arduino
Design prototyping of the Touch Sensor with Arduino Mega
Wiring diagram of Joystick with an Arduino Mega
Programming of the Joystick
Explanation prior
The program is really simple just let an LED lit when you press on the sensor, this device is a button that is only works while pressed as opposed to a switch, which remains in a State.
Code
TOUCH SENSOR BUTTON WITH LED FOR ARDUINO
pinLED int = 13;
int pinTouch = 8;
void setup() {}
pinMode (pinLED, OUTPUT);
pinMode (pinTouch, INPUT);
}
void loop() {}
digitalWrite (pinLED, digitalRead (pinTouch));
}
Once programmed we will see how it changes the LED
Video of operation
Check out Arduino courses, I am Freelance experience.
Buy Sensor Touch Arduino
To acquire this component and be able to carry out this project can click on is link with a selection of different sellers from Amazon.