Arduino hw based plc like device