Skip to the content
2 layers77 × 86.5 mmATmega32 External Interrupt Event System, the printed circuit board in 3D

ATmega32 External Interrupt Event System

ezekiellemana/ATmega32_External_Interrupt_Event_System1

This repository contains the completed ATmega32 external interrupt emergency stop and event counter system. The project demonstrates event-driven embedded-system control using INT0, INT1, and INT2.

Size
77 × 86.5 mm
Copper layers
2
Thickness
1.6 mm
Parts
22
Nets
42
Pads
92
Tracks, vias
151, 1
Pours
1
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
14 Jun 2026
Updated
18 Jul 2026

Overview

ATmega32 External Interrupt Event System is an open-source printed circuit board by ezekiellemana, from the ezekiellemana/ATmega32_External_Interrupt_Event_System repository on GitHub. It is a 2-layer board of 77 × 86.5 mm with 22 parts on 42 nets, routed with 151 tracks and 1 via.

It is built around the ATMEGA32A-PU. Its parts include 7 resistors, 4 capacitors, 2 switches, 1 IC and 1 transistor. It belongs with the AVR (ATmega, ATtiny) boards of this library.

Main components

1

README

README.md

ATmega32 External Interrupt Event Counter System

CT 321 PBL 07 - External Interrupt-Based Emergency Stop and Event Counter System

This repository contains the completed ATmega32 external interrupt emergency stop and event counter system. The project demonstrates event-driven embedded-system control using INT0, INT1, and INT2. The design was verified using SimulIDE, KiCad, MPLAB for VS Code / AVR-GCC compatible firmware, Gerber export, and a recorded demonstration video.


Final Submission Status

RequirementEvidence / LocationStatus
System block diagramdocumentation/block_diagram.pngComplete
ATmega32 pin mapping tabledocumentation/pin_mapping_table.mdComplete
Firmware flowchartdocumentation/flowchart.pngComplete
KiCad schematickicad/schematic/kicad_schematic.png, .pdf, and kicad/ATmega32_External_Interrupt_Event_System.kicad_schComplete
KiCad PCB layoutkicad/pcb/kicad_pcb.png and kicad/ATmega32_External_Interrupt_Event_System.kicad_pcbComplete
KiCad PCB 3D viewkicad/pcb/kicad_pcb_3D.png, kicad/pcb/kicad_pcb_3D_2.pngComplete
DRC resultkicad/pcb/drc_zero_errors.pngComplete - 0 violations / 0 unconnected items
Gerber and drill fileskicad/gerber/Complete
Firmware source codefirmware/src/main.cComplete
Compiled HEX filefirmware/hex/emergency_event_counter.hexComplete
SimulIDE circuitsimulide/circuit/emergency_event_counter.sim1Complete
SimulIDE screenshotssimulide/screenshots/Complete - 7 tests captured
Test results tabledocumentation/test_results.mdComplete
Final report DOCXdocumentation/final_report/CT_321_PBL_07_Group07_Final_Report.docxComplete
Final report PDFdocumentation/final_report/CT_321_PBL_07_Group07_Final_Report.pdfComplete
PowerPoint presentationdocumentation/CT_321_PBL_07_Group07_Presentation.pptxComplete
Demonstration videomedia/demo_video.mp4Complete

Circuit and PCB Images

Schematic

KiCad schematic

PCB Layout (2D)

KiCad PCB layout

PCB 3D View

KiCad PCB 3D view

KiCad PCB 3D view - alternate angle


System Behaviour

ActionExpected Result
System powered ONGreen LED ON, red LED OFF, buzzer OFF, serial count = 0
Event pulse on INT1Event count increases only in normal mode
Emergency stop on INT0Red LED and buzzer ON, green LED OFF, counting stops
Event during emergencyCount does not increase
Recovery on INT2 during emergencySystem returns to normal mode and keeps the current count
Recovery/reset on INT2 during normal modeEvent count resets to zero

Important Simulation Settings

text
MCU: ATmega32 / ATmega32A
Clock: 8 MHz
HEX file: firmware/hex/emergency_event_counter.hex
UART: 9600 baud, 8 data bits, 1 stop bit
Inputs: active LOW buttons with pull-ups
RESET: held HIGH during normal running

Folder Structure

