These is the circuit diagram:
System Diagram