Hi,
I would like to ask for the expertise of someone firmly on the subject of esp32 based devices (although pretty much any battery powered device).
I am prototyping a device that is powered by LiPo cells and would ultimately like to have a single uSwitch responsible for controlling it. The schematic of the ON/OFF/Multifunction button would look like this
Hold - ON/OFF
Short press - switching between operating modes, in this case the instruction to the ESP which then controls the 0%/50%/100%/STROBO output
From my research, I could use the Deep Sleep mode and have the device wake up (ON/OFF) and in this case the button would serve as a multifunction because the ESP would be able to verify the current state and duration of the button press by the user and on this basis control not only ON/OFF but also switching between modes.
A second, more optimal way under battery conditions is i.e. a latching circuit that completely cuts off power to the circuit. But in this case, there is no need to use the button as a multifunction or at least to switch off the device by holding it down; such a solution is better in terms of battery life, but would probably require adding another button responsible for the rest of the functionality to the design.
Please show me the way, because as far as I know almost every battery powered device from a torch to a phone uses ON/OFF functions via uSwitch and if I want to use ESP32 is it best to use Deep Sleep mode as the off mode of the device? Such a mode will draw according to the datasheet 15uA + loss on the LDO still running. Is this how it is done? Is this how every manufacturer of a device based on a microchip and activated from the uSwitch does it?
I would like to ask for the expertise of someone firmly on the subject of esp32 based devices (although pretty much any battery powered device).
I am prototyping a device that is powered by LiPo cells and would ultimately like to have a single uSwitch responsible for controlling it. The schematic of the ON/OFF/Multifunction button would look like this
Hold - ON/OFF
Short press - switching between operating modes, in this case the instruction to the ESP which then controls the 0%/50%/100%/STROBO output
From my research, I could use the Deep Sleep mode and have the device wake up (ON/OFF) and in this case the button would serve as a multifunction because the ESP would be able to verify the current state and duration of the button press by the user and on this basis control not only ON/OFF but also switching between modes.
A second, more optimal way under battery conditions is i.e. a latching circuit that completely cuts off power to the circuit. But in this case, there is no need to use the button as a multifunction or at least to switch off the device by holding it down; such a solution is better in terms of battery life, but would probably require adding another button responsible for the rest of the functionality to the design.
Please show me the way, because as far as I know almost every battery powered device from a torch to a phone uses ON/OFF functions via uSwitch and if I want to use ESP32 is it best to use Deep Sleep mode as the off mode of the device? Such a mode will draw according to the datasheet 15uA + loss on the LDO still running. Is this how it is done? Is this how every manufacturer of a device based on a microchip and activated from the uSwitch does it?