Fig. 2 Hardware schematic