Problem:
PCF8574 is not switching Q1 transistor correctly.
Circuit description:
I am having issue with circuit which is being used to measure low resistance (0-240 Ohm). Resistance measurement part (left side seems to be working fine). However in order to save energy usage I would like to be able open and close this circuit on GND side using NPN transistor/N channel MOSFET driven by PCF8574 pin expander.
Unfortunately PCF8574 is not able to switch Q1 transistor correctly. It get stuck either in close or open state.
I read that PCF8574 cannot provide too much current however in low state it can sink current up to 20mA.
So I decided to use Pull-up resistor. However Q1 transistior is not switching at all. I tried BC847 NPN transistor and IRLZ44N logic level MOSFET with different R4 values 470R/1k etc.
Unfortunatelly due to other reasons high side switching is not an option.
Circuit elements:
Left side - resistance measurment side - (Voltage divider circuit with 3.3V power source)
- C1 - Noise reduction capacitor
- D1, R1 - Microcontroller pin overvoltage protection
- R2 - Current supply limiter
- J1 - Socket to comnect resistance sensor (resistance will change between 0-240 Ohm)
Right side - responsible for sink switching (NPN transistor driven by PCF8524 should open and close circuit)
- Q1 - Low side NPN transistor or N-channel MOSFET. Used to open and close measurement circuit in order to limit energy usage
- R3 - PCF8574 pin current limiting resistor (should limit current to 15mA)
- R4 - VCC Pullup resistor
I will be really grateful for any help.