Traffic Light on Arduino using Stateflow

Model a traffic light switching sequence using Stateflow

1.6K 次下载

更新时间 2015/8/12


This project models a traffic light switching sequence, where the switching sequence is automated as follows:
Red (5 sec) > Amber (2 sec) > Green (5 sec)
The code initializes first by blinking all three LEDs three times, and then proceeds with the traffic light sequence.
In the model, a Stateflow chart is used for the logical modelling.

Adapted from Simon Monk's "30 Arduino Projects for the Evil Genius".


Techsource Technical Team (2023). Traffic Light on Arduino using Stateflow (, MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2015a
Windows macOS Linux

启发作品: Traffic Light + Switch on Arduino

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明

Added picture.
Updated description.