Tuesday, March 27, 2012
My First robot
This is stage one of my first robot. Here my robot has the wheels installed and programmed to work with the stepper motor. In the future I will be adding more deviced to my robot.
Motor
This is a motor that will be used in my first robot. the motor is connected to the arduino and we can program it to move back and forth and so forth.
Sonar
This is a sonar connected to the arduino. This is used to detect how far things are from the device. This piece of technology is very useful. This will allow my robot to sense its surroundings and complete the task at hand.
Stepper motor
This is a picture of my stepper motor and my relay connected to my arduino. The stepper motor is what will power the wheels in my first robot, and the relay is what will allow my robot to either attack things, or clear things out of the way.
Switch and actuator
This is a picture of a switch and an actuator. The actuator moves in and out, and can be used as robotic arm. The switch on the left controls the power.
resistor Divider
This is a picture of me measuring the voltage drop in the resistor divider. It still reads 4.89 volts, because the two resistors act as one giant resistor. Both of the resistors drop the same amount which is 2.42 volts.
Measuring Photo Resistor
Measuring Resistors
This is me measuring a resistance. A resistor has three color bands, each color represents a diferent number from 0-9. The order is: black, brown, red, orange, yellow,green, blue, purple, grey, white. The firs two bands represent the first and second digit, and the third band is the multiplier by numbers of 0's
Tuesday, February 7, 2012
Monday, February 6, 2012
Electrical Circuits and LEDs
Both these circuits turn on an LED when a button is pressed.
One circuit is simple. It uses no microcontroller. When the momentary push-button is
pressed, the circuit is completed, and the LED turns on. We use a 220 Ohm resistor
with the LED because otherwise, the LED would burn out.
The second circuit uses a programmable microcontroller.
The LED that is turned on/off is permanently connected through a resistor to the
microcontroller board at pin 13.
The momentary push-button is connected to digital pin 2 and 5v.
Digital pin 2 is also connected to GND via a 10k resistor.
If the resistor were not there, the LED might flicker as a result of the pin “floating”.
“Floating” means that the pin is neither connected to GND nor to 5v when the button
is not pressed. A “floating” pin may lead to a flickering LED.
Therefore, pin 2 has to be connected to GND through a resistor. This will cause the
pin to sense GND when the button is not pressed, and 5v, when it is pressed.
The program uploaded to the microcontroller creates the connection between the
state of the button (on/off) and the state of the LED (on when button is pressed, off
when it is not pressed).
Subscribe to:
Posts (Atom)