Design and implementation of photovoltaic energy harvesting automaton