Wednesday, 23 April 2014
THIS IS AWESOME
so you're watching that sci-fi movie and you say "hey dude, *****wood's at it again with all their studio tricks...HOW THE **** DID A LIGHT COME ON WHEN THIS DUDE WALKED BY?"
well, believe it, it's no trick!
why? 'cos that's what you are about to see... READY?
WHAT YOU NEED TO PERFECT YOUR OWN *****WOOD TRICK?
- your arduino board+cable
- breadboard
- 10k resistor
- PIR motion sensor
- jumper wire
HERE IS THE SKETCH
/* using pir motion sensor to off and ON an led connected to pin 3 of the arduino...
AUTHOR: ANIEROBI PETER
DATE: 4/23/2014
www.hub360.blogspot.com, www.facebook.com@hub360
*/
int motion =4; // pir motion sensor connected to analog pin 4
int led = 3;// led connected to pin 3
int x;
void setup(){
pinMode(motion,INPUT); //set pir as input
pinMode(led,OUTPUT); //set led as output
}
void loop(){
x= digitalRead(motion); //read to know if motion is detected or not
digitalWrite(led,x); //ON or OFF an LED according to detection
}
NOTE:
- WHEN CONNECTING YOUR COMPONENTS, THE VCC OF THE PIR IS CONNECTED TO 5V PIN ON THE ARDUINO BOARD
- THE GROUND OF THE PIR IS CONNECTED TO THE GROUND PIN OF THE ARDUINO
- THE OUT OF THE PIR IS CONNECTED TO PIN4MOF THE ARDUINO
- THE ANODE (POSITIVE LEG) OF THE LED IS CONNECTED THROUGH A 220OHM RESISTOR TO PIN3 OF THE ARDUINO
- THE CATHODE (NEGATIVE) OF THE LED IS CONNECTED TO THE GROUND OF THE ARDUINO
A. LED (ON THE BREAD BOARD) IS OFF DUE TO ABSENCE OF MOVING OBJECT
B. LED (ON THE BREAD BOARD) COMES ON AS IT SENSES MOVING OBJECT
don't forget...
think...create...repeat
team hub360
PROJECT 3
hello there. how are you finding our classes? interesting we presume....
have you ever wondered about the possibility of an
AUTOMATIC LIGHTING SYSTEM? the ability to lighten up your home via
a trigger (not a conventional switch)?
ever went out and forgot to turn off those lights? (ooops, more bills)
anyway, for today's class, we will be addressing just that: the ability to
control your lighting system with a light-dependent resistor (LDR)
YEEEEAAAAHHHHHHHHHH!!!!
"how does it work"? quite simple
the LDR is sensitive to light and comes on when it senses light, and turns
off automatically when there is darkness... "THIS IS AWESOME"
SO WHAT DO WE NEED?
* arduino board+cable
* breadboard
* 220 ohm resistor
* 10k resistor
* LED
* light-dependent resistor
* jumper wire
think...create...repeat
HERE'S THE SKETCH
/* using an ldr to off and ON an led connected to pin 3 of the arduino...
AUTHOR: ANIEROBI PETER
DATE: 4/23/2014
www.hub360.blogspot.com
*/
int ldr =0; //ldr connected to analog pin 0
int led = 3;// led connected to pin 3
int x;
void setup(){
pinMode(ldr,INPUT);
pinMode(led,OUTPUT);
}
void loop(){
x= analogRead(ldr); // read ldr and store in varible x
if(x<100)
{
digitalWrite(led,HIGH); // turn on led when ldr is covered
}
else if(x>100)
{
digitalWrite(led,LOW);//off led when ldr is exposed to light
}
}
THIS IS WHAT YOUR CONNECTION SHOULD LOOK LIKE
VOILA!!!
BE SEEING YOU SOON. TILL THEN,
THINK...CREATE...REPEAT
have you ever wondered about the possibility of an
AUTOMATIC LIGHTING SYSTEM? the ability to lighten up your home via
a trigger (not a conventional switch)?
ever went out and forgot to turn off those lights? (ooops, more bills)
anyway, for today's class, we will be addressing just that: the ability to
control your lighting system with a light-dependent resistor (LDR)
YEEEEAAAAHHHHHHHHHH!!!!
"how does it work"? quite simple
the LDR is sensitive to light and comes on when it senses light, and turns
off automatically when there is darkness... "THIS IS AWESOME"
SO WHAT DO WE NEED?
* arduino board+cable
* breadboard
* 220 ohm resistor
* 10k resistor
* LED
* light-dependent resistor
* jumper wire
think...create...repeat
HERE'S THE SKETCH
/* using an ldr to off and ON an led connected to pin 3 of the arduino...
AUTHOR: ANIEROBI PETER
DATE: 4/23/2014
www.hub360.blogspot.com
*/
int ldr =0; //ldr connected to analog pin 0
int led = 3;// led connected to pin 3
int x;
void setup(){
pinMode(ldr,INPUT);
pinMode(led,OUTPUT);
}
void loop(){
x= analogRead(ldr); // read ldr and store in varible x
if(x<100)
{
digitalWrite(led,HIGH); // turn on led when ldr is covered
}
else if(x>100)
{
digitalWrite(led,LOW);//off led when ldr is exposed to light
}
}
THIS IS WHAT YOUR CONNECTION SHOULD LOOK LIKE
VOILA!!!
BE SEEING YOU SOON. TILL THEN,
THINK...CREATE...REPEAT
Friday, 18 April 2014
PROJECT 2
hello there,
we trust you found the previous project quite exciting.
our today's project is something we always come across, but we probably don't give it a second thought because we are somewhat quite "familiar" with it...as simple as it is, it saves countless number of lives, money and reduces accidents each year. you've probably guessed it by now:
"A TRAFFIC LIGHT"
so what do we need?
MATERIALS NEEDED
SKETCH?
THERE WE GO....REMEMBER TO VERIFY AND UPLOAD YOUR SKETCH TO YOUR BOARD TO SEE IT WORK, AND DON'T FORGET TO COME BACK FOR MORE
and finally, we'll like to hear from you, so your comments and suggestions are always WELCOME, till then,
think...create...repeat
TEAM hub360
we trust you found the previous project quite exciting.
our today's project is something we always come across, but we probably don't give it a second thought because we are somewhat quite "familiar" with it...as simple as it is, it saves countless number of lives, money and reduces accidents each year. you've probably guessed it by now:
"A TRAFFIC LIGHT"
so what do we need?
MATERIALS NEEDED
- (as usual) a computer........................................................check
- your arduino (UNO) board and cable................................check
- breadboard........................................................................check
- 3 LED (red, yellow and green)...........................................check
- 3x220 Ohm resistor (you'll need one for each LED)..........check
- jumper wire.........................................................................check
SKETCH?
THERE WE GO....REMEMBER TO VERIFY AND UPLOAD YOUR SKETCH TO YOUR BOARD TO SEE IT WORK, AND DON'T FORGET TO COME BACK FOR MORE
and finally, we'll like to hear from you, so your comments and suggestions are always WELCOME, till then,
think...create...repeat
TEAM hub360
Thursday, 17 April 2014
PROJECT 1
Hello there, it's our priviledge to bring you this tutorial project,
#PROJECT 1
for this project, we will be using the arduino (UNO) board to give a very simple demonstration: A BLINKING LED
MATERIALS/COMPONENTS NEEDED
MAKE THE CONNECTION AS INDICATED
THE SKETCH (ENLARGED VERSION ON THE RIGHT)
THERE YOU GO!
and please don't forget to always check back for more...till then,
think...create...repeat
#PROJECT 1
for this project, we will be using the arduino (UNO) board to give a very simple demonstration: A BLINKING LED
MATERIALS/COMPONENTS NEEDED
- A LAPTOP/DESKTOP (ALWAYS NEEDED)
- YOUR ARDUINO BOARD AND CABLE
- BREADBOARD
- LED (ANY COLOR OF YOUR CHOICE)
- A 220 OHM RESISTOR
- JUMPER WIRE/ CONNECTING WIRE
MAKE THE CONNECTION AS INDICATED
THE SKETCH (ENLARGED VERSION ON THE RIGHT)
THERE YOU GO!
and please don't forget to always check back for more...till then,
think...create...repeat
Tuesday, 8 April 2014
ATTENTION!!!
Greetings to you all,
Yours,
TEAM HUB360
we are pleased to formally inform you that we have changed the name of this blog from PETER ANIEROBI TUTORIALS to circuitplus HUB360.we will be serving you better. keep following us, and don't forget to give us your feedback. Thanks a lot,
Yours,
TEAM HUB360
Subscribe to:
Posts
(
Atom
)