CMOS
Advanced Member level 3
lm324 current sensing
I am working on a microcontroller based project in which I need to sense current flowing through a load. If the current increases beyond 30mA, I need to interrupt the uC using high to low transistion. I tried making difference amplifier using LM324 to amplify the drop created across 1Ω resistor inserted series with the load. The difference amp. is followed by a comparator. But it does not work as the maximum output LM324 can give is near 3.5V at Vcc=5V. I need atleast 4V output so as to be on safe side and avoid false interrupt caused due to logic 1 being recognised at logic 0 near thresholds.
I know I can do i using rail-to-rail output op-amp like TLC2272 but those are costly and difficult to find in the local market.
Can anyone help me in designing this using low cost methods?
I am working on a microcontroller based project in which I need to sense current flowing through a load. If the current increases beyond 30mA, I need to interrupt the uC using high to low transistion. I tried making difference amplifier using LM324 to amplify the drop created across 1Ω resistor inserted series with the load. The difference amp. is followed by a comparator. But it does not work as the maximum output LM324 can give is near 3.5V at Vcc=5V. I need atleast 4V output so as to be on safe side and avoid false interrupt caused due to logic 1 being recognised at logic 0 near thresholds.
I know I can do i using rail-to-rail output op-amp like TLC2272 but those are costly and difficult to find in the local market.
Can anyone help me in designing this using low cost methods?