Skip to content

BrentWilkins/state_machines

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Finite State Machines

Playing around with FSMs on Arduino. Inspired by Marshall's blog post and related GitHub repository.

##Current Sketches

  • blink_fsm - 2 states (on/off) for flashing LED
  • debounce - 4 states for debouncing a button or a switch hooked to D0 and using internal pull-up resistor of ATmega328. Not the ideal debounce code, but a next level state machine example.
  • menu - General serial port menu system that uses the arrow keys to navigate. Requires a 'real' serial terminal emulator, the Arduino IDE one won't work. Use something like PuTTY or screen.

Basic idea in a graph

Partial State Diagram

  • TBD...

About

Playing around with FSMs on Arduino

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Other 100.0%