lilimike
Member
I am trying to detect when a bilge pump is turned on. Based on the circuit bellow I have this current sensor (ACS756), its output is VCC/2 when no load and I get around 40mV/A as stated in the datasheet.
My goal is to trigger an I/O pin from a Raspberry Pi when the pump turns on and also when the pump turns off.
I've added a comparator with a voltage divider as reference voltage to give the the same VCC/2 and my circuit appears to be almost running.
The problem is or appear to be similar to a manual switch bouncing. or maybe the load is just barely enough to trigger the comparator. When the pump starts, the Raspberry Pi is responding with ON, ON, ON, ON (sometimes more) but I need to get only once ON and once OFF. Ive tried to feed the output of the comparator to a Schmitt Trigger chip but I still get the same result. Is there anything simple I can add to improve? I'm open to any other solution as well.
I don't have the actual pump, I am testing with a small 12 Volts motor powered by an external supply.
My goal is to trigger an I/O pin from a Raspberry Pi when the pump turns on and also when the pump turns off.
I've added a comparator with a voltage divider as reference voltage to give the the same VCC/2 and my circuit appears to be almost running.
The problem is or appear to be similar to a manual switch bouncing. or maybe the load is just barely enough to trigger the comparator. When the pump starts, the Raspberry Pi is responding with ON, ON, ON, ON (sometimes more) but I need to get only once ON and once OFF. Ive tried to feed the output of the comparator to a Schmitt Trigger chip but I still get the same result. Is there anything simple I can add to improve? I'm open to any other solution as well.
I don't have the actual pump, I am testing with a small 12 Volts motor powered by an external supply.
Last edited: