What does it do ? Mine is a touch activated light display.
How does it work? It is controlled by an Arduino UNO which senses the inputs and turns on the respective outputs.
Lets watch it in action!
Step 1: Building the touch sensor
U dont need ny external hardware to get the sensing functionality.
All u need to do is upload the following code on ur board, turn on ur serial monitor and then touch the metallic wire to see the change in the value. :)
What does the code do? It returns the time that the pin takes to discharge. When it is touched, it takes more time to discharge. U need to adjust the threshold to currectly identify a touch.
Even If u cant understand the function which calculates the value of the pin, it is perfectly ok.. There are only 2 modifications needed according to ur design.
1) The number of touch sensing u want
2) Threshold setting
Here's a lil shaky video about how u can see the difference in the capacitance value of a pin when u touch it. <my camera wasn able to focus well so>
Lemme explain what happens in the video. When the pin is not touched, I get the value 1 at the pin [as can b seen on the serial monitor]. When the pin is touched, the value goes higher than one, depending on how much u press the wire. Again when released, the pin value goes back to one.
Once the sensing goes well, we build the whole contraption!