week 1 - Building my first circuit.
I met with Kate and together found out how to make an LED turn on. So exciting!

The electrons trip
They come from the 5-15VDC power supply, they go through the power supply connector, to the switch, to the 5V regulator, to the 220 ohm resistor, to the LED and finally to ground.
LED information. Voltage required and mA (miliams-current-1000ma=1amps): http://www.jameco.com/webapp/wcs/stores/servlet/ProductDisplay?langId=-1&storeId=10001&catalogId=10001&productId=94511
LED series resistor calculator: http://ourworld.compuserve.com/homepages/Bill_Bowden/led.htm
week 2 - Start with code.
Paralel Circuit. (Each LED receives the same voltage but uses more miliamps. That means that the battery will be usefull for less time.

LEDs? in series. (The voltage is divided in each LED. If you have 5v coming from the 5v regulator, and you have 5 LED in series, each one will receive 1v.

After a long time I got the light turning on and off with the switch.


code:
DEFINE OSC 4
input portb.0 output portb.1
output portd.2 output portd.3
main:
if portb.0 = 1 then high portd.2 low portd.3 else high portd.3 low portd.2 endif goto main PAUSE 1000 low portd.2 high portd.3 pause 500
goto main
week 3 - Variables and ADC.
With a variable resister (flex sensor or potentiometer) I turn on a series of LED's one by one.

week 4 - Serial.
week 5 - dcMotor.

week 6 - midi.

week 7 - midterm.
Hacking a Cd Player.



Kazu's code (sensor - adc) > Attach:cdplayer01.pbp


It workssssssssssss!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! :))))))))) Rocio's code. Thank you Gilado! Code with if statement: Attach:switchOnCd.pbp Set a variable so that we know when we have already pressed the button.
new breadboard with 18F452 Attach:cdplayer001.pbp
Observation Project. Photographs.

