Monday, January 27, 2014

Breadboard with LED

We used the power supply that we used in the previous class and we used it to light up an LED that was provided to us. We used a resistor to lower the amount of voltage that is going through the LED to prevent it from burning up. We used a solder-less breadboard and put all those components together in the breadboard and saw it light up. 

This is my awesome LED well lite with the resistor to prevent it from burning up. 


Soldering Board and Power Supply

This was a very great way to start of a class. Right of the bat we were practicing soldering with a variety of resistors, electrolytic capacitors, diodes, and ceramic capacitors. We learned the correct way to solder the parts on to the board. We also learned the proper way to strip a set of wires. Not by using our teeth like the funny comic shows, we used a proper tool called a stripper to expose wires.

Here is the placement of how I placed the many resistors on to the board. I did not place the resistors standing up like many people did, I placed all the components laying down like a bunch of lazies.  


This is the back part of the board. You can see the fancy soldering that I did. In this picture you can see how there is connectivity in between my joints.


Finally, this was the last soldering project we did the day. We stripped the wires on  a former phone charger. We exposed the wires on the power supply and soldered together pins on to the wires and then covered it with shrink wrap.

Wednesday, January 22, 2014

Hacked Toy


 The toy has a single motor that allows the legs, arms, and head to move. I have a switch is used to send a signal to pin 12 on the Arduino a an input and then sends an output signal to pin 13 that allows the toy to dance around.



This is my hacked toy with fancy shoes with LEDs.

 Their is also a button switch that is used as an input on pin 6 and ten sends an output signal to pin 5 and lights up the LED lights on the toys shoes.


Here is my code:

#define LEDInput 6
#define LEDOutput 5
#define MotorInput 12
#define MotorOutput 13

void setup(){
  pinMode(LEDInput,INPUT_PULLUP);
  pinMode(LEDOutput,OUTPUT);
  pinMode( MotorInput,INPUT);
  pinMode(MotorOutput,OUTPUT);  
}

void loop(){
  
if(digitalRead( MotorInput)==HIGH){
    digitalWrite(MotorOutput,HIGH);}
  else{
  digitalWrite(MotorOutput,LOW);
  }
  
if(digitalRead(LEDInput)==LOW){
    digitalWrite(LEDOutput,HIGH);}
    else{
      digitalWrite(LEDOutput,LOW);
    }
}