Evil Mad Scientist Laboratories Evil Mad Scientist Laboratories

Making the World a Better Place, One Evil Mad Scientist at a Time

 
About EvilMadScientist  :  Buy Stuff  :  Contact  :  Forums  :  Links  :  Articles  :  Search  

Tiny portable AVR projects: Business card breakout boards

XX8_complete

For all of our different AVR microcontroller based projects, we seem to find ourselves continually wiring up minimalist target boards; little circuit boards that fit both the AVR and a 6-pin header for connecting to your in-system programmer. And, when you find yourself hand-wiring the same circuit over and over again on a protoboard, that's really just life's way of telling you "just lay out a damn printed circuit board already."

Coincidentally, we needed a new business card.



That's a bit of an exaggeration; we didn't need a new card so much as we were enamored with the idea of having a card that did something interesting. We certainly aren't the first to have that itch-- people are already making interesting electronic or circuit business cards, and there was even a contest at Hack a Day to design circuits that would run on their business cards.

(Digression complete.)


Project goals
We've been designing a lot of things based on the ATmega168, and we didn't want to wire up any more by hand. (The ATmega168 is a popular AVR microcontroller; it's the one found in the Arduino.)

Our design goals for this project were (1) to make a printed circuit board version of the minimalist target board for the ATmega168, encompassing a place for the chip and a connection to the 6-pin ISP header, (2) to make a minimal and inexpensive circuit board platform that you could use to deploy a single AVR somewhere with without much fuss, (3) to encompass the capacity of a breakout board, giving extra holes to tap into each pin of the AVR and provide labels for every pin, (4) to fit in some small amount of flexible prototyping space, (5) to make it all fit into a neat business-card form factor, and (6) to release it as an open-source project.


The Design
Here is what we ended up with:
XX8_BottomFlat

XX8_top_2

The circuit board is 2" x 3.5" (Standard business card size of course). It is designed so that all of the copper traces are on the bottom side, meaning that it can be built single-sided, either to keep the cost down, or to make it an easy design to fabricate yourself if you like to etch your own boards.

On the top side of the board, dominating the playing field, is the place for the microcontroller, which can sit in a standard DIP socket. While we mainly discuss the ATmega168, it actually works equally well for the ATmega48, ATmega88, and the ATmega328P (if you can find a ATmega328P!), hence the designation ATmegaXX8 Target Board. The board is also compatible with the older ATmega8, although the feature set is slightly different from those in the 48/88/168 genus.

All 28 pins of the microcontroller are labeled with their main functions. Besides the pins that actually connect to the ATmega168, there are three-count-em-three extra access holes connected to every pin of the microcontroller. In the upper left, there are input connections for power (typically 3-5 V) and ground, which are routed to a couple of other locations on the board. In the upper right is a place for the 6-pin ISP header with pin 1 marked. In the lower right is a place to add an optional crystal oscillator with its two capacitors, or a 3-pin ceramic resonator.

On the left and right sides of the chip location are two breadboard-style prototyping areas, each with enough room for a DIP-8 package or the equivalent.

(Not that we could begin to scratch the surface of what cool things can fit in that space, but we might point out common op-amps or optoisolators for input or output signal conditioning, or even a pair of half-bridge drivers for controlling a motor. Or a hexadecimal rotary dip switch. Or, from the obtuse-rather-than-useful department, use the space to add two more tiny AVR chips!)

This board does not have hardwired connections between the power and ground sections and the analog power section (AGND, VREF, AVCC pins), which allows you to substitute in other (or better) references to the analog section if you need them. If you're happy with the standard analog-to-digital converter performance, or if you don't use it at all, it's recommended to jumper the pin AGND to ground and VREF and AVCC to the positive power supply, which are conveniently located nearby, near the upper middle of the chip. (See photo at the top of the page for an example with the jumpers in place.)

Finally, mounting holes are provided in each corner for 6-32 size screws, located with centers 1/8" x 1/8" from each corner.


Using the board
hairy
Since this is effectively an implementation of the minimalist target board, you don't need much to run one of these. Ideally, the board, plus a chip, plus the 6-pin ISP header and a programming interface (at least once). To run on its own it will need and external power source as well, and AVRs like this can run (depending on load) from a 3V lithium coin cell or from a more powerful source. We usually run ours on external battery boxes with switches, either with two or three AA cells.


Under the hood
Again, this board is designed for easy single-sided fabrication; the copper layer, which goes on the bottom side of the board, looks like this: ATmegaXX8 Breakout Board: top silkscreen and bottom copper

To get started working with this design on your own, we have a single ZIP file, available for download here, (584 kB .ZIP file) which contains the full schematic diagram (PDF format), a PDF of the PCB layout showing the individual circuit board layers broken out individually with crop marks-- making this layout a cinch even for home-etched circuit boards, and the original PCB layout file. (The circuit board was designed in gEDA PCB-- free, open-source printed circuit board software.) We are releasing the design for this board under open source licenses and under a creative commons license as well.

Or, take the easy way out and get a kit here. :)

