simulate this circuit – Schematic created using CircuitLab
I had problems getting this to simulate with MOSFET, so used BJT.
simulate this circuit – Schematic created using CircuitLab
I had problems getting this to simulate with MOSFET, so used BJT.