Esp deepsleep
freq ( 160000000 ) # Set the operating frequency The parameter can be set as 20MHz, 40MHz, 80Mhz, 160MHz ,240MHz freq ( ) # Query running frequency # The default is 160MHZ Change the frequency of operation, In the case of saving power consumption, it can be adjusted CPU Operating frequency, But it may also affect some instructions after timing encapsulation after frequency adjustment, So try to use, If there is an exception, first adjust it back to the default frequency ~.reset_cause ( ) # Reset reason : Return to digital 1-5 ,1-5 See the following description for the meaningĢ machine. Command restart command, This is the remedy for encountering exceptions, Because of strong initiative, put it in the first place.
Esp deepsleep how to#
This record is about low power consumption, which tends to be low-level control, A lot of use machine modular, And how to wake up the scattered records kept with data. My firmware version this time is 2021 year 9 Firmware version of month, It has been proved that 2018 The firmware in cannot support the following.
First of all, this record MICROPYTHON stay ESP32 Records in the environment, Here you need to declare what you use micropython The firmware version of should not be too old, According to my experience, Some early firmware does not support the following tests, Or does not have the corresponding function, Firmware is generally new and good, New features and less BUG, Unlike language, Too new version will cause compatibility problems.