text
ATmega32_External_Interrupt_Event_System/
|-- README.md
|-- firmware/
|   |-- src/main.c
|   |-- include/
|   `-- hex/emergency_event_counter.hex
|-- kicad/
|   |-- ATmega32_External_Interrupt_Event_System.kicad_pro
|   |-- ATmega32_External_Interrupt_Event_System.kicad_sch
|   |-- ATmega32_External_Interrupt_Event_System.kicad_pcb
|   |-- schematic/
|   |-- pcb/
|   `-- gerber/
|-- simulide/
|   |-- circuit/emergency_event_counter.sim1
|   `-- screenshots/
|-- documentation/
|   |-- CT_321_PBL_07_Group07_Presentation.pptx
|   |-- block_diagram.png
|   |-- flowchart.png
|   |-- interrupt_configuration.md
|   |-- pin_mapping_table.md
|   |-- test_results.md
|   `-- final_report/

Demonstration Summary

The final simulation and video demonstrate normal startup, single event counting, multiple event counting, emergency stop, lockout of event counting during emergency mode, recovery back to normal mode, and reset of the count in normal mode.

Parts

22
QtyValueFootprintReferences
410kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR1, R5, R6, R7
2100nFCapacitor_THT:C_Disc_D5.0mm_W2.5mm_P5.00mmC1, C2
222pFCapacitor_THT:C_Disc_D5.0mm_W2.5mm_P5.00mmC3, C4
2330ΩResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR2, R3
2LEDLED_THT:LED_D5.0mmGREEN, RED1
11kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR4
1ATmega32A-PPackage_DIP:DIP-40_W15.24mmU1
1BuzzerBuzzer_Beeper:Buzzer_12x9.5RM7.6BZ1
1Conn_01x03Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalJ1
1CrystalCrystal:Crystal_HC49-4H_VerticalY1
1Emergency StopButton_Switch_THT:SW_PUSH_6mmSW1
1Event PulseButton_Switch_THT:SW_PUSH_6mmEventPulse1
1MCU ResetButton_Switch_THT:SW_PUSH_6mmMCU-Reset1
1Q_NPN_BCEPackage_TO_SOT_THT:TO-92_InlineQ1
1Recovery / ResetButton_Switch_THT:SW_PUSH_6mmSW3

Similar boards

  • 2 layers347.7 × 146.6 mmMysterium pcb, the printed circuit board in 3D

    Mysterium pcb

    coseyfannitutti/mysterium

    TKL keyboard that can be entirely assembled using only through hole components, including usb type-c

    227 parts541GPL-3.0
  • 2 layers344.4 × 130.8 mmSesame, the printed circuit board in 3D

    Sesame

    str-dst/sesame

    Alice type ergo keyboard using only THT parts

    168 parts331
  • 2 layers364.4 × 167.3 mmRedherring, the printed circuit board in 3D

    Redherring

    dcpedit/redherring

    Red Herring Keyboard PCB and case files

    226 parts253CC-BY-4.0
  • 2 layers228 × 114 mmPlanck thk, the printed circuit board in 3D

    Planck thk

    olkb/planck_thk

    Planck Through Hole Kit

    134 parts169GPL-3.0
  • 2 layers371.5 × 145.3 mmBasketweave, the printed circuit board in 3D

    Basketweave

    null-ll/basketweave

    Through-hole Alice-style keyboard with arrow keys and a rotary encoder

    177 parts129GPL-2.0
  • 2 layers439 × 141.6 mmAek2 usb, the printed circuit board in 3D

    Aek2 usb

    str-dst/aek2_usb

    drop-in replacement pcb for the AEK II

    241 parts55
  • 2 layers317.3 × 154.8 mmLCK75, the printed circuit board in 3D

    LCK75

    lyso1/LCK75

    a 75% through-hole keyboard designed by myself with inspiration from the CFTKB Discipline and Yiancar Gingham

    207 parts45
  • 2 layers285.8 × 124.6 mmPunk75, the printed circuit board in 3D

    Punk75

    dsanchezseco/punk75

    Ortholinear keyboard with 75 keys and all components through hole

    194 parts44GPL-3.0

Questions

How big is the ATmega32 External Interrupt Event System PCB?

It measures 77 × 86.5 mm and has 2 copper layers, 1.6 mm thick.

What parts does the ATmega32 External Interrupt Event System use?

22 parts, built around the ATMEGA32A-PU. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the ATmega32 External Interrupt Event System KiCad files?

From the ezekiellemana/ATmega32_External_Interrupt_Event_System repository on GitHub, at the commit this page was made from: the board is kicad/ATmega32_External_Interrupt_Event_System.kicad_pcb and its schematic kicad/ATmega32_External_Interrupt_Event_System.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the ATmega32 External Interrupt Event System design in my own project?

Its repository states no licence, so its author keeps all rights: ask ezekiellemana before reusing the design.