

Academic project - Micro Controller
- Size
- 77.4 × 65.2 mm
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 45
- Nets
- 55
- Pads
- 198
- Tracks, vias
- 237, 3
- Pours
- 2
- Routed
- Yes
- KiCad
- KiCad 9.0 (file 20241229)
- Created
- 23 Mar 2026
- Updated
- 10 May 2026
Overview
MiniPIC is an open-source printed circuit board by dquang05, from the dquang05/trafficLight_PIC16F887 repository on GitHub. It is a 2-layer board of 77.4 × 65.2 mm with 45 parts on 55 nets, routed with 237 tracks and 3 vias.
It is built around the PIC16F887-I/PT, AMS1117-3.3 and EG2201B. Its parts include 9 capacitors, 8 connectors, 4 resistors, 3 ICs and 3 diodes. It belongs with the PIC boards of this library.
Main components
3PIC16F887-I/PT
TQFP-44(10x10)-40℃~+85℃ 10bit 14KB 20MHz 256Byte 2V~5.5V 35 368Byte 8 Bit Built-in FLASH PIC TQFP-44(10x10) Microcontrollers (MCU/MPU/SOC) ROHSMicrochip TechnologyMicrocontrollers (MCU/MPU/SOC)AMS1117-3.3
SOT-223-40℃~+125℃ 0.003%Vout 1 1.1V@(800mA) 15V 1A 3.3V 5mA 72dB@(120Hz) Fixed Over Current Protection、Short Circuit Protection、Thermal shutdown Positive SOT-223 Voltage Regulators - Linear, Low Drop Out (LDO) Regulators ROHSAdvanced Monolithic SystemsVoltage Regulators - Linear, Low Drop Out (LDO) RegulatorsEG2201B
插件-20℃~+70℃ 200mA 30V DPDT PC Pin Rectangular Columnar Through Hole 插件 Slide Switches ROHSE-SwitchSlide Switches
README
README.mdTraffic Light Controller with PIC16F887
A embedded systems project that implements a 2-road traffic light controller on PIC16F887, with a Python Tkinter desktop UI for monitoring and control over UART. The project focuses on firmware development, peripheral integration, timer-based state control, and PC-side visualization.
Features
- PIC16F887-based traffic light controller firmware
- 3 operating modes: AUTO, MANUAL, and FLASHING
- UART-based communication between the microcontroller and desktop UI
- Python Tkinter interface for live traffic light visualization
- I2C LCD for mode display on the hardware side
- Button control and serial command control support
Operating Modes
AUTO
Runs the normal traffic cycle automatically using timer-based state transitions. The UI displays countdown values for both roads.
MANUAL
Allows the user to manually select which road gets the green light from the desktop UI.
FLASHING
Puts the system into a caution mode where the yellow lights blink.
How It Works
The PIC firmware handles the traffic light state machine, button input, UART command processing, and LCD updates. A timer interrupt is used for timekeeping, while the main loop updates the current mode and periodically sends system state data to the PC.
The desktop UI connects through a serial port, sends commands, and visualizes the current traffic light states in real time.
Controls
Supported serial/UI commands:
A→ AUTON→ MANUALF→ FLASHINGM→ NEXT MODER1→ Road 1 GoR2→ Road 2 Go
How to Use
- Build and flash the firmware to the PIC16F887.
- Connect the board to the PC through UART.
- Run the Python UI.
- Select the correct COM port and baud rate, then press Connect.
- Use the UI buttons to switch modes and control the intersection.
Wiring Notes
RC3→ I2C SCLRC4→ I2C SDARB0,RB1,RB2→ push buttons- UART baud rate in the current setup: 9600
Fault notes
- This is a small project, i do not optimal it for fault tolerance, so there are some faults in the code, such as:
- All the components must be connected or the hardware may not function correctly.
- If the LCD is not properly initialized or connected, it will not run correctly until the MCU is reset.
Parts
45| Qty | Value | Footprint | References |
|---|---|---|---|
| 5 | 100nF | Capacitor_Tantalum_SMD:CP_EIA-1608-08_AVX-J | C6, C7, C8, C11, CADC1 |
| 4 | 22pF | Capacitor_Tantalum_SMD:CP_EIA-1608-08_AVX-J | C1, C2, C3, C5 |
| 4 | Conn_01x03 | Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical | ADC0, J-3V3, J-5V1, J-GND1 |
| 2 | 100 | Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder | R_LCD1, R4 |
| 2 | 1000 | Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder | R2, R3 |
| 2 | 470uF | Capacitor_THT:CP_Radial_D7.5mm_P2.50mm | CHEM1, CHEM2 |
| 2 | LED | LED_SMD:LED_0603_1608Metric_Pad1.05x0.95mm_HandSolder | LED1, LED2 |
| 2 | PMS9P1B10M2QE | Symbol:SW_PMS9P1B10M2QE | INT0, S1 |
| 1 | 10K | Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder | R1 |
| 1 | 10k | Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolder | R5 |
| 1 | 78M05 | Package_TO_SOT_SMD:TO-252-2 | U3 |
| 1 | AMS1117-3.3 | Package_TO_SOT_SMD:SOT-223-3_TabPin2 | U2 |
| 1 | Conn_01x04 | Connector_PinSocket_2.54mm:PinSocket_1x04_P2.54mm_Vertical | J7 |
| 1 | Conn_01x05 | Connector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_Vertical | J6 |
| 1 | Conn_01x06 | Connector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_Vertical | J2 |
| 1 | Conn_01x08 | Connector_PinHeader_2.54mm:PinHeader_1x08_P2.54mm_Vertical | J4 |
| 1 | Conn_01x09 | Connector_PinHeader_2.54mm:PinHeader_1x09_P2.54mm_Vertical | J1 |
| 1 | Conn_01x10 | Connector_PinHeader_2.54mm:PinHeader_1x10_P2.54mm_Vertical | J3 |
| 1 | Conn_01x16 | Connector_PinSocket_2.54mm:PinSocket_1x16_P2.54mm_Vertical | LCD_16x2 |
| 1 | Crystal | Crystal:Crystal_HC49-4H_Vertical | Y1 |
| 1 | EG2201B | Switch:SW_EG2201B | SW1 |
| 1 | Jack-DC | Connector_BarrelJack:BarrelJack_Horizontal | J5 |
| 1 | LED | LED_SMD:LED_1206_3216Metric_Pad1.42x1.75mm_HandSolder | LED3 |
| 1 | PIC16F887-IP | MCU:DIP1543W47P254L5175H635Q40 | U1 |
| 1 | R_Potentiometer | Potentiometer_THT:Potentiometer_Bourns_3266W_Vertical | RV1 |
| 1 | USB_B_Mini | Connector_USB:USB_Mini-B_Lumberg_2486_01_Horizontal | J9 |
The 41 most common of 45 parts.
More from dquang05/trafficLight_PIC16F887
2- 2 layers45.6 × 19.8 mm

