Small Footprint ATMega328P Board

Summary of Small Footprint ATMega328P Board


The article details the design of a compact, custom ATMega328P board for a Word Clock project. The author reduced the footprint by removing I2C functionality and adding a removable ICSP sub-board for programming, avoiding the need for an FTDI chip or USB connection on the main unit. The project includes detailed assembly steps, component lists, and troubleshooting regarding a non-functional USB serial adapter which was later found to be faulty hardware rather than a design flaw.

Parts used in the Small Footprint ATMega328P Board:

  • ATMega328P microprocessor
  • 10 uF Electrolytic Capacitors
  • 0.01 uF Ceramic Capacitors
  • LM7805 Voltage Regulator
  • 16 MHz Crystal
  • Tactile Momentary SPST switch
  • 1K ohm resistor
  • 28 pin DIL socket
  • 6 pin female headers
  • 8 pin female headers
  • Single Sided PCB (30 mm x 62 mm)
  • 3 pin male headers
  • 6 pin male headers
  • Single Sided PCB (27 mm x 48 mm) for ICSP Sub-board

For my Word Clock project, for which I built a custom 8 x 8 LED Matrix with controller, I needed a much smaller footprint DIY-Duino (board for an ATMega328P microprocessor), one that would have all of the main functionality of my previous DIY-Duino boards (such as the Arduino Uno I2C Master board). As I’m not going to include I2C in the Word Clock, I can get rid of that without compromising the board and secondly, I can add an ICSP sub-board without it taking up any space in the clock.
So, that’s it, the design brief. A smaller custom Arduino that can be served by an add-on ICSP sub-board to make programming the microprocessor easy.
The parts:
Barebones Arduino
Small Footprint ATMega328P Board
• 1 x ATMega328P
• 2 x 10 uF Electrolytic Capacitors
• 2 x 0.01 uF Ceramic Capacitors
• 1 x LM7805 Voltage Regulator
• 1 x 16 MHz Crystal
• 1 x Tactile Momentary SPST switch
• 1 x 1K ohm resistor
• 1 x 28 pin DIL socket
• 2 x 6 pin female headers
• 2 x 8 pin female headers
• 1 x 30 mm x 62 mm PCB (Single Sided)
ICSP Sub-Board
• 4 x 3 pin male headers
• 1 x 6 pin male headers
• 1 x 27 mm x 48 mm PCB (Single Sided)
I had made the board with connection for my USB Serial Adapter, but that doesn’t seem to work … here are the parts if you are interested.
• 1 x 6 pin male headers
• 1 x 0.01 uF ceramic capacitor
Well, it turns out that the reason that the USB Serial Adapter connection didn’t work is that my Freetronics USB Serial Adapter is fried. So, it wasn’t my ICSP Sub-board that wasn’t working.

Step 1: Barebones Arduino No FTDI

I started with the Barebones Arduino Breadboard – No FTDI that comes with Fritzing and did some tinkering as I noticed that, for one thing, the 10 uF capacitors were around the wrong way. Next, I moved parts around a little and made some changes to the layout and traces.
Normally, I don’t bother with the reset button … I decided to keep the button “in” for this project.
As there is very little space on the board for labels, I made up two small labels in MS-Word for the pins and glued them directly onto the female pin headers.
As usual, solder the lower parts first, resistors, crystal, ceramic capacitors and then the taller parts, electrolytic capacitors, DIL socket, female headers, power socket and then the LM7805.
Small Footprint ATMega328P Board schematic
Once these are in place, the two jumpers are connected between the switch and reset (pin 1) and between pins 8 and 22 (GND).
At this point, you should get out your multimeter and test trace continuity across the board and then, with the power connected (but without the ATMega328P chip installed) test the functionality of the voltage regulator. When you’ve tested the board and it is all OK … put the ATMega328P chip into the socket.

Step 2: ICSP Sub-board

This is a very simple sub-board that is used to upload sketches onto your ATMega328P and is removable so that it doesn’t take up valuable real-estate in your enclosure.
The sub-board simply connects the ICSP pins to the ATMega328P.

Function Pin Pin Function
MISO 18 7 VCC
SCK 19 17 MOSI
RESET 1 8/22 GND

There are a couple of ways to arrange the connections of the ICSP pins to their corresponding Arduino pins, all of them require jumpers for a single sided board. On my design, there are two jumpers, 1 for MISO and one for SCK.
 
For more detail: Small Footprint ATMega328P Board

Quick Solutions to Questions related to Small Footprint ATMega328P Board:

  • Why was the I2C functionality removed from this board?
    I2C was removed because the Word Clock project does not require it, allowing for a smaller footprint without compromising other functionalities.
  • How is the microprocessor programmed if there is no USB connection?
    The microprocessor is programmed using a removable ICSP sub-board that connects specific pins to the ATMega328P.
  • What happened when the USB Serial Adapter connection failed?
    The failure was caused by a fried Freetronics USB Serial Adapter, not a fault in the ICSP sub-board design.
  • Which components should be soldered first during assembly?
    Lower parts such as resistors, the crystal, and ceramic capacitors should be soldered before taller parts like electrolytic capacitors and the voltage regulator.
  • How are the jumpers connected on the Barebones Arduino board?
    One jumper connects between the switch and reset pin 1, while the second connects between pins 8 and 22 for GND.
  • Can the ICSP sub-board remain attached inside the enclosure?
    No, the sub-board is designed to be removable so it does not take up valuable space in the enclosure.
  • What testing steps should be performed before installing the ATMega328P chip?
    You must test trace continuity with a multimeter and verify the voltage regulator functionality with power connected but the chip removed.

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter
Scroll to Top