Skip to the content
2 layers77.4 × 65.2 mmMiniPIC, the printed circuit board in 3D

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

3

README

README.md

Traffic Light Controller with PIC16F887

UI Demo

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 → AUTO
  • N → MANUAL
  • F → FLASHING
  • M → NEXT MODE
  • R1 → Road 1 Go
  • R2 → Road 2 Go

How to Use

  1. Build and flash the firmware to the PIC16F887.
  2. Connect the board to the PC through UART.
  3. Run the Python UI.
  4. Select the correct COM port and baud rate, then press Connect.
  5. Use the UI buttons to switch modes and control the intersection.

Wiring Notes

  • RC3 → I2C SCL
  • RC4 → I2C SDA
  • RB0, 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
QtyValueFootprintReferences
5100nFCapacitor_Tantalum_SMD:CP_EIA-1608-08_AVX-JC6, C7, C8, C11, CADC1
422pFCapacitor_Tantalum_SMD:CP_EIA-1608-08_AVX-JC1, C2, C3, C5
4Conn_01x03Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_VerticalADC0, J-3V3, J-5V1, J-GND1
2100Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR_LCD1, R4
21000Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR2, R3
2470uFCapacitor_THT:CP_Radial_D7.5mm_P2.50mmCHEM1, CHEM2
2LEDLED_SMD:LED_0603_1608Metric_Pad1.05x0.95mm_HandSolderLED1, LED2
2PMS9P1B10M2QESymbol:SW_PMS9P1B10M2QEINT0, S1
110KResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR1
110kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR5
178M05Package_TO_SOT_SMD:TO-252-2U3
1AMS1117-3.3Package_TO_SOT_SMD:SOT-223-3_TabPin2U2
1Conn_01x04Connector_PinSocket_2.54mm:PinSocket_1x04_P2.54mm_VerticalJ7
1Conn_01x05Connector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_VerticalJ6
1Conn_01x06Connector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_VerticalJ2
1Conn_01x08Connector_PinHeader_2.54mm:PinHeader_1x08_P2.54mm_VerticalJ4
1Conn_01x09Connector_PinHeader_2.54mm:PinHeader_1x09_P2.54mm_VerticalJ1
1Conn_01x10Connector_PinHeader_2.54mm:PinHeader_1x10_P2.54mm_VerticalJ3
1Conn_01x16Connector_PinSocket_2.54mm:PinSocket_1x16_P2.54mm_VerticalLCD_16x2
1CrystalCrystal:Crystal_HC49-4H_VerticalY1
1EG2201BSwitch:SW_EG2201BSW1
1Jack-DCConnector_BarrelJack:BarrelJack_HorizontalJ5
1LEDLED_SMD:LED_1206_3216Metric_Pad1.42x1.75mm_HandSolderLED3
1PIC16F887-IPMCU:DIP1543W47P254L5175H635Q40U1
1R_PotentiometerPotentiometer_THT:Potentiometer_Bourns_3266W_VerticalRV1
1USB_B_MiniConnector_USB:USB_Mini-B_Lumberg_2486_01_HorizontalJ9

The 41 most common of 45 parts.

More from dquang05/trafficLight_PIC16F887

2
  • 2 layers45.6 × 19.8 mmLCD, the printed circuit board in 3D

    LCD

    dquang05/trafficLight_PIC16F887

    Academic project - Micro Controller

    19 parts
  • 2 layers38 × 25 mmBTL, the printed circuit board in 3D

    BTL

    dquang05/trafficLight_PIC16F887

    Academic project - Micro Controller

    16 parts

Similar boards

  • 2 layers116.5 × 55.5 mmPcb v4, the printed circuit board in 3D

    Pcb v4

    Brent-Dickinson/SDP_PCB

    this is version 4 right now

    53 parts
  • 2 layers53 × 55.5 mmRFID Siralama Karti, the printed circuit board in 3D

    RFID Siralama Karti

    emrebrbr/RFID-Door-System-with-PIC16F887

    Smart security door PIC16F887 based RFID (RC522) solution.

    12 partsMIT
  • 2 layers80 × 40 mmSignal board, the printed circuit board in 3D

    Signal board

    bwug/Microcontroller-Board

    Microcontroller Board Designed for signal integrity

    38 parts1
  • 2 layers100 × 100 mmPIC16F887EV, the printed circuit board in 3D

    PIC16F887EV

    JoseCuretti/PIC16F887EV

    99 parts1
  • 2 layers96.5 × 99.1 mmPlaca carro, the printed circuit board in 3D

    Placa carro

    Diegotrz/RC_racecar

    Proyecto para el curso de digitales 2

    12 parts
  • 2 layers558.8 × 88.9 mmOrgan, the printed circuit board in 3D

    Organ

    djfritz/pfeifenorgel

    Die Fritz-Orgel

    194 partsBSD-2-Clause
  • 2 layers170 × 55 mmProtector de Tesoro, the printed circuit board in 3D

    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 layersControlTemp, the printed circuit board in 3D

    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.