# Multiple state machines

**URL:** <https://forum.arduino.cc/t/multiple-state-machines/1246218>\
**Category:** General Guidance\
**Created:** [April 10, 2024, 5:07pm UTC](https://forum.arduino.cc/t/multiple-state-machines/1246218 "2024-04-10T17:07:30Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![J-M-L](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/j-m-l/32/766245_2.png) [@J-M-L](https://forum.arduino.cc/u/J-M-L)\
**Post date:** [April 11, 2024, 3:47pm UTC](https://forum.arduino.cc/t/multiple-state-machines/1246218/12 "2024-04-11T15:47:20Z")

</div>

you could look at the following examples

- [Using millis() for timing. A beginners guide](https://forum.arduino.cc/index.php?topic=503368.0)
- [Several things at the same time](https://forum.arduino.cc/index.php?topic=223286.0)
- [Flashing multiple LEDs at the same time](https://forum.arduino.cc/t/flashing-multiple-leds-at-the-same-time/1065564)

and you might benefit from studying state machines and common constructs (enum, switch/case, ...). Here is a small introduction to the topic: [Yet another Finite State Machine introduction](https://forum.arduino.cc/t/yet-another-finite-state-machine-introduction/1198997)

---

_[View the full topic](https://forum.arduino.cc/t/multiple-state-machines/1246218)._
