✔ Multitask Arduino with State Machines (& Switch Debouncing)
68,076 views
0

 Published On Mar 15, 2018

Project and Video by Chris Guichet
https://www.normaluniverse.com

A State Machine is a mental tool to help you organize your code. The best part is that you can do most of the real work by drawing a diagram, so you're free to get creative and visual without worrying about syntax. Once the diagram is done, there is a straightforward "Plug and Chug" procedure to turn that picture into working code.

In this video, I show how State Machines can be used to make code with a map. The result is easy to debug, organize, modify, and communicate to others.

Table of Contents:
0:00 - Intro
2:40 - Switch Bouncing
5:45 - Draw a State Machine
14:30 - Code a State Machine
28:00 - Use your Power for Good

"Primer" for Arduino beginners:
   • How to Get Started with Arduino  

Simple Button State Machine:
https://gist.github.com/NormalUnivers...

Button, Buzzer, LED Multitasking State Machines:
https://gist.github.com/NormalUnivers...

Music:
"Rewind" - On Ice
"Brave" - Memba

show more

Share/Embed