I created web tool that help implement and visualize Finite state machine

Story

Finite state machine (FSM) is one approach to design automation system. The state diagram is easy to read and understand system's behavior. After design state diagram, we need to implememt in cpp code and it very confused the beginner and also it difficult for intermediate to visualize statemachine from raw code. So, that why I made "FSM Coder" to integrate FSM diagram and code together

FSM coder overview

FSM coder is designed for intermediate maker who understand FSM concept, cpp syntax and electronic. Now it's webbases tool and open/save file in your PC so no need to install and registeration. FSM Coder let you draw FSM diagram online and write a code inside for each state and transition's condition. Then it can generate Arduino code that you can copy and paste in IDE.

Current state of developement

FSM coder is my solo opensource project.Now I already launch working prototype which need a lot of testing and improvement. I think I can't develope it alone anymore. It's would be better if we develope it as community. Even it just started I known that this could be new way to implement Arduino project and must be more practical than other visual programming or code block ever.

Project deployment (Try FSM coder here, support Google chrome, Microsoft edge)

https://menginventor.github.io/FSM_coder

For video tutorial

Project page (See source code here)

Participat in this project

If you want to help but have no idea what to do. You can choose from following

  1. Try FSM coder with your project.
  2. Make a review or tutorial video video. (spread out)
  3. Give me feedback (like usabillity, improvement, bug report or feature request)
  4. Suggestion (how to make this project widely use)
2 Likes

don't use precompiler defines if you could use constexpr instead.
If you have an example with camelCase functions (like digitalWrite) - stay to camelCase for your functions and omit underscores.
If you address people with Arduino IDE - do code formating like Arduino IDE

Thankyou for you comment
I never use constexpr before, I will take a look. Sory for my nasty code.
For code format, arduino syntax hightlight is on the plan.
Doyou have som ething to say for feature usabillity? It might has some flaw that I didn't notice. I think it cool but still don't get attention from the community.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.