Want to talk about it? That's what the forums are for.

Got projects based on this board to show off? We'd love to see your pictures in the Evil Mad Science Auxiliary.




MetaBlog links for this story: [ del.icio.us | technorati ]

Technorati tags: , , , , , , , , ,

Trackback

Trackback URL for this entry: http://www.evilmadscientist.com/trackback.php/card

Here's what others have to say about 'Tiny portable AVR projects: Business card breakout boards':
Tiny portable AVR projects: Business card breakout boards
Tracked on Wednesday, March 05 2008 @ 11:58 AM PDT
Jeff Barr’s Blog >> Links for Wednesday, March 5, 2008
Tracked on Wednesday, March 05 2008 @ 04:38 PM PDT
Printed Circuit Board Business Cards Look Fan-Friggin-Tastic! >> The UberReview
Tracked on Thursday, March 06 2008 @ 12:14 AM PDT
Integrated-Circuit Business Cards : HyperGadget
Tracked on Thursday, March 06 2008 @ 06:52 AM PDT
Marshall Wilson’s Blog >> Blog Archive >> Evil’s phone #
Tracked on Friday, March 07 2008 @ 10:13 AM PDT
http://www.friday.com/bbum/2008/03/09/avr-microcontroller-prototype-board/
Tracked on Monday, March 10 2008 @ 12:45 AM PDT
http://www.friday.com/bbum/2008/03/15/avr-programming-the-emsl-target-board-from-mac-os-x/
Tracked on Saturday, March 15 2008 @ 03:37 AM PDT
http://www.friday.com/bbum/2008/03/15/subversion-repository-for-atmegaxx8-target-board-hacks/
Tracked on Saturday, March 15 2008 @ 03:19 PM PDT
Business card breakout boards from Gadget Freak
Looking for a new way to make your business card stand out from the pack? Imagine the expression on a potential contact’s face when you hand them this. From the extremely well-titled Evil Mad Scientist site, comes a unique –... [read more]
Tracked on Thursday, March 20 2008 @ 10:58 AM PDT
jclark.org - Parallax Boe-Bot
Tracked on Sunday, April 20 2008 @ 01:47 PM PDT
Tiny portable AVR projects: Business card breakout boards | 11 comments | Create New Account
The following comments are owned by whomever posted them. This site is not responsible for what they say.
Tiny portable AVR projects: Business card breakout boards
From: Anonymous on Wednesday, March 05 2008 @ 10:31 AM PDT
That is just so cool. I wish I was you :(
Tiny portable AVR projects: Business card breakout boards
From: Anonymous on Wednesday, March 05 2008 @ 12:53 PM PDT
To quote the folks at Guinness, "Brilliant!"
Tiny portable AVR projects: Business card breakout boards
From: Anonymous on Wednesday, March 05 2008 @ 03:39 PM PDT
What about adding two more holes very close to the MCU Vcc and GND pins, nicely spaced (300 mil) so one can add a 100nF decoupling capacitor?

With the current layout you can add a capacitor, but the then the capacitor is not neatly oriented in parallel with the MCU :-) I mean, this is a business card, and you don't want to have any wrinkles in your card, do you? :-)

Similar for the reset pin. Some holes and traces to allow mounting a pullup resistor (if desired), a capacitor (questionable), a protection diode (seldomly done), and a reset switch would be nice.

And if you want to drive it over the edge, some holes and traces to mount a LM2940 voltage regulator, and two caps for power supply.
Tiny portable AVR projects: Business card breakout boards
From: Anonymous on Saturday, March 08 2008 @ 02:23 AM PDT
So you expect people to pay 20 dollars to advertise for you...
  • Uh oh... - From: bjh on Saturday, March 08 2008 @ 08:07 PM PDT
Tiny portable AVR projects: Business card breakout boards
From: Anonymous on Sunday, May 11 2008 @ 09:13 AM PDT
Have you ever heard about Arduino? http://en.wikipedia.org/wiki/Arduino