Implementation Asynchronous finite state machine

Hi all,

can anyone help me implementing Asynchronous Finite State Machine (AFSM) on Arduino uno. I am new to Arduino, and i want to implement hybrid energy harvesting using AFSM.

Thanks in advance


It seems to me that you've chosen a methodology and are now looking for a reason for having done that.

You need to post your program's requirements, without discussing HOW they should be implemented.


i have two energy sources, i have to switch between two energy sources based on output voltage from each source.

void loop()
   if (read_input_from_sources_1() <= VOLTAGE_REQ) {
      process _source(2);
   } else {