Finite State Machine (FSM) - UK traffic lights

UK traffic lights and FSM

The above link will take you to a tutorial about Finite State Machines (FSM).
The model is based on the UK traffic light sequence.

Here's a link to the Node-RED flow.

Node-RED flow

Trust you enjoy reading the tutorial.

1 Like

Ooo, thanks,

I just did something like this with my node-red-node-mytimeout node (a countdown timer). I'll compare your class to my node to see if I can make any improvements on my node.