Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Low-power Stop2 mode #45

Merged
merged 1 commit into from
Sep 9, 2022
Merged

Low-power Stop2 mode #45

merged 1 commit into from
Sep 9, 2022

Conversation

Praneethsvch
Copy link
Collaborator

New sleep feature - Stop 2

Stop 2 mode has been implemented. Wake-up when the TxTimer in LoRaWAN/lora_app.c is triggered. Before and after Sleep Hook following are implemented:

  • LPUART1 deInit and Init - used by MaxBotix
  • UART2 debugging has been disabled to achieve lowest power - Serial port debug output (if needed enable debugging in Inc/sys_conf.h)
  • GPIOs are configured Analog before every sleep and only necessary ones are initialized upon wake-up to save power
  • ADC works - verified reading using OTII - 0.1 V inaccuracy see issue ADC inaccuracy - new prototype #41

Following is the power consumption analysis before (green) after (purple). Seeing beautiful micros!

Sleep consumption numbers:

Screen Shot 2022-09-09 at 7 10 00 PM

Avg few minutes (1 min duty cycle):

Screen Shot 2022-09-09 at 7 26 12 PM

Todo

  • ADC deinit and Init. Calibration upon RESET only and save values to FLASH as state isn't preserved
  • LED is disabled currently when powered on in STOP2 -> enable until join only. To enable Write LED_Pin High and enable clock for LED_Port. Redo the same after wake-up as the state is not preserved
  • Solar charger IC on while STOP 2 sleep -> Similar to LED write high and enable CLK before sleep

@Praneethsvch Praneethsvch merged commit 11ac582 into e5-main Sep 9, 2022
@Praneethsvch Praneethsvch deleted the Features branch April 25, 2023 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant