
Z80Atmega128
46nori/Z80Atmega128
Real Z80A system with I/O emulated by AVR(ATmega128)

ATmega128 rotating RGB LED POV display (74HC595, L298N, KiCad PCB)
MPMP is an open-source printed circuit board by qetad13, from the qetad13/atmega128-pov-display repository on GitHub, published under the MIT licence. It is a 2-layer board of 90.3 × 87.2 mm with 95 parts on 131 nets, routed with 1,002 tracks and 41 vias.
It is built around the ATMEGA128-16AU and 74HC595. Its parts include 6 capacitors, 2 connectors, 1 resistor, 1 IC and 1 diode. It belongs with the lEDs and displays boards and the AVR (ATmega, ATtiny) boards of this library.
마이크로프로세서 수업 Term Project · 2025.08 – 2025.11 · 4인 팀 (팀장) — 회로·PCB·펌웨어·기구 설계 전담
| 소개 | 세로 한 줄로 배치한 RGB LED 16개를 모터로 회전시키고, 회전에 맞춰 열(column) 데이터를 빠르게 바꿔 잔상(POV)으로 글자와 그림을 공중에 그리는 디스플레이. LED 구동 PCB 설계 → 펌웨어 → 3D 프린팅 기구까지 직접 구현했습니다. |
| 기획 의도 | LED 16개는 그 자체로는 세로 선 하나에 불과합니다. 하지만 이 선을 회전시키면서 정확한 타이밍에 빛을 바꾸면, 사람 눈의 잔상 효과로 선이 지나간 자리가 면이 되어 글자와 그림이 떠오릅니다. 부품 수를 늘리는 대신 시간으로 해상도를 만든다는 발상에 끌려 주제로 골랐습니다. 같은 발상을 배선에도 적용했습니다. RGB LED 16개를 직접 제어하려면 핀이 48개 필요하지만, 시프트 레지스터 6개를 한 줄로 엮어 데이터를 직렬로 흘려보내면 핀 3개면 충분합니다. 수업에서 배운 ATmega128의 타이머 · PWM · 외부 인터럽트 · GPIO 제어를 이 하나의 작품에 통합했고, 이전 프로젝트에서 겪은 만능기판 배선의 한계를 넘기 위해 KiCad로 PCB를 직접 설계했습니다. |
| 하이라이트 | 🔆 선 → 면 : LED 한 줄(16개)을 회전시켜 잔상으로 2차원 화면 구현 📌 48 → 3 : 74HC595 체인으로 LED 48채널을 MCU 핀 3개로 제어 🎨 단색 8행 → RGB 16행 : 해상도 2배, 6색 · 6단계 밝기 표현 |
| 내 역할 | 팀장 — 회로 설계, PCB 아트웍·제작, 펌웨어(LED 보드 · 모터 보드), 기구 3D 모델링, 설계 문서 |
| 기여도 | 90% — 하드웨어·펌웨어·기구 설계를 사실상 단독으로 구현 (자세한 내용은 내 담당 범위) |
| 항목 | 내용 |
|---|---|
| MCU | ATmega128 × 2 (LED 보드 / 모터 보드) |
| LED | RGB LED 16개 (16행 × R·G·B = 48채널) |
| LED 드라이버 | 74HC595 ×6 데이지 체인 (48비트) — MCU 핀 3개로 48채널 구동 |
| 모터 | DC 모터 + L298N 모터 드라이버, Timer0 Fast PWM 속도 제어 |
| 입력 | 택트 스위치 → 외부 인터럽트 (LED 4개 + 모터 3개) |
| 기능 | 6색 전환 · 6단계 밝기 · 패턴 2종(글자 ISA / 하트) · 모터 속도 ±, 일시정지 |
| 개발 환경 | CodeVisionAVR (C), KiCad 9, Fusion 360 |
| 상태 | 완료 — 2025.08 – 2025.11 마이크로프로세서 수업 텀프로젝트 (이후 추가 개발 없음) |
왼쪽 완성품 · 오른쪽 회전 중 잔상 — LED 한 줄이 회전하며 구(球) 형태의 면을 만듦
0이면 LED 켜짐(Active-Low), 0xFFFF는 전체 소등uptime ms 동안 켜고 7 - uptime ms 동안 꺼서, 7 ms 주기 안에서 듀티비를 1/7 ~ 6/7로 조절ISA 글자: 24열 (글자당 8열), 하트: 12열OCR0 값(0~254)을 인터럽트로 ±10씩 바꿔 L298N ENA에 입력LED 보드 (ATmega128 #1)
| 핀 | 방향 | 용도 |
|---|---|---|
| PA0 | 출력 | 74HC595 SER / DS (직렬 데이터) |
| PA1 | 출력 | 74HC595 SRCLK / SHCP (시프트 클럭) |
| PA2 | 출력 | 74HC595 RCLK / STCP (래치 클럭) |
| PD0 (INT0) | 입력, 풀업 | 색상 전환 (빨 → 초 → 파 → 노 → 마젠타 → 청록) |
| PD1 (INT1) | 입력, 풀업 | 밝기 변경 (1 ↔ 6 단계 왕복) |
| PD2 (INT2) | 입력, 풀업 | 패턴 1: ISA 글자 |
| PD3 (INT3) | 입력, 풀업 | 패턴 2: 하트 |
모터 보드 (ATmega128 #2)
| 핀 | 방향 | 용도 |
|---|---|---|
| PB4 (OC0) | 출력 | PWM → L298N ENA |
| PA0 / PA1 | 출력 | L298N IN1 / IN2 (회전 방향 고정) |
| PD0 (INT0) | 입력, 풀업 | 속도 +10 (최대 254) |
| PD1 (INT1) | 입력, 풀업 | 속도 −10 (최소 1) |
| PD2 (INT2) | 입력, 풀업 | 일시정지 / 재시작 (직전 속도 복원, 첫 시작 160) |
인터럽트는 모두 하강 에지 트리거(EICRA)입니다.
atmega128-pov-display/
├─ firmware/ CodeVisionAVR C 소스
│ ├─ led_board/main.c 74HC595 48비트 시프트 출력, 색상·밝기·패턴 제어
│ └─ motor_board/main.c Timer0 Fast PWM 모터 속도 제어
├─ hardware/
│ └─ pcb/ KiCad 9 프로젝트 (LED 보드)
│ ├─ MPMP.kicad_pro / .kicad_sch / .kicad_pcb
│ └─ gerber/ 제작용 Gerber + 드릴 파일
├─ mechanical/ 3D 프린팅 부품 (STL)
│ ├─ rotor_plate.stl 회전판 (PCB 장착)
│ ├─ rotor_cover_v2.stl 회전판 덮개
│ ├─ support_upper.stl 지지대 (위)
│ ├─ support_lower.stl 지지대 (아래)
│ ├─ base.stl 받침대
│ └─ base_support.stl 받침대 하부 받침
└─ docs/
├─ images/ 블록 다이어그램, 플로우차트, PCB · 3D · 결과 사진
└─ videos/ 동작 영상| PCB 레이아웃 | PCB 3D 뷰 | 회전판 조립 (LED 48채널 배선) |
|---|---|---|
![]() | ![]() | ![]() |
브레드보드 테스트를 거친 뒤 PCB로 제작했습니다 (브레드보드 사진).
| 회전판 · 덮개 | 지지대 · 받침대 | 최종 조립 모델 |
|---|---|---|
![]() | ![]() | ![]() |
| Red | Green | Blue |
|---|---|---|
![]() | ![]() | ![]() |
ISA)| I | S | A |
|---|---|---|
![]() | ![]() | ![]() |
▶ docs/videos/pattern_demo.mp4 — 회전하며 패턴을 출력하는 모습
4인 팀 프로젝트에서 제가 담당한 부분입니다.
| 파트 | 내용 |
|---|---|
| 회로 / PCB | LED 보드 회로도 설계, PCB 아트웍, Gerber 출력 및 제작 |
| 펌웨어 | LED 보드(시프트 레지스터 구동, 색상·밝기·패턴 제어), 모터 보드(PWM 속도 제어) |
| 기구 | 회전판, 덮개, 지지대, 받침대 3D 모델링 및 출력 |
| 설계 문서 | 블록 다이어그램, 제어 플로우차트, 핀 배치 |
firmware/led_board/main.c, 모터 보드는 firmware/motor_board/main.c를 프로젝트에 추가mega128.h, delay.h는 CodeVisionAVR에 포함된 헤더입니다| 보드 | 스위치 | 동작 |
|---|---|---|
| 모터 | INT2 | 모터 시작 / 일시정지 (전원 투입 시 정지 상태) |
| 모터 | INT0 / INT1 | 속도 증가 / 감소 |
| LED | INT2 / INT3 | ISA 글자 / 하트 패턴 |
| LED | INT0 | 색상 전환 (6색) |
| LED | INT1 | 밝기 변경 |
LED 보드는 전원 투입 시 R → G → B를 0.3초씩 켜서 LED 상태를 확인한 뒤 대기합니다.
hardware/pcb/gerber/ 폴더 전체를 압축해 PCB 제작 업체에 업로드hardware/pcb/MPMP.kicad_pro 열기mechanical/*.stl을 슬라이서에서 열어 3D 프린터로 출력C (CodeVisionAVR) AVR ATmega128 · KiCad 9 · Fusion 360
mega128.h, delay.h: CodeVisionAVR 컴파일러 기본 헤더 (저장소에 미포함)| Qty | Value | Footprint | References |
|---|---|---|---|
| 64 | Conn_01x01_Pin | Connector_Pin:Pin_D0.7mm_L6.5mm_W1.8mm_FlatFork | 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, B1 +48 |
| 6 | 74HC595 | Package_DIP:DIP-16_W7.62mm_Socket | U/B1, U/B2, U/G1, U/G2, U/R1, U/R2 |
| 6 | C_Small | Capacitor_SMD:C_0805_2012Metric | C/B1, C/B2, C/G1, C/G2, C/R1, C/R2 |
| 4 | MountingHole | MountingHole:MountingHole_3mm | H1, H2, H3, H4 |
| 3 | 0.1uF | Capacitor_SMD:C_0805_2012Metric | C3, C4, C5 |
| 2 | 22pF | Capacitor_SMD:C_0805_2012Metric | C1, C2 |
| 2 | R_Network08 | Resistor_THT:R_Array_SIP9 | RN1, RN2 |
| 1 | ATmega128-16A | Package_QFP:TQFP-64_14x14mm_P0.8mm | U1 |
| 1 | C | Capacitor_SMD:C_0805_2012Metric | C9 |
| 1 | Conn_01x04_Pin | Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_Vertical | J1 |
| 1 | Conn_01x10_Pin | Connector_PinHeader_2.54mm:PinHeader_2x05_P2.54mm_Vertical | J2 |
| 1 | Crystal | Crystal:Crystal_HC49-U_Vertical | Y1 |
| 1 | D | Diode_THT:D_A-405_P7.62mm_Horizontal | D1 |
| 1 | R | Resistor_SMD:R_0805_2012Metric | R1 |
| 1 | SW_SPST | Button_Switch_THT:SW_PUSH_1P1T_6x3.5mm_H4.3_APEM_MJTP1243 | SW1 |

46nori/Z80Atmega128
Real Z80A system with I/O emulated by AVR(ATmega128)

theQuetzalcoatl/avr-dev
A self made and designed embedded development board with several peripherals/devices to use. On top of that is an embedded kernel with several device drivers, forming an OS.


tardate/LittleArduinoProjects
a collection of "Little Electronic & Arduino Projects", most involving electronics or an Arduino in one way or another!

ChrisChrisLoLo/beyblock20
The magnetic, modular, 20-key macropad that can join together to form an ortholinear board

slu4coder/Minimal-64x4-Home-Computer
My DIY TTL home computer with VGA and PS/2 and 4x the processing power of a Commodore C64 or Apple II.

electroniceel/protoboard
Advanced protoboard layout with 1.27mm pitch for smd parts

TobleMiner/DC-UPS
A small DC UPS, designed to keep small appliances like consumer network equipment running during power outages
It measures 90.3 × 87.2 mm and has 2 copper layers, 1.6 mm thick.
95 parts, built around the ATMEGA128-16AU and 74HC595. 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 qetad13/atmega128-pov-display repository on GitHub, at the commit this page was made from: the board is hardware/pcb/MPMP.kicad_pcb and its schematic hardware/pcb/MPMP.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).