Traffic Light + Switch on Arduino

Have automated and manual modes for traffic light switching. Change anytime between the two modes!
다운로드 수: 1.1K
업데이트 날짜: 2015/8/12

라이선스 보기

This project is an extension to the “Traffic Light on Arduino using Stateflow” project. In addition to modeling the switching of traffic lights, there are two modes: automated and manual. A Stateflow chart is used to create state machines for the automated and manual mode.
Automated:
Automates the switching sequence when the push button is held down for more than 1.5 seconds. Red (5 sec) > Amber (2 sec) > Green (5 sec).
Manual:
Changes the light each time the button is pressed.
Transition from Manual to Automated mode:
At any time within manual mode, if the pushbutton is held down for longer than 1.5 seconds, the mode will change to automated. The sequence will restart: Red > Amber > Green, even though the light may have been at amber or green at the point of change.

Transition from Automated to Manual mode:
At any time within automated mode, if the pushbutton is pressed, the mode will change to manual.

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

인용 양식

Techsource Technical Team (2024). Traffic Light + Switch on Arduino (https://www.mathworks.com/matlabcentral/fileexchange/51707-traffic-light-switch-on-arduino), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2015a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0

Updated description.
Added picture