Turn off mq7on esp32

Hi i need tu turn off mq7 in esp32. Its posible to make with rele?
Its posible to used One pin for gnd and used high or low to turn off or turn onn?
Thanks a lot

Hi @jazpiroz,

MQ7 as in the gas sensor?


Try a n-channel MOSFET or any other transistor. Is the only thing you have, a relay? You could use a relay, with the power pin of the MQ7 attached to the COM on the relay, and the power attached to either of the other pins, with the relay input leading to an unused esp32 pin.

The idea is consume low energy .

Oh. Ok. If you have a NPN transistor or a N-Channel transistor, wire them like this:

Screen Shot 2021-08-30 at 2.29.13 PM

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.