> For the complete documentation index, see [llms.txt](https://doc.eimtechnology.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.eimtechnology.com/kt-series-project-based-learning/smart-traffic-light.md). Agents can also search and read this documentation through its [MCP server](https://doc.eimtechnology.com/~gitbook/mcp).

# Smart Traffic Light

A tangible electronics project to learn soldering, microcontroller and FPGA

## Get Started!

<table data-card-size="large" data-view="cards"><thead><tr><th align="center"></th><th align="center"></th><th data-hidden data-card-cover data-type="files"></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td align="center"><strong>Hardware Kit</strong></td><td align="center"><a href="https://shop.eimtechnology.com/collections/all-products/products/traffic-light-control-system-module">Available Now</a></td><td><a href="https://2117864350-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHy5TN04jkEM9s96yIKLT%2Fuploads%2FeSt4wkZrKIfvzP0kRUMP%2Frect909.png?alt=media&amp;token=8da6699c-c763-4aae-b5c4-1e3a8242e744">rect909.png</a></td><td><a href="https://shop.eimtechnology.com/collections/all-products/products/traffic-light-control-system-module">https://shop.eimtechnology.com/collections/all-products/products/traffic-light-control-system-module</a></td></tr><tr><td align="center"><strong>Instructions</strong></td><td align="center"><a href="https://shop.eimtechnology.com/collections/all-products/products/traffic-light-control-system-module">Available Now</a></td><td><a href="https://2117864350-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHy5TN04jkEM9s96yIKLT%2Fuploads%2F4W9Z9Dhrg6aFpXPeCoVg%2Fimage.png?alt=media&amp;token=b7c812a3-26c9-4b5e-9f8a-2ff03e57bd94">image.png</a></td><td><a href="https://shop.eimtechnology.com/collections/all-products/products/traffic-light-control-system-module">https://shop.eimtechnology.com/collections/all-products/products/traffic-light-control-system-module</a></td></tr><tr><td align="center"></td><td align="center"></td><td></td><td></td></tr></tbody></table>

## Project Overview

In this project, you'll progress through multiple learning phases and develop a perspective shaped mindset with the tangible hardware that embodies the elegance of modern electronics. If you are interested or have learned soldering, microcontroller and FPGA, this is a great project to kick off. &#x20;

## Hardware

The complete hardware kit includes a pre-assembled main board, 4 traffic lights (with 12 unsoldered LEDs) and 8 road lights (with 8 unsoldered white LEDs). You can also choose STEPico (a RP2040 based microtroller board) and STEPFPGA (a Lattice based FPGA development board)

<figure><img src="https://2117864350-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHy5TN04jkEM9s96yIKLT%2Fuploads%2Fr8SkH8DD8pGIYjKhbM3C%2FTraffic%20Light_Top%20down_cropped.jpg?alt=media&amp;token=bc115f5d-b3ef-4d00-867f-32504fe88dd6" alt=""><figcaption><p>The hardware and parts included in the full project (or the green board STEPico only if you do not need FPGA) </p></figcaption></figure>

<table data-view="cards"><thead><tr><th></th></tr></thead><tbody><tr><td><a data-mention href="https://doc.eimtechnology.com/kt-series-project-based-learning/smart-traffic-light/board-design.md#board-dimensions">Board Design</a></td></tr><tr><td><a data-mention href="https://doc.eimtechnology.com/kt-series-project-based-learning/smart-traffic-light/board-design.md#circuit-schematic">Board Design</a></td></tr><tr><td><a data-mention href="https://doc.eimtechnology.com/kt-series-project-based-learning/smart-traffic-light/board-design.md#component-list">Board Design</a></td></tr><tr><td><a data-mention href="https://support.eimtechnology.com/documentation/stepfpga">STEPFPGA</a></td></tr><tr><td><a data-mention href="https://support.eimtechnology.com/documentation/stepico">STEPico</a></td></tr></tbody></table>

## Tutorial

As a big part of the learning process, we will include a 70-page detailed tutorial with great illustrations to walk you through the assembly process and also cover more advanced topics such as microcontroller, micropython coding and working principles of some electronics components and sensors.

<figure><img src="https://2117864350-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHy5TN04jkEM9s96yIKLT%2Fuploads%2FZS2lF7L0RZTv4Kphe4oI%2Fimage.png?alt=media&amp;token=f647d5f5-5b66-48ed-b6a8-93a89538b845" alt="" width="563"><figcaption><p>The physical copy of the tutorial book included with this project</p></figcaption></figure>

<figure><img src="https://ksr-ugc.imgix.net/assets/042/320/250/d3c55c8fd0623c0c996d098957b879e8_original.jpg?ixlib=rb-4.1.0&#x26;w=1200&#x26;fit=max&#x26;v=1694821775&#x26;gif-q=50&#x26;q=92&#x26;s=a975c5fec722590dc07dbea62fe331bf" alt="" width="563"><figcaption><p>Some figures in the tutorial (hands drawing by our artist)</p></figcaption></figure>

## **The Learning Part**

### **Soldering**

The majority of parts on the board have been pre-assembled to ensure the functionality of the main board. But you will still need to attempt an introductory level soldering task (20 LEDs with though-hole pins) to complete the entire project. Getting your hands dirty is always the first step in learning. If you are looking for a beginner-friendly soldering kit, please check out our previous campaign for "SparkTip".

<figure><img src="https://ksr-ugc.imgix.net/assets/042/306/878/440faf96d90cca5dcbfb0913c0ba466f_original.png?ixlib=rb-4.1.0&#x26;w=950&#x26;fit=max&#x26;v=1694738222&#x26;gif-q=50&#x26;q=92&#x26;s=eb449f4c4f5ff9cf4f40e1c58afa73a6" alt=""><figcaption></figcaption></figure>

### **Microcontroller and Python**

Once your board hardware has been completed, it's time to explore how each component, sensors and LEDs interface with each other, and the best tool to appreciate all the controls is through a Microcontroller.&#x20;

<figure><img src="https://ksr-ugc.imgix.net/assets/042/306/887/00107ef4a982cb4a8c1439b78c23de6a_original.png?ixlib=rb-4.1.0&#x26;w=952&#x26;fit=max&#x26;v=1694738324&#x26;gif-q=50&#x26;q=92&#x26;s=39d3d33893f6dc6d1ba8799195114e87" alt=""><figcaption></figcaption></figure>

In the project, we use Raspberry RP2040 based microcontroller, and in the tutorial we have two sections that provide walk-through codes, guiding you through the foundational steps and acquainting you with microcontroller configurations and micro-Python programming.

Check out this page for details: [STEPico & Micropython](https://doc.eimtechnology.com/kt-series-project-based-learning/smart-traffic-light/stepico-and-micropython.md)

### **FPGA and Verilog**

This hardware provides flexibility, high-speed processing capabilities, and customization for advanced control and management in traffic light systems. This part will be implemented by the STEPFPGA board.

<figure><img src="https://ksr-ugc.imgix.net/assets/042/306/894/b4c62bb3a13be4d68c957bd5d437c59a_original.png?ixlib=rb-4.1.0&#x26;w=951&#x26;fit=max&#x26;v=1694738394&#x26;gif-q=50&#x26;q=92&#x26;s=0246e6decb0cf216ad4532605c5d4e53" alt=""><figcaption></figcaption></figure>

The detailed procedures to setup FPGA board for this project can be found at: [STEPFPGA & Verilog](https://doc.eimtechnology.com/kt-series-project-based-learning/smart-traffic-light/stepfpga-and-verilog.md)
