Activity
Single-Sided Microcontroller PCB Design (KiCad)
ATtiny45 LED Control with Push Button & ISP Programming
Objective
Students will design a single-sided PCB using KiCad that:
- Uses an ATtiny45 microcontroller
- Controls an LED using a push button
- Can be programmed via a 6-pin ISP header
- Is suitable for PCB milling and hand soldering
Circuit to Design
๐ ATtiny45 Button-Controlled LED Board
Functional Description
- ATtiny45 runs at 5V
- LED turns ON when the button is pressed
- Program uploaded via ISP programmer
- Board powered through an external connector
- This is a real microcontroller system, not just a demo circuit.
Block Diagram (Conceptual)
Power โโ> ATtiny45 โโ> LED + Resistor
โ
โโโ Push Button (Input)
โ
โโโ ISP Header (Programming)
List of Components (Required)
| Component |
Value / Type |
Notes |
| Microcontroller |
ATtiny45 (DIP-8 or SOIC-8) |
Beginner-friendly |
| LED |
5mm THT LED |
Status indicator |
| Resistor |
220ฮฉ |
LED current limiting |
| Push Button |
Tactile switch (THT) |
User input |
| Power Connector |
2-pin header or terminal |
5V input |
| ISP Header |
2ร3 pin (6-pin) |
Programming interface |
| Decoupling Capacitor |
0.1 ยตF |
Power stability (important) |
Pin Usage (Beginner-Friendly Assignment)
| ATtiny45 Pin |
Function |
| VCC |
Power (5V) |
| GND |
Ground |
| PB0 |
LED output |
| PB2 |
Button input |
| PB5 |
RESET (ISP) |
| PB3 |
MOSI (ISP) |
| PB4 |
MISO (ISP) |
| PB1 |
SCK (ISP) |
Important: PB0โPB5 are reused for both I/O and programming.
KiCad โ What Students Must Do
Step 1 โ Create the Schematic
Students must:
- Place ATtiny45 symbol
- Add:
- LED + resistor
- Push button (with pull-down or pull-up)
- Power connector
- 6-pin ISP header
- 0.1 ยตF capacitor between VCC & GND
- Label all nets clearly
Rule: Every pin must have a purpose.
Step 2 โ Assign Footprints
Through-hole recommended for beginners:
- ATtiny45: DIP-8 footprint
- LED: 5mm THT
- Resistor: Axial THT
- Button: THT tactile
- ISP: PinHeader_2x3
- Power: PinHeader_1x02
Step 3 โ Single-Sided PCB Layout
Students must:
- Define board outline (~60 ร 40 mm)
- Place components logically:
- ISP near ATtiny45
- LED visible on board edge
- Route only one copper layer
- No vias allowed
- Use jumpers only if necessary
Recommended milling rules:
- Trace width: 0.5โ0.6 mm
- Clearance: 0.5 mm
Step 4 โ Design Rule Check (DFM)
Students must:
- Run DRC
- Fix all errors
- Verify:
- No unconnected nets
- No trace overlap
- Correct clearance for milling
Step 5 โ Prepare for Fabrication
- Add text:
- Board name
- Student initials
- Export:
- Inspect Gerbers before milling
Deliverables
Students submit:
- KiCad project folder
- Schematic screenshot
- PCB layout screenshot
- Gerber files
- Short reflection:
- Biggest routing challenge
- One improvement for next version
Learning Outcomes
Students will learn:
- Microcontroller-based PCB design
- ISP programming concepts
- Single-sided routing strategies
- DFM for PCB milling
- How design decisions affect fabrication