This page describes a series of cards that I built as experiments or to prototype sections of larger designs. Below are:

Most (all) of these photos are rubbish - I need a new camera!


You should look in the "/Workshop Projects/AVR Experiments" folder.

40 pin AVR general purpose card

This card supports most 40 pin DIL AVRs. It was built specifically for the ATMEGA32 but I have used it with others in the 40 pin packages. The card features are:

page 1 page 2 page 3 page 4

page 5 page 6 page 7 pcb

The port connectors are connected in the following fashion which is consistent across all cards:

  1. PORTx Bit 0
  2. PORTx Bit 1
  3. PORTx Bit 2
  4. PORTx Bit 3
  5. PORTx Bit 4
  6. PORTx Bit 5
  7. PORTx Bit 6
  8. PORTx Bit 7
  9. Ground
  10. +5V

The TWI connector is connected as follows, again consistent across all cards:

  1. Ground
  2. SCL
  3. Ground
  4. SDA
  5. Ground
  6. Interrupt (external 0)
  7. Ground
  8. +5V
  9. Ground
  10. +5V

The card is single sided 100mm x 160mm PCB. The Eagle files are in the download section above.

TC74 TWI temperature sensor

This simple card uses the TWI connector arrangement as the general purpose card and was used to test the software and prove that I knew how to talk to this sensor correctly. Just three components…

I have put this as the second example so you will see how simple some of the cards are.

Three Port IDE card

This card is used to connect a standard IDE drive to an AVR using 3 ports. Using the general purpose card I used ports A, B and C leaving port D with its serial port to communicate to a PC.

This third card again illustrates the simple nature of these experimental cards. This IDE connection enable the development of 3 port driver software which has found use in several larger projects.

TWI IDE card

The disadvantage of the three port IDE card was exactly that - it consumes three ports which on a 40 pin AVR with just four ports is rather "expensive". The idea of this experiment was to use a TWI interface to connect a second AVR with four ports to an IDE drive. But an further advantage was that the low level driver code was held in the second slave AVR which gave some space saving in the master. The project was successful, but of course, the speed was reduced compared with driving an IDE directly from the main AVR.

Here are two flavours - using a mega8535 and a mega32 (preferred):

See the TWI expansion card below which I also used to drive an IDE.

ADC Test

This card was used to provide dummy voltages (0-5V, 0-1023 value) to the AVR ADC inputs. Individual ouputs can be switched allowing the AVR pin to used by some other interface card.

Ok, I'll do a more complex card next.

ENC28J60 Ethernet Interface

This card was built to test software for connecting an AVR to the ethernet. The board has a pair of jumpers to allow for differences in the pins used by different AVRs (e.g. ATMEG32 and ATMEGA128). The card has its own 3.3V regulator using the 5V supply and a few gates to provide voltage conversion between 5V and 3.3V signals.

This interface worked brilliantly and become the ethernet interface used in a nixie clock.

SPI W5100 Ethernet interface

The W5100 chip is a complete TCP/IP, UDP etc ethernet interface. You can buy it fro Wiznet already mounted on a carrier with some surface mount components. It has three interfaces: SPI, 8 bit data port and controls (indirect mode) and 8 bit port and full address bus (direct mode). This card was to enable the w5100 to connect to the SPI port on a mega32 (or similar). The w5100 requires a 3.3V supply so an additional regulator provides this from the 5V supply.

Indirect Port W5100 Ethernet interface

This is a repeat of the previous card except it uses one port for data (8 bits wide) and a second port for a number of control signals.

I have now used the w5100 in a number of projects - the first published on these pages is a simple NTP client.

LCD and Keypad Interface

No AVR experimental kit would be complete without a LCD to drive and a keypad to read…

TWI Experiments

This card carries the following experiments:

SPI & Other Experiments

The card was to carry a number of SPI and other experiments:

Two 8 bit port connectors are provided and wire jumper leads are used to select which experiments are connected to which pins. The card carries a 3.3V regulator and logic to enable multiple SPI devices to be used (i.e. multiple SS signals).

LEDs and Screw Connections

This card was to break a port out onto screw connectors and show the bit status with leds. I built two.

External Memory Test Card

64 kbytes external SRAM - uses three ports:

This memory card is compatible with the external memory requirements of a mega128.