Traffic Light on Arduino using Stateflow
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".
Citar como
Techsource Technical Team (2024). Traffic Light on Arduino using Stateflow (https://www.mathworks.com/matlabcentral/fileexchange/51545-traffic-light-on-arduino-using-stateflow), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
- Industries > Automotive >
- Robotics and Autonomous Systems > Automated Driving Toolbox >
- Automotive > Automated Driving Toolbox >
- Event-Based Modeling > Stateflow >
Etiquetas
Agradecimientos
Inspiración para: Traffic Light + Switch on Arduino
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
Versión | Publicado | Notas de la versión | |
---|---|---|---|
1.0.0.0 |
Added picture.
|