#BB6 Arduino State😲Machine - Part 2: Implementation šŸ„³šŸ„‚

Finite State Machine - Part Two ā–ŗ PCBWay $5 for 10 pieces https://www.pcbway.com This is PART TWO of the Bacon Bytes series on a step-by-step guide on how we can move to a State Machine on the Arduino (or, indeed, any other microcontroller). ā–ŗ Sketch and more in my GitHub for this video: https://github.com/RalphBacon/BB6-Ard... To get the most of of this video ensure you have watched PART ONE first which covers the whole multitasking element of a useful State Machine that doesn't include any blocking code (such as use of the delay() 😲 statement). Link:    • #BB5Ā MovingĀ yourĀ ArduinoĀ toĀ aĀ multi-taskin...Ā Ā  We briefly (ever so briefly) touch on theory😲but really concentrate on converting a State Diagram into actual Arduino-speak C++ code. It's far easier than you might think. Moreover, it ensures your code reflects the State Diagram you draw, thus ensuring excellent robustness in your code. You know about "enum"s? What about "class enum"s? We cover that too, and why it makes for better, more robust code. If you really want some in-depth theory, Wikipedia has it covered: https://en.wikipedia.org/wiki/Finite-... Perhaps in a future video we might even talk about Hierarchical State machines 😲 ā–ŗ Sketch and more in my GitHub for this video: https://github.com/RalphBacon/BB6-Ard... ā–ŗ List of all my videos (Special thanks to Michael Kurt Vogel for compiling this) http://bit.ly/YouTubeVideoList-RalphB... ā–ŗ If you like this video please give it a thumbs up, share it and if you're not already subscribed please consider doing so and joining me on my Arduinite (and other μControllers) journey My channel, GitHub and blog are here: ------------------------------------------------------------------ • Ā Ā Ā /Ā ralphbaconĀ Ā  • https://ralphbacon.blog • https://github.com/RalphBacon • https://buymeacoffee.com/ralphbacon ------------------------------------------------------------------

#BB7 Pass by Value or Reference - What's the difference?
ā–¶ļøŽ

#BB7 Pass by Value or Reference - What's the difference?

#BB5 Moving your Arduino to a multi-tasking State Machine - Easy Intro
ā–¶ļøŽ

#BB5 Moving your Arduino to a multi-tasking State Machine - Easy Intro

#BB4 MOSFETs - From an Arduino Perspective
ā–¶ļøŽ

#BB4 MOSFETs - From an Arduino Perspective

#224 šŸ›‘ STOP using Serial.print in your Arduino code! THIS is better.
ā–¶ļøŽ

#224 šŸ›‘ STOP using Serial.print in your Arduino code! THIS is better.

It finally happened
ā–¶ļøŽ

It finally happened

#BB10 Namespaces & Macros for Arduino (and other) microcontrollers
ā–¶ļøŽ

#BB10 Namespaces & Macros for Arduino (and other) microcontrollers

āœ” Multitask Arduino with State Machines (& Switch Debouncing)
ā–¶ļøŽ

āœ” Multitask Arduino with State Machines (& Switch Debouncing)

FPGAs Aren’t Processors (Unless You Want Them to Be) || FPGA Deep Dive and Use
ā–¶ļøŽ

FPGAs Aren’t Processors (Unless You Want Them to Be) || FPGA Deep Dive and Use

#230 The ⭐ULTIMATE⭐ Switch Bounce Eliminator - simple and effective. šŸŽˆ
ā–¶ļøŽ

#230 The ⭐ULTIMATE⭐ Switch Bounce Eliminator - simple and effective. šŸŽˆ

#241 Yikes! Only ONE GPIO pin but TWOšŸ”“šŸŸ¢LEDs - Now What? Easy fix!
ā–¶ļøŽ

#241 Yikes! Only ONE GPIO pin but TWOšŸ”“šŸŸ¢LEDs - Now What? Easy fix!

Can we still stop this?
ā–¶ļøŽ

Can we still stop this?

#BB9 Organising your code🧹for easier debugging and maintenanceāœ…
ā–¶ļøŽ

#BB9 Organising your code🧹for easier debugging and maintenanceāœ…

Arduino UNO R4 Lesson12 - millis Function | Handling Multiple Tasks | Non-Blocking Code
ā–¶ļøŽ

Arduino UNO R4 Lesson12 - millis Function | Handling Multiple Tasks | Non-Blocking Code

Something is jamming GPS over Europe. Here's what we found
ā–¶ļøŽ

Something is jamming GPS over Europe. Here's what we found

How do CPUs read machine code? — 6502 part 2
ā–¶ļøŽ

How do CPUs read machine code? — 6502 part 2

Introduction to Finite State Machine Theory
ā–¶ļøŽ

Introduction to Finite State Machine Theory

10  Multitasking in Arduino using millis | Servo Motor and 7-segment Display | Embedded Systems
ā–¶ļøŽ

10 Multitasking in Arduino using millis | Servo Motor and 7-segment Display | Embedded Systems

#BB11 Create an Arduino Library😨 - A Real World Example (Easy)
ā–¶ļøŽ

#BB11 Create an Arduino Library😨 - A Real World Example (Easy)

A 6502 Based Computer on a Single Breadboard
ā–¶ļøŽ

A 6502 Based Computer on a Single Breadboard

Clear Mind Intense Focus | Ambient Techno | ADHD High Focus Support
ā–¶ļøŽ

Clear Mind Intense Focus | Ambient Techno | ADHD High Focus Support