ShellmoForums

Full Version: Organizing Arduino Programs
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am making this thread for people to share their, experience, views regarding organizing Arduino programs as well as techniques to get desired "behaviors" out of our bots.

I have been playing with this library SMLib for a couple days and it seems promising. I tried out several others but they seemed too complicating/overkill.

Post your thoughts!
(06-24-2014 10:27 PM)jmccartney Wrote: [ -> ]I have been playing with this library SMLib for a couple days and it seems promising. I tried out several others but they seemed too complicating/overkill.

Post your thoughts!
First I did not understand the "SM". After reading the Wikipedia article I found out what's going on here: http://en.wikipedia.org/wiki/Finite-state_machine
In German it is a "Endlicher Automat" http://de.wikipedia.org/wiki/Endlicher_Automat

Maybe this library can save you a lot of "if" and "switch" structures.

Some more input about state machines
http://www.ni.com/white-paper/3024/en/
Examples of simple state machines. Helped me to reveal the Woodo Secret about "State Machines".

http://gammon.com.au/statemachine
Reference URL's