✔ Multitask Arduino with State Machines (& Switch Debouncing)
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:
https://youtu.be/y80CbihMV9Q
Simple Button State Machine:
https://gist.github.com/NormalUniverse/5b3a8a8d909b56b58b67bd3ec2808f4b#file-simple-button-debounce-state-machine
Button, Buzzer, LED Multitasking State Machines:
https://gist.github.com/NormalUniverse/f807ca9f267b861365c688193ddfdd68
Music:
"Rewind" - On Ice
"Brave" - Memba
Видео ✔ Multitask Arduino with State Machines (& Switch Debouncing) канала Normal Universe
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:
https://youtu.be/y80CbihMV9Q
Simple Button State Machine:
https://gist.github.com/NormalUniverse/5b3a8a8d909b56b58b67bd3ec2808f4b#file-simple-button-debounce-state-machine
Button, Buzzer, LED Multitasking State Machines:
https://gist.github.com/NormalUniverse/f807ca9f267b861365c688193ddfdd68
Music:
"Rewind" - On Ice
"Brave" - Memba
Видео ✔ Multitask Arduino with State Machines (& Switch Debouncing) канала Normal Universe
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
Level Up Your Arduino Code: External InterruptsArduino Event-Based ProgrammingHow to do multiple tasks in Arduino | Beginners | millis() functionState Pattern – Design Patterns (ep 17)#073 Arduino Code - A Simple State Machine LibraryEp. 58 - Arduino Advanced Input & Button Control, Debouncing, Counters & MultitaskingFinite State Machines explainedWhen Booleans Are Not Enough... State Machines?Using Rotary Encoders with ArduinoLife Lessons from the Youngest Person to Travel to Every Country | Lexie Alford | TEDxKlagenfurtDavid Khourshid - Formal Forms with State Machines | React Next 2019Arduino Basics 102: Control Structures, Variables, InterruptsArduino Workshop - Chapter Three - SWITCH CASE StatementsBuilding a HAAS VF2! From Casting to Shipping!Arduino Nerf Target Alarm Clock (Intro to Piezoelectricity)#71 How to create an Arduino Library - easy!State Machine - ganz einfachDoing multiple timed things with Arduino: Unleash the millis()!Crafting Stateful Styles with State Machines by David Khourshid | CSSConf BP 201913 Ultralight Tips to Stay Sane While Backpacking (Climb Mt San Jacinto)