sim- / tgy

tgy -- Open Source Firmware for ATmega-based Brushless ESCs
http://0x.ca/tgy/
686 stars 388 forks source link

enabled low-power sleep mode #98

Closed msperl closed 8 years ago

msperl commented 8 years ago

This can get enabled via .equ USE_SLEEP = X USE_SLEEP = 1 enables idle sleep USE_SLEEP = 2 enables ADC sleep

Here some effective measurements on a tgy.inc style board:

The USE_SLEEP = 2 implements a timer2 emulation via the ADC-ISR for reduced powerconsumption (using extended conversions), but this can not be enabled with USE_UART because there is no wakeup from deeper sleep modes than IDLE for the UART.

For I2C ONLY it would be possible to run in an even deeper sleep mode, that could bring us down to 29.6mA when unarmed.

msperl commented 8 years ago

I am working on continuous (glitch free) ADC sampling solution, where the sleep portion comes for (almost) free, so I close this request...