Difference between revisions of "4520 Board intro"

From Mech
Jump to navigationJump to search
 
(5 intermediate revisions by the same user not shown)
Line 9: Line 9:
<b>Circuit diagram of the 4520 prototyping board</b>
<b>Circuit diagram of the 4520 prototyping board</b>


The circuitry on the board includes an optional voltage regulator, a reset button, a programming port, and power indicator light.
The circuitry on the board includes an optional voltage regulator, a reset button, a programming port, and power indicator light. And the PIC microcontroller of course.
Also built in are the current limiting resistors for up to 32 LEDs, and places to put LED indicators on as many of those lines as you wish. These are intended to be used as diagnostics. The current limiting resistors are compactly packaged in a 9-pin SIP, containing 8 resistors and a common ("bussed") pin, which we ground.
Also built in are the current limiting resistors for up to 32 LEDs, and places to put LED indicators on as many of those lines as you wish. These are intended to be used as diagnostics. The current limiting resistors are compactly packaged in a 9-pin SIP, containing 8 resistors and a common ("bussed") pin, which we ground.
Line 37: Line 37:
, also showing the prototyping area.
, also showing the prototyping area.


The board is intended to be cut in half, providing one part for insertion into a solderless breadboard, and another half for more reliable solderboard construction
The board is intended to be cut in half, providing one part for insertion into a solderless breadboard, and another part for more reliable solderboard construction.


The next step better still is to to make a printed circuit board with your circuit on it as well as the PIC. If starting with the protoboard's layout is useful to you, you can find it here: 4520 board in traxmaker format
The next step better yet is to to make a printed circuit board with your circuit on it as well as the PIC. If starting with the protoboard's layout is useful to you, you can find it here:


4520 board in traxmaker format.




<b>Using solderless breadboard with the 4520 board</b>
[[Image:4520_assembly_sml.jpg|right]]


Shove it in there. Hard. The 36 pins from the 4520 board contact 36 five-point rows of the breadboard. See photo below. You can get it back out again if you need to, but it's not easy


You can run wires from the +5 and ground connections on 4520 board to the red and blue rails on the solderless breadboard.
<b>Assembling the 4520 board</b>


<b>Note</b> - two errors to avoid -- if you plug the 36 pins into a red or blue rail, they'll all be shorted to each other -- and remember that >1/4 of the breadboard is now dedicated to the PIC. Don't put a chip across the gutter there.
[http://spreadsheets.google.com/pub?key=pa_bNAhFF-Otz-QHa4qOcCA Parts list for 4520 board]


[[Image:4520-solderlessbb.jpg]]
Shown is the smaller version of the 4520 PCB, with most of the parts laid out in proper orientation for assembly.
[http://129.105.69.13/pic/pcb/4520_assembly_big.jpg Larger image of the smaller board]

The larger board is the same, but with a "solderboard" area attached as well.

Note:

*The regulator chip can be replaced by a jumper (red wire) if you are using a 5V regulated power supply

*The anode (positive) side of an LED is usually the longer lead. + and - are marked on the PCB

* A vertical-insertion 6-6 modular jack can also be used; just cut off the plastic tabs.

* A 20MHz oscillator is soldered directly to the board, bu the PIC18F4520 chip is socketed.

* The marked pin (dot) on the 9-pin SIPs is the common bus for all eight 1K resistors inside. The proper insertion for the SIP is indicated by a dot on the PCB. The SIPs go in with altenating orientation (two each way).

* Ceramic capacitors are non-polarized and can be insterted either way.

* The resistor near the reset switch is 4.7K (or whatever) and the resistor near the LED is 1K (or whatever).

* The 36-pin SIP header is intended to insert into a solderless breadboard. It's under the PCB, with the longer gold-plated pins downward.


[[Image:barrel.jpg|right]]


<b>Barrel plug conventions</b>

As noted above you can use a regulator or not, depending if you are planning to use a >5V power supply which needs reglauting down to 5V, or if you are planning to use an already-well-regulated 5V supply.

We are trying to stick to a convention of using a 5.5mm/2.5mm barrel plug & jack for 5V, and a 5.5/2.1mm barrel plug & jack for >5V.

It's very hard to distinguish these visually, but you'll find that the 2.1 plug won't fit into the 2.5 jack, thus preventing the more unfortunate error.

You can distinguish the jacks by looking straight inside. In the photo, the 2.5 is on the left, and the 2.1 on the right.

Latest revision as of 16:21, 28 December 2007

4520-01.jpg


The 4520 board was developed at NU as a versatile prototyping platform for incorporating PICs. It offers a bare minimum environment for getting a PIC running, plus space for your circuits. In a few minutes you can assemble a 4520 board, and be ready to start programming it. Shown here is the version that plugs into a solderless breadboard, for prototyping.

4520board pic.gif


Circuit diagram of the 4520 prototyping board

The circuitry on the board includes an optional voltage regulator, a reset button, a programming port, and power indicator light. And the PIC microcontroller of course.

Also built in are the current limiting resistors for up to 32 LEDs, and places to put LED indicators on as many of those lines as you wish. These are intended to be used as diagnostics. The current limiting resistors are compactly packaged in a 9-pin SIP, containing 8 resistors and a common ("bussed") pin, which we ground.

When a line is used as a digital input or output you probably want to insert an LED to show its state. When a line is used as an analog input you probably do not want to load it down with an unnecessary LED.

4520board pwr.gif


Regulator or no regulator?

If you are going to use a regulated +5V supply, you don't need the regulator chip: just jumper pin 1 to pin 3 instead of inserting the regulator. If you use a supply not much greater than +5V you will choose the LP7954it regulator, which needs only a small voltage headroom (excess of input voltage over desired output voltage) but handles only a maximum of 0.25A. The 7805 series regulators require ~2 volts of headroom but can handle up to 1.5A. In either case you may find that a heatsink is needed.

4520board pcb.gif


Layout of the 4520 PCB

Most of the 40 pins of the PIC are brought out to labeled connection points.

The corresponding pin number of the PIC is shown (01-40) and also the name of the pin (e.g. RA1). Most pins have many uses and thus many names, but only one name is shown.

You can solder to these connection points, or insert a dual-row connector for a ribbon cable header, or a single-row connector to insert the board into a solderless breadboard, or you can solder terminal strips onto the board.


Here is a full size gif of the board , also showing the prototyping area.

The board is intended to be cut in half, providing one part for insertion into a solderless breadboard, and another part for more reliable solderboard construction.

The next step better yet is to to make a printed circuit board with your circuit on it as well as the PIC. If starting with the protoboard's layout is useful to you, you can find it here:

4520 board in traxmaker format.


Using solderless breadboard with the 4520 board

Shove it in there. Hard. The 36 pins from the 4520 board contact 36 five-point rows of the breadboard. See photo below. You can get it back out again if you need to, but it's not easy

You can run wires from the +5 and ground connections on 4520 board to the red and blue rails on the solderless breadboard.

Note - two errors to avoid -- if you plug the 36 pins into a red or blue rail, they'll all be shorted to each other -- and remember that >1/4 of the breadboard is now dedicated to the PIC. Don't put a chip across the gutter there.

4520-solderlessbb.jpg