- 2 layers38 × 25 mm

Similar boards
- 2 layers116.5 × 55.5 mm

- 2 layers53 × 55.5 mm

RFID Siralama Karti
emrebrbr/RFID-Door-System-with-PIC16F887
Smart security door PIC16F887 based RFID (RC522) solution.
12 partsMIT - 2 layers80 × 40 mm

- 2 layers100 × 100 mm

- 2 layers96.5 × 99.1 mm

- 2 layers558.8 × 88.9 mm

- 2 layers170 × 55 mm

Protector de Tesoro
edgranzella/Protector-de-Tesoro
Este repositorio contiene el diseño de hardware y la placa de circuito impreso (PCB) desarrollado en KiCad para el módulo central del Protector de Tesoro.
88 parts - 2 layers

ControlTemp
fernandorasta99/PROYECTO-FINAL
Los puntos a destacar son: Realizar una placa de circuito impreso con los módulos que se utilizarán en el proyecto, para ello, es libre de realizar el diseño como mejor le convenga Puede utilizar cualquier software de…
9 parts
Questions
How big is the MiniPIC PCB?
It measures 77.4 × 65.2 mm and has 2 copper layers, 1.6 mm thick.
What parts does the MiniPIC use?
45 parts, built around the PIC16F887-I/PT, AMS1117-3.3 and EG2201B. 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 MiniPIC KiCad files?
From the dquang05/trafficLight_PIC16F887 repository on GitHub, at the commit this page was made from: the board is PCB_layout/miniPIC/miniPIC.kicad_pcb and its schematic PCB_layout/7segmentsLED/BTL.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Can I use the MiniPIC design in my own project?
Its repository states no licence, so its author keeps all rights: ask dquang05 before reusing the design.