Main Content

Hey there!I’m going to show you how to program a pedestrian traffic light for Arduino in C++ with a finite state machine by using YAKINDU Statechart Tools. This will demonstrate the power of state machines and can be used as a blueprint for further projects.
Supplies:You only need an Arduino, some pushbuttons, LEDs, Jumper and resistors.

- 2x Pushbutton
- 2x Traffic Lights or you can use LEDs with 220 Ohm resistors
- 2x 10k Ohm resistors
- Breadboard
- Jumper
- Arduino Uno/Mega (or any other, that got at least 8 GPIOs)

- YAKINDU Statechart Tools
- Eclipse C++ IDE for Arduino”

Link to article