Monthly Archive for January, 2006

Lab 2: My First PIC Program

2B_blinking_switch.jpg

Notes:

- burnt out first breadboard, not quite sure how; I had a smaller one wired up, which I used to continue
- burnt index finger on right hand by grabbing the hot 5v regulator
- error on programming side; turns out I had the settings on for the wrong kind of PIC chip
- LED finally blinks!! I want to add more lights and in sequence, as soon as I get another long board

blinkingLED.jpg

The code works finally. There was a minor error but I clicked through it (not quite certain what it was) and the PIC was programmed.

Week 1: Electronics

step4.jpg

step3.jpg

step1.jpg

step2.jpg

Notes:

- the power switch has a little symbol on it that shows which of the two connections is ground and which is power

- it is very important to check the labels of the resistors according to which color they are (eg. I was using a 110 ohm resistance, which I thought was good for the two bulbs, 1.7 LED voltage/ 20 LED current/ 5 total voltage, that should have only needed 82 ohms resistance. Little did I know that the resistor I had picked up was K ohms! I figured the extra ohms of resistance were the reason the LED did not light up. I checked the colors and found the correct amount.)

- the amount of resistance can be read according to the colors, each color being a different amount or resistance. The numbers are then added up to determine the total amount on each resistor. I think…

- soldering is an art

Lab 1: Electronics

Assignment:

Minimum parts needed:

Prototyping board (breadboard)
Power supply connector
5-15VDC power supply
Assorted wires
5V regulator
LED’s
Switch
Variable resistor
220 ohm resistors

Step 1:
Make a light that you control with a switch. Wire an LED in series with a switch, a resistor, and a 5V DC power supply, and make the switch turn on the LED.

step11.jpg

Step 2:
Wire several LED’s in series with a 5V DC power supply. Notice the effect on all of them as you add each new one.

step21.jpg

Step 3:
Wire an LED in series with a variable resistor and a fixed resistor and a 5V DC power supply. Notice the effect on the LED as you change the resistance of the pot.

step31.jpg

Step 4:
Experiment with different combination of switches and pots in parallel and series with LED’s. Come up with an interesting application of electronic pieces: a combination lock, a puzzle, a trip switch, or something of your own devising. Try making your own switch as well, using two conductors as the contacts.

step41.jpg

Notes:

- the power switch has a little symbol on it that shows which of the two connections is ground and which is power

- it is very important to check the labels of the resistors according to which color they are (eg. I was using a 110 ohm resistance, which I thought was good for the two bulbs, 1.7 LED voltage/ 20 LED current/ 5 total voltage, that should have only needed 82 ohms resistance. Little did I know that the resistor I had picked up was K ohms! I figured the extra ohms of resistance were the reason the LED did not light up. I checked the colors and found the correct amount.)

- the amount of resistance can be read according to the colors, each color being a different amount or resistance. The numbers are then added up to determine the total amount on each resistor. I think…

- soldering is an art