Electronic – Why does adding a capacitor greatly improve this circuit

capacitorcomparatordc motormosfet

I've been prototyping this pretty simple circuit for a while now:

schematic

simulate this circuit – Schematic created using CircuitLab

Description: C3 is charged to set point. Compatator out put goes high causing the MOSFETs to switch on the load. Switching load causes a voltage drop so positive feedback provides hysteresis. C3 must be charged in order to start the motor. Should input voltage be lost, motor will also continue to run off C3 until cut off point. I didn't include a link to the compatator because its data sheet has many models and is just confusing for people. The compatator has PUSH-PULL output with sufficient sourcing to drive M1.

I don't actually know what the specs on the motor are. It runs at 1.5V and 100mA isn't enough current to start it. Once running the 100mA input is sufficient to run the motor and keep C3 charged.

C2 was not part of my original design and the output from M2 was much lower than expected/desired. Messing around with the various R values didn't really have any impact. I intuitively felt the problem was with the MOSFETs. So I added C2 and that greatly improved the output characteristics.

Note that it works without C2. But there is a larger than desirable voltage drop over M2 without it.

However, I don't really know WHY adding it had that effect.

Can anyone shed some light on what the problem was and how adding that cap helped?

Update: This is only true when the power source is the bench supply. When the intended power source is connected (9V Solar), C2 causes the circuit to stop functioning. So I guess I will not be including it on the PCB layout, but I'm still pretty confused by this behavior.

Best Answer

schematic

simulate this circuit – Schematic created using CircuitLab

Figure 1. OP's circuit adjusted for ease of reading.

It is not clear how you expect this circuit to work. The combination of R1, R2 and R3 looks like it is intended to apply some positive feedback to make the circuit operate as a Schmitt trigger.

You might be just getting lucky and somehow switching on the NMOS / PMOS output, causing the V+ to drop and that drop is getting "kicked" through the capacitor enough to switch the comparator and get the circuit to oscillate.

Overall, I'd recommend that you edit your question to explain how you intend this to work, add in the component values and the designators (Q1, Q2, etc.) so that it is easier to discuss the circuit.