Wednesday, February 12, 2014

Robot Completed

Provided is the picture of the entire robot assembled with all sensors and equipment to perform in the competition.
 
 

LDR Musical Instrument


Robet Vex Programming

Here is the Arduino with the new microcontroller tested.

Robot Fan

In order to blow out the flame, a fan was installed on top of the flame sensor.

Robot Ultrasonar sensor

The ultrasonar sensor is placed in front of the robot to read the distance between the objects surrounding it.  Most of the time, it is the wall that is navigating in the maze. The wire connects to the analog section of the microcontroller.

Robot flame sensors

In order to put out the flame, a flame sensor will scan the room to find it and allow the user to program the robot to drive towards it.

A 1.3K resistor is placed so that it does not burn out the sensor.  Cables are attached to the analog section of the microcontroller.

Robot Line Sensors

Line sensors can pick up the black tape lines that have been placed in the maze.  The robot will stop and proceed into the room with the encoder information.

It is located in the front and the bottom of the robot facing the floor.

Robot Encoders

Two encoders were placed side by side to control the count of the wheels.  This information would allow the user to tell the robot how far it should travel.

2nd week 1.16.14 Driving Motors with X-mas Light microcontroller controlling motor

The light blinks on its own.
 
 
 





2nd week 1.16.14 Driving Motors with Darlington device for X-mas Light

Darlington controlling signal lamp. It is  3.3K resistor with a back EMF suppression diode 1N4001.


2nd week 1.16.14 Driving Motors with X-mas Light

This exercise allows input and output devices to work together.  A small 200mA incandescent bulb, or a small Christmas light, being controlled with a microcontroller.




Wednesday, January 22, 2014

3rd week W 1.22.14 Snoopy Project

Snoopy is a good dog; he is Charlie Brown's best friend.  Over 75 years old and still going strong!  How he enjoys the snow during Christmas season.  With his Christmas hat, he dances to the beat of Charlie Brown.  In this class, he has decided that when he dances, he is going to stop and rest his legs. With the push of a button, he will start and stop when letting go. 

See for yourself.

Tuesday, January 21, 2014

2nd week TH 1.16.14 Hack a Toy

Purchased Snoopy that dances from side to side with the famous Charlie Brown song.






2nd week TH 1.16.14 Using a Light Dependent Resistor(LDR) White instead of push button

Inserted a Light Dependent Resistor(LDR) which changes the light for both LEDS based on amount of light.

Inserted four programming languages that will do the following:
Both LED lights are on.


 

As I lower the finger closer to the top of the LDR, I program one LED to turn off.

 

As I lower it more, the yellow LED turns on and the green LED turns off.


 

I place finger on top of LDR removing any light from being received by resistor.  No LED turns on.

turn off:  digitalWrite(ledPin, LOW);
turn on: digitalWrite(ledPin,HIGH);

2nd week 1.16.14 Using Digital Inputs with a pushbutton and two pins in microprocessor

Original test will the input.  Adding  4.7k and 10k resistors to Pin 8 will create the output.  When pushing once, pin 6 will turn on. Push again and pin 8 turns on.

Microprocessor connected to both pins 6 and 8.
 
 
Pin 6 and 8 on right side.
A0 for connected to pin 6 for buttonstate.

Thursday, January 16, 2014

2nd week 1.16.14 Light blinks slow and then goes faster

1st Programming:

Using "for" statement, made a LED light turn on from Arduino.
void setup() :{
    pinMode(LED,OUTPUT):   //Initialize Digital Pin 6 as an output
}
void loop() {
    digitalWrite(LED,HIGH);  // Set the LED On
    delayMicroseconds(16000);  //Wait for 16ms (1second)
    digitalWrite(LED,LOW);     //Set the LED Off
    delayMicroseconds(16000); // Wait for .016 seconds
}

Microcontrollers, input and output handout


 
 


2nd week 1.15.14 Knight Rider car LED pattern

Wrote a program to install four lights total.  The bottom left LED lights last and the green lights first.


Last resistor turns on

Third resistor turns on



  

  2nd resistor



First resistor turns on.



 
 

2nd week 1.15.14 Arduino Microcontrollers

Create program to flash the LED light.
Right Side: Ground is Black, Red is positive for LED. 
 

220K resistor on ground.  Ground wire on top.
Red wire from Arduino to positive same row as LED light.
 

With program uploaded from computer, LED light turns on!
 

2nd week 1.14.14 Square Bot finished

Different takes on how the Square Bot looks.

2nd week 1.14.14 Fingertip Switching

Remove a resistor and install two jumper wires.  Place two fingertips on the wire and the light turns on.  Wet the fingertips and the light becomes brighter.




 Previous exercise using pushbutton
 Not using pushbutton but remove 10K resistor and fingertip lights up the yellow LED.

2nd week 1.14.14 Transistor Switching

Three resistors: 150- 10K-330
Transistor: 2N3904: Black with three prongs in radial formation
LED: 1
Pushbutton: 1, Single Pole-connections, Single Throw-directions

Click on pushbutton and the transistor lights up.  Trans. has collector, base and emitter. Make sure to install jumper wire from positive (power) on one side of board to the ground on other side.

 
 

Monday, January 13, 2014

1st week TH 1.9.14 Connect capacitor to relay: Both lights automatically blink

Added jumper wire from LED to one switch prong.  The other side of the switch was sent to positive energy as before.  A jumper wire connected negative sides of both relay and capacitor.  Another jumper wire connected positive sides.  Relay jumper wire to negative power.  Capacitor negative side with jumper wire to negative wire.

 

1st week TH 1.9.14 Construct a circuit with a relay

Insert 680K resistor to ground with jumper wire. 
Install two LED lights.
1st LED to 2nd row of relay. 
2nd LED to 4th row. 
Connect relay to switch with jumper wire. 
Small black switch to positive power with jumper wire.
Connect relay to positive power.
Relay exercise:  Each time I click on switch, a different light turns on.
We used a 9V battery and can see from bottom left that the power and ground wires are connect to board.

1st week W 1.8.14 Potentiometer Test

A (pot) potentiometer.  There was a jumper wire placed from negative to pot.  Both sides of the pot need to be bent upwards to install it.  Resistors start in the middle of the pot or wiper.  The LED light is then placed in from resistor to end.  Another jumper wire from LED to positive power to complete the cycle.
Light turns on high with pot at the maximum rate.  100K is used for protecting the pot when it is at its lowest or in the off position.

1st week W 1.8.14 First circuit test

Had a closed circuit.  Inserted a resistor on positive side and a LED light on its row.  Had the LED light side go to the negative side of power.  Light lit up.
 
Rewired the breadboard to place the LED light in one row and connect to negative power.  Also placed resistor in negative power.  No power. Open circuit.
 

1st week W 1.8.14 Changing brightness with resistor

I placed a 100k, 1k, and 10k resistor in a separate row connecting to the negative power.  Each had a LED light.  I placed a jumper wire from the positive power to LED row.  With power cord, all light lit up.  The 100k was the brightest (red) and 10k (yellow) was the dimmest which had the most resistance to the energy produced
 
.

1st week W 1.7.14 Intro to Breadboard

Use a 1K resistor and a LED light.  Insert homemade power supply and LED turns on!  Resistor is on positive and LED is on negative power.  LED positive side is next to resistor in same row.
 
When placing each component on a separate row, there is no connection.  It is an open circuit and the light does not turn on.