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!!!!
i was assigned to do project #3 in the Arduino book called love-o -meter. The love-o-meter project enables you to test the warmness of our skin using a temperature sensor. Pretty cool huh :). lets get started
Materials
list of materials
Arduino Board
breadboard
jumper wires
3 red LED's
3 220 ohm resistors
TMP36 temperature sensor
Step 1
The very first thing to do is to attach your resistors ,led's , TMP36 temperature sensor on your board. Then i connected the components using jumping wires to to my Arduino board .
step 2
the next step is to write down your code. if successful the code will cause the led's to light up one by one when touching the TMP temperature sensor!!! now lets see if it works
step 3
As you can see all the led's lit up , so i am assuming my coding is wrong . I double checked my coding ,but i couldn't find what was the problem. I have to figure out what i did wrong in my coding and do corrections.
as you can see, the picture here is showing what the temperature is when my monitor is on the open air.
I was assigned to complete projects 1 and 2 in the Arduino Projects book . The 1st project consist of creating two circuits,which is a series circuit and a parallel circuit. The second circuit consisted of creating and programing a"spaceship interface"circuit. Lets get started!!!!! :)
The First project:creating a simple circuit
Materials
List of materials
Two large jumper wires
1 red LED
1 breadboard
1 pushbutton
2 small jumper wires
1 Arduino Board
1 220 ohm resistor
Step 1
Connect the Arduino board to the breadboard by using the two long jumper wires. connect the ends of the two jumper wires on the 5v and GND panel on the Arduino ,while conecting the other end towards the bus lines of the breadboard
Step 2
place a switch across the center of the board in one direction. As you can see.....
step 3
Connect a 220-ohm sensor to connect power to one side of the switch
step 4
connect the other side of the switch by connecting the Red LED. As you can see, I used a wire to connect the the cathode (short leg) of the LED to the ground.
Step 5
plug in the USB cable to the Arduino and you are set. Press the button and the Red LED should light up!!!!yay
Creating the Series Circuit
Step1
Add another push button next to the one already connected on your breadboard. As you can see ,my push buttons are wired in a series that causes the led to light when both push buttons are pressed at the same time
Step 2
Connect the the anode of the Red LED to the second switch ,as well as connecting the RED LED cathode to the ground .Now let's test it out !!!!
step 3
As you can see ,when both push buttons are pressed at the same time ,the Red LED lights instead of one . The reason why that happens is because the same electrical current flows through both of the push buttons ,so they have to be pressed if you want the circuit to be completed,therefore causing the Red LED to light . Now let's create a parallel circuit !!!!! :)
Creating the Parallel circuit
step 1
-It's crucial that you keep the push buttons and the
red LED where they are . Remove the connection the two push buttons and change the switch connections ,so you can get a parallel circuit.
step 2
As you can see , the Red Led lights when pressing one push button,but let's see if it works for the other push button?????
Would you look at that, it works!!!!! But why does this happen? Let me explain. Since the circuit is parallel , the electrical current is split between the two push buttons . Either push button you choose to press will light the red LED.
Project #2- creating and programming a"Spaceship interface"circuit
I was assigned to create and program a"spaceship interface" curcuit ,so let's get started . First let's create the circuit!!!!!!
materials
1 breadboard
1 Arduino Uno
6 long jumper wires
1 small jumper wire
1 pushbutton
2 red LED's and 1 green LED
3 220 ohm resistors and 1 4.7 kilohm resistor
create the circuit
- place 4 long jumper wires on digital pins 2,3,4,and 5 on the Arduino Uno. Also place 2 long jumper wires on the ground and 5V pin on the Arduino uno .
- It's easier to place your resistors on your bread board first ,so that's what i did. place one side of your first 220 ohm resistor on the 8th negative power bus and the other on 7b. Place one side of your second 220 ohm resistor on the 12th negative power bus and the other on 11b. Place one side of your third 220 ohm resistor on the 16th negative power bus and the other on 15b. Place one side of your small jumper wire on the 23rd positive power bus and the other on 22a. place one side of your 4.7 kilohm resistor on the 24th negative power bus and the other on 24b.
once you have finished setting your resistors down, start
connecting the jumper you placed on the arduino uno towards the breadboard. Place one jumper wire on 24c, 14a, 10a,and 6a. connect your ground jumper wire towards the negative power bus and connect your 5v jumper wire towards the positive power bus.
The final setup is to place your LED's on the bread board ,as well ass you r push button. So that's how you create the circuit.
Here's the awesome circuit we created people yayyy. now lets get the code down.
cracking the code
As you can see i have typed down my code and if it works, you"ll see something cool.so let's plug it in!!!!!!!!!!
This is me recording what happens when the code is uploaded . you will notice that only the green LED lights up,but when you press the pushbutton the two red LED's will light up and the green LED would stop lighting up.!!!!!! coool !!!!
As you can see, i have typed down the code. Once the code is proccesed by the arduino uno ,you'll something cool. So lets plug it in.
Last week i was given a Arduino kit, but let me explain what is a Arduino kit. An Arduino kit is a kit that enables you to develop interactive objects,taking inputs from a variety of switches or sensors,and controlling a variety of lights ,motors, and other physical outputs. Interesting!!!!!!!
Now lets see whats inside the box!!!!
As you can see there are a lot of components ,but lets list them. Drum rollllll!!!!
The components in a Arduino kit
Arduino project book
Arduino uno board
usb cable
breadboard
easy-to-assemble wooden base
9v battery snap
solid core jumper wire
stranded jumper wire
photoresistor[VT90N2 LDR]
potentiometer 10kilohm
pushbuttons
temperature sensor[TMP36]
tilt sensor
alphanumeric LCD(16x2 characters)
LED(bright white)
LED(RGB)
LED(red)
LED(green)
LED(yellow)
LED(blue)
Small DC motor 6/9V
small servo motor
piezo capsule[PKM17EPP-4OO1-BO]
H-bridge motor driver [L239D]
optocouplers
transistor[BC547]
mosfet transistors[IRF520]
capacitors 100nF
capacitors 100uF
capacitor 100pF
Diodes [1N4007]
transparent gels (red,green/blue)
male pins (40x1)
resistors 220 ohm
resistors 560 ohm
resistors 1 kilohm
resistors 4.7 kilohm
resistors 10kilohm
resistors 1megohm
resistors 10 megohm
Now lets start with my project!!!
I was assigned to illuminate LED using a code ,requiring the use of the Arduino kit .
As you can see , i have the Arduino application on my dock
Step 2
- I connected the Arduino Uno Board to my laptop using the USB cable and that enables me to upload a program
note the green light
step 3
- The next thing to do is to select your board so to do so , you have to got to tools>board>Arduino Uno
-once choosing your board , its important to open up the code thats going to light up the LED . To do so , you are going to follow the instructions below
File>examples >01 Basics>Blink
As you can see ,the code will show up like this . It's important to save it ,but don't copy my name though !!!!
step 4
- checking for Syntax errors is crucial ,so verifying will do the job . Pressing the the verify option (aka the check sign) will check for syntax errors
-once you verify the code , you'll have to upload it by pressing the right arrow shown in the photo .
- once the code is finished uploading you will notice a yellow LED blinking continuous and thats a signal that the the LED you are going to attach is going to light up
taddaaaaa!!!, as you can see ,the light is blinking non stop. Yayy :)