
Mysterium pcb
coseyfannitutti/mysterium
TKL keyboard that can be entirely assembled using only through hole components, including usb type-c

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.
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.
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.
| Requirement | Evidence / Location | Status |
|---|---|---|
| System block diagram | documentation/block_diagram.png | Complete |
| ATmega32 pin mapping table | documentation/pin_mapping_table.md | Complete |
| Firmware flowchart | documentation/flowchart.png | Complete |
| KiCad schematic | kicad/schematic/kicad_schematic.png, .pdf, and kicad/ATmega32_External_Interrupt_Event_System.kicad_sch | Complete |
| KiCad PCB layout | kicad/pcb/kicad_pcb.png and kicad/ATmega32_External_Interrupt_Event_System.kicad_pcb | Complete |
| KiCad PCB 3D view | kicad/pcb/kicad_pcb_3D.png, kicad/pcb/kicad_pcb_3D_2.png | Complete |
| DRC result | kicad/pcb/drc_zero_errors.png | Complete - 0 violations / 0 unconnected items |
| Gerber and drill files | kicad/gerber/ | Complete |
| Firmware source code | firmware/src/main.c | Complete |
| Compiled HEX file | firmware/hex/emergency_event_counter.hex | Complete |
| SimulIDE circuit | simulide/circuit/emergency_event_counter.sim1 | Complete |
| SimulIDE screenshots | simulide/screenshots/ | Complete - 7 tests captured |
| Test results table | documentation/test_results.md | Complete |
| Final report DOCX | documentation/final_report/CT_321_PBL_07_Group07_Final_Report.docx | Complete |
| Final report PDF | documentation/final_report/CT_321_PBL_07_Group07_Final_Report.pdf | Complete |
| PowerPoint presentation | documentation/CT_321_PBL_07_Group07_Presentation.pptx | Complete |
| Demonstration video | media/demo_video.mp4 | Complete |




| Action | Expected Result |
|---|---|
| System powered ON | Green LED ON, red LED OFF, buzzer OFF, serial count = 0 |
| Event pulse on INT1 | Event count increases only in normal mode |
| Emergency stop on INT0 | Red LED and buzzer ON, green LED OFF, counting stops |
| Event during emergency | Count does not increase |
| Recovery on INT2 during emergency | System returns to normal mode and keeps the current count |
| Recovery/reset on INT2 during normal mode | Event count resets to zero |
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 runningATmega32_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/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.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 4 | 10k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R1, R5, R6, R7 |
| 2 | 100nF | Capacitor_THT:C_Disc_D5.0mm_W2.5mm_P5.00mm | C1, C2 |
| 2 | 22pF | Capacitor_THT:C_Disc_D5.0mm_W2.5mm_P5.00mm | C3, C4 |
| 2 | 330Ω | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R2, R3 |
| 2 | LED | LED_THT:LED_D5.0mm | GREEN, RED1 |
| 1 | 1k | Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_Horizontal | R4 |
| 1 | ATmega32A-P | Package_DIP:DIP-40_W15.24mm | U1 |
| 1 | Buzzer | Buzzer_Beeper:Buzzer_12x9.5RM7.6 | BZ1 |
| 1 | Conn_01x03 | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | J1 |
| 1 | Crystal | Crystal:Crystal_HC49-4H_Vertical | Y1 |
| 1 | Emergency Stop | Button_Switch_THT:SW_PUSH_6mm | SW1 |
| 1 | Event Pulse | Button_Switch_THT:SW_PUSH_6mm | EventPulse1 |
| 1 | MCU Reset | Button_Switch_THT:SW_PUSH_6mm | MCU-Reset1 |
| 1 | Q_NPN_BCE | Package_TO_SOT_THT:TO-92_Inline | Q1 |
| 1 | Recovery / Reset | Button_Switch_THT:SW_PUSH_6mm | SW3 |

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




null-ll/basketweave
Through-hole Alice-style keyboard with arrow keys and a rotary encoder


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

dsanchezseco/punk75
Ortholinear keyboard with 75 keys and all components through hole
It measures 77 × 86.5 mm and has 2 copper layers, 1.6 mm thick.
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.
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.
Its repository states no licence, so its author keeps all rights: ask ezekiellemana before reusing the design.