Bus Tracker

Overview

I created this project because I was tired of checking the bus times on my phone every morning for my stop. This device is intended to be connected to your home Wifi network and sit in the kitchen, displaying the live arrival times for your bus stop.

Bus Tracker display showing live arrivals Bus Tracker front view Bus Tracker top view

Schematic ยท PCB

Wifi Trace Antenna

Features a 2.4Ghz trace antenna for Wifi connection. Followed high-frequency layout principles including trace width calculation and a PI impedance matching network for best the Wifi range performance.

Wifi trace antenna schematic Wifi trace antenna 3D view Wifi trace antenna copper layout

Auto-Dimming Backlight

A phototransistor senses the ambient light in the room to dynamically adjust the backlight brightness of the display. A resistor biases the phototransistor to create a voltage divider, which output is measured by an internal ADC on the microcontroller. The display backlight is driven by a PWM signal. The duty cycle is adjusted based on the ambient light in the room.

Light sensor schematic Light sensor 3D view Light sensor copper layout

Microcontroller

Uses an ESP32-C3 microcontroller for its modern architecture, low power consumption, wireless connectivity, integrated USB to JTAG programmer, and low cost. Paired with a 4Mb external SPI flash for program storage.

ESP32-C3 microcontroller schematic ESP32-C3 microcontroller 3D view ESP32-C3 microcontroller copper layout

Power and USB

An LDO converts the 5V USB input to 3.3V for the microcontroller. A linear regulator was chosen for its simplicity and because of the small drop required between the input and output voltages.

USB power schematic USB power 3D view USB power copper layout

Color LCD Display

A color LCD display is connected over SPI.

Color LCD display