Block Diagram used in Part 1 

 

Electrical Schematic used in part 2