Materials
- Arduino Uno board
- breadboard
- 3 long jumper wires
- 1 10 megohm resistor
- one small piece of alluminim foil
Setting up
-set one jumper wire on digital pin 2 and set the other one on digital pin 4 on the Arduino Uno board.
- Place the digital pin 2 jumper wire on the positive vertical ground on the bread board . Connect one side of the 10 megohm resistor towards the positive vertical ground and connect the other side towards the 14b pin on the breadboard. Place the digital pin 4 jumper wire on the strip that that the resistor is on,so you'll place it in 14C.
-place one side of the third jumper wire on the same strip that digital digital pin 4 jumper wire is on ,so you will place it on 14d. The other side of the third jumper wire is going to be our sensor pin, so it will give me the reading when connected to a conductive material aka "the aluminum foil"
as you can see, i covered the sensor pin with aluminum foil.
Now let's code yayyyy
- I typed down the Capacitive Sensor sketch given to us when you downloaded the capacitive sensor library on the arduino.cc website. But i had to make changes to the code
once i had my code set up , you'll upload it to your arduino uno. As you can see i am not pressing the aluminum foil yet !!!!!
-Now that i am touching the aluminum ,my electrical capacitance is being sensed by the aluminum foil
-The number will begin to increase rapidly whenever you press the aluminum foil
Now let's see what happens when i place my hand near the sensor
As you can see i am not touching the sensor
Now let's check your serial monitor!!!!!!!
As you can see ,the numbers increase slightly without touching the sensor!!!!!
Now here's a video footage of me showing how it works!!!!
reference
Good job! What happens when you put your hand near the sensor, but do not touch it? You will drive today's talk, so be on time. ; D
ReplyDeleteWhat is the optimal range of distance you can hold your hand near the foil without touching and still get a good reading?
ReplyDelete