'''week 1 - Building my first circuit.''' I met with Kate and together found out how to make an LED turn on. So exciting! Attach:firstbreadboard.jpg ''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. Attach:paralelcircuit.jpg 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. Attach:serialcircuit.jpg After a long time I got the light turning on and off with the switch. Attach:lighton.jpg Attach:lighton1.jpg 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. Attach:adc.jpg Attach:adc.pbp '''week 4 - Serial.''' Attach:serial.pbp '''week 5 - dcMotor.''' Attach:dcmotor.jpg Attach:dcmotor.pbp Attach:servo.pbp '''week 6 - midi.''' Attach:midi.jpg Attach:midi.pbp '''week 7 - midterm.''' Hacking a Cd Player. Attach:switch.jpg Attach:openCd.jpg Attach:16f819.jpg Kazu's code (sensor - adc) > Attach:cdplayer01.pbp Attach:pgRelay.jpg Attach:pdRelay.jpg 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. Attach:IMG_5530.jpg Attach:IMG_5534.jpg Attach:IMG_5535.jpg Attach:IMG_5536.jpg Attach:IMG_5540.jpg Attach:IMG_5544.jpg Attach:IMG_5547.jpg Attach:IMG_5548.jpg Attach:IMG_5551.jpg Attach:IMG_5552.jpg Attach:IMG_5553.jpg Attach:IMG_5560.jpg Attach:IMG_5561.jpg Attach:IMG_5564.jpg Attach:IMG_5565.jpg Attach:IMG_5567.jpg