Actions

Avr2011 kit: Difference between revisions

From HacDC Wiki

Line 40: Line 40:
2) Now install the two pushbuttons.  They're oblong, but there's no top or bottom.
2) Now install the two pushbuttons.  They're oblong, but there's no top or bottom.


3) Now start on the LEDs.  They _are_ polarized, and you'll notice that one lead is longer than the other.  The short lead gets connected to ground, while the long lead connects through a resistor to the AVR output pins.  Place so that their short pins are in the ground strip (labelled GND).
3) Now start on the LEDs.  They _are_ polarized, and you'll notice that one lead is longer than the other.  The short lead gets connected to ground, while the long lead connects through a resistor to the AVR output pins.  Place so that their short pins are in the ground strip (labelled GND). Orientation matters here.  Double-check it before soldering?
 
 
 
 


4) Once you've done the LEDs, you can solder in their resistors.  These fit most easily and cleanly on the underside of the board, so you'll want to trim off the extra leads from the LEDs before installing.  You want to solder each resistor to the outside strip of holes that connected to the positive (long) pin of the LEDs, and the other end of the resistor to the output pins of the AVR.  Notice that you're working on the back-side of the board!  Double-check that you're not connecting the resistor to the VCC line that is closest to the LED.


5)


=== Using the Kit ===
=== Using the Kit ===

Revision as of 14:54, 1 March 2011

Hi all. There will be much more detail here later tonight (Mar 1) when I can upload images...

Kit Contents

You will need:

1) AVR ATMega88, pre-programmed with a bootloader 2) AVR Classboard printed-circuit-board 3) Eight resistors (~120 ohm) 4) Eight LEDs (I like the small square ones) 5) 1 uF capacitor 6) 0.1 uF capacitor 7) Two push buttons 8) 6-pin header to connect the FTDI serial cable 9) A small-signal diode for backward-power protection (optional, but certainly won't hurt)


A Brief Tour of the Board

Before you start assembling anything, have a look at the printed circuit board.

Big and bold in the center is the location for the AVR chip. Notice the notch in the silkscreen at one end? That corresponds to a notch on the top of the AVR chip, and helps you get it in the right orientation when the time comes.

Just to the outside of the AVR chip itself, you'll see two rows of holes labelled for the port/pin combinations that appear in the datasheet. For instance, PB0 -- PB7. See how there are tiny white lines connecting the two rows of holes, pairwise? Those indicate that the two holes are electrically connected to each other. This was a convenience -- you can solder two things easily to each AVR pin. One side of the chip has PD0-PD7, the other has PB0-PB7 and PC0-PC6.

Just outside of the AVR connection points, you'll see two more rows of holes, labelled VCC and GND respectively. GND is connected to the board's ground plane, and so is at 0V. VCC is connected to the board's power supply and is whatever voltage you're using to drive the whole mess -- In class, I'll refer to this as VCC or I usually just call this 5V.

And finally, at the edge of the board is another pair of rows of holes. These are electrically connected in pairs, and are just there to allow you to connect things together easily. For the LED array, we'll use these paired holes to connect the resistor to the positive end of the LED.

Other stuff:

To the top-left of the AVR, there are holes for two buttons, a protection diode, power-supply buffering capacitors, an optional power LED and its resistor, a 3x2 SPI programming header, and the 6-pin inline FTDI cable.

Below the AVR chip area, there's more prototyping space -- just sets of holes electrically connected to each other in ways to facilitate soldering stuff up.

Assembling the Kit

1) To get your feet wet soldering, install the two capacitors. They can go in either capacitor position, and are non-polarized (can go in either way).

2) Now install the two pushbuttons. They're oblong, but there's no top or bottom.

3) Now start on the LEDs. They _are_ polarized, and you'll notice that one lead is longer than the other. The short lead gets connected to ground, while the long lead connects through a resistor to the AVR output pins. Place so that their short pins are in the ground strip (labelled GND). Orientation matters here. Double-check it before soldering?

4) Once you've done the LEDs, you can solder in their resistors. These fit most easily and cleanly on the underside of the board, so you'll want to trim off the extra leads from the LEDs before installing. You want to solder each resistor to the outside strip of holes that connected to the positive (long) pin of the LEDs, and the other end of the resistor to the output pins of the AVR. Notice that you're working on the back-side of the board! Double-check that you're not connecting the resistor to the VCC line that is closest to the LED.

5)

Using the Kit

Schematics, etc