How to switch on/off sensor modules before deep sleep
Posted: Fri Jun 28, 2019 6:29 pm
I looked through all the forums, relevant pages, youtube videos but did not find a solution to my problem. I have a NodeMCU 32-S development board connected with a Waveshare 9528 (MQ135) gas sensor module. I created the software codes in Arduino IDE and it is working perfectly since I'm a developer BUT I do not know how can I switch off/on this module? I like to use this from battery power and I know I have to switch everything (which is possible) off to conserve the battery power.
I connected the module on the following way:
ESP32 VIN - 9528 VCC
ESP32 GND - 9528 GND
ESP32 GPIO32 - 9528 AOUT
ESP32 GPIO4 - this would be the controller of the switch...
I'm a newbie in electronics. But tried with the 2N2222 transistor it not worked for me. Now I'm trying it with a IRLB8743 mosfet. But it is not working either
If you have any tips or suggestions how to create this kind of simple thing I would be really happy.
Thank you.
I connected the module on the following way:
ESP32 VIN - 9528 VCC
ESP32 GND - 9528 GND
ESP32 GPIO32 - 9528 AOUT
ESP32 GPIO4 - this would be the controller of the switch...
I'm a newbie in electronics. But tried with the 2N2222 transistor it not worked for me. Now I'm trying it with a IRLB8743 mosfet. But it is not working either
If you have any tips or suggestions how to create this kind of simple thing I would be really happy.
Thank you.