A tabletop town with traffic lights that coordinate a main road, side streets, a pedestrian crossing, a servo barrier, and a lamp that responds to the ambient light.
A miniature interactive scale model showcasing automated urban infrastructure, including working LED traffic lights, parking lot boom gates, street lighting, and crosswalks. Designed to explore sensor integration, traffic management logic, and embedded control systems in a realistic smart city setting. This was built as a school project for the tech class.
| ISSUE | SOLUTION |
|---|---|
| Building the traffic lights the LEDs were popping out from the print | Used UV resin to lock them in the case. |
| Attaching the traffic lights and the other elements to the box made them very unstable. | I set a plywood board inside the box and mounted all components on it. |
| Initial wiring was quite inefficient | Rewired the whole schematic. The requirement for the project was to be built on a breadboard. These are notoriously unreliable. |
| The barrier was closing too fast | A delay was included in the algorithm to open the barrier |
| The street light was blinking if the ambient light was at the edge of detection | A similar hysteresis algorithm was applied to control it |
The finished intersection running: signals, the pedestrian crossing, the barrier, and the street lamps.
This recording shows the completed model in operation, with the Arduino driving the signals, the crossing, the gate, and the lamps.
A set of traffic lights were designed and 3D printed. LED were incorporated to provide the red, yellow, green lights. The LEDs were locked in place with UV resin.
The barrier system has two components: presence detection, barrier opening/close mechanism. For the presence detection an IR LED and an IR photo diode were used and for the barrier a servo with wire linkages was created.
A simple LED was incorporated in case resembling a street light. Also a photo resistor was used to detect the level of ambient light.
The integration between all these was done using an Arduino Uno and a piece of code implementing a State Machine.
The printed town, the CAD assembly, and the circuit that drives it.
CAD of the intersection: signal poles, barrier, house, and the road on a green base.
Anthony at the desk with a breadboard circuit and an ultrasonic sensor drawn up on the monitor.
Soldering the leads on a small signal head at the electronics bench.
Three orange signal heads and one black head, each with red, yellow, and green LEDs and a bundled cable.
Nailing the printed road mat onto the wooden base at the workbench.
Gray barrier housings with yellow arms, plus the servo that drives them.
Wiring the Arduino harness on the bench while a red signal is already lit on the model.
Finished intersection with the signals lit, the yellow barrier down, and the house and palms in place.
72 photographs and drawings from this build.
| PARAMETER | SPECIFICATION / VALUE |
|---|---|
| Onboard MCU | Arduino Uno |
| Traffic Lights | 12 x LED |
| Servo | MG90S |
| Sensor | Photo Resistor |
| Sensor | IR Photo Diode |
| LED | Infrared Emitter |
| Algorithms | State Machine |
| Additional Software | Hysteresis |
| CAD Software | FreeCAD |
| Manufacturing | 3D Printing |