Hello,
I am working in a microcontroller operated cattle autofeeder, with solar energy.
Everything work nice.
I want to save the 26 mA that my HC05 drains.
The BT is used only two minutes at startup routine. So it listens a cell phone connection to read the new work parameters, which are immediately written to EEPROM.
If BT comms is not received, the system has a timeout routine and default to read the last know params from the EEPROM.
I have different options to disconnect HC05.
-
To feed it from a PIN, that UNO datasheet says can provide 40 mA, then when startup routine finishes turn off power to HC05.
-
To use an external relay (or optocoupler) to disconnect, and drain less current from PIN. An optocoupler driving a little MOSFET, with VCC of HC05 connected to +5Volt and ground connected to MOSFET drain should work, and is electrically isolated cheap solution.
-
To use some sort of software handled "sleep mode"
Any advice ?
Thanks a lot,
Horacio