Skip to content

Latest commit

 

History

History
29 lines (26 loc) · 1.46 KB

README.md

File metadata and controls

29 lines (26 loc) · 1.46 KB

Lab 5

This lab exercise is the solution for "Lab 5. Traffic Light Controller (Spring 2023)" of EE319K https://users.ece.utexas.edu/~valvano/Volume1/ .
The program is implemented on STM32F103C8T6 kit instead of TM4C123GH6PM, the logic remains though.
Instead of mounting leds and switch to a breadboard, I soldered them into a electrical board so that the signals can be observed clearly.
This program works.

Logic:

Runs on STM32F103C8T6
Use a table implementation of a Moore finite state machine to operate
a traffic light.
Truong Giang Nguyen
Jan 10th, 2024

walk button sensor connected to PB5 (1=button pressed)
north facing car detector connected to PB4 (1=car present)
east facing car detector connected to PB3 (1=car present)

east facing red light connected to PA9 (was PA8 but PA8 cannot output correctly)
east facing yellow light connected to PA7
east facing green light connected to PA6
north facing red light connected to PA5
north facing yellow light connected to PA4
north facing green light connected to PA3
walk blue light connected to PA2
walk green light connected to PA1
walk red light connected to PA0

Some images

Image description
Image description