Tuesday, March 31, 2015

capacitive sensor assignment

I was assigned to construct an capacitive sensor . A capacitive sensor senses the electrical capacitance of the human body.  let's get started!!!

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























- I fixed the code ,so it can focus only on one Sensor 
















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








- open up your serial monitor and you will notice that low numbers are showing up . Note that i am not touching the aluminum foil

-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 


















2 comments:

  1. 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

    ReplyDelete
  2. What is the optimal range of distance you can hold your hand near the foil without touching and still get a good reading?

    ReplyDelete