arduino:low_power
This is an old revision of the document!
standartinis arduino uno
Jei naudoji 3.7v li-ion baterija, sugebejau gauti 3ma miegojimo rezime, turi buti geriau bet nezinau kaip. Darbo rezime apie 11ma, cia islitavus power leda.
naudojau sita biblioteka
https://github.com/rocketscream/Low-Power
jei baterija yra 3200 mah tai miegoti arduino galetu 1066 val = 44 dienas
internete raso kad 0.1ma galima pasiekti.
// **** INCLUDES ***** #include "LowPower.h" void setup() { // No setup is required for this library pinMode(LED_BUILTIN, OUTPUT); digitalWrite(LED_BUILTIN, LOW); } void loop() { // Enter idle state for 8 s with the rest of peripherals turned off // Each microcontroller comes with different number of peripherals // Comment off line of code where necessary // ATmega328P, ATmega168 LowPower.idle(SLEEP_8S, ADC_OFF, TIMER2_OFF, TIMER1_OFF, TIMER0_OFF, SPI_OFF, USART0_OFF, TWI_OFF); // ATmega32U4 //LowPower.idle(SLEEP_8S, ADC_OFF, TIMER4_OFF, TIMER3_OFF, TIMER1_OFF, // TIMER0_OFF, SPI_OFF, USART1_OFF, TWI_OFF, USB_OFF); // ATmega2560 //LowPower.idle(SLEEP_8S, ADC_OFF, TIMER5_OFF, TIMER4_OFF, TIMER3_OFF, // TIMER2_OFF, TIMER1_OFF, TIMER0_OFF, SPI_OFF, USART3_OFF, // USART2_OFF, USART1_OFF, USART0_OFF, TWI_OFF); // ATmega256RFR2 //LowPower.idle(SLEEP_8S, ADC_OFF, TIMER5_OFF, TIMER4_OFF, TIMER3_OFF, // TIMER2_OFF, TIMER1_OFF, TIMER0_OFF, SPI_OFF, // USART1_OFF, USART0_OFF, TWI_OFF); // Do something here // Example: Read sensor, data logging, data transmission. digitalWrite(LED_BUILTIN, HIGH); delay(2000) ; digitalWrite(LED_BUILTIN, LOW); }
arduino/low_power.1502182369.txt.gz · Last modified: by aistis
