ShellmoForums
Organizing Arduino Programs - Printable Version

+- ShellmoForums (http://forum1.shellmo.org)
+-- Forum: Make (/forumdisplay.php?fid=1)
+--- Forum: General (/forumdisplay.php?fid=20)
+--- Thread: Organizing Arduino Programs (/showthread.php?tid=146)



Organizing Arduino Programs - jmccartney - 06-24-2014 10:27 PM

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!


RE: Organizing Arduino Programs - steamboat - 06-25-2014 10:47 PM

(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/


RE: Organizing Arduino Programs - steamboat - 06-25-2014 11:57 PM

Examples of simple state machines. Helped me to reveal the Woodo Secret about "State Machines".

http://gammon.com.au/statemachine