Arduino sleep mode accelerometer
ok im trying make put arduino sleep wake arduino when accelerometer moved. log time moved at, go sleep if no movement 5 minutes.
any ideas on how program this?
the thing concerns me if accelerometer need constant 5 volts able send code wake arduino up, therefor defeting perpose of putting sleep in first place
any ideas on how program this?
the thing concerns me if accelerometer need constant 5 volts able send code wake arduino up, therefor defeting perpose of putting sleep in first place
quote
any ideas on how program this?
there few examples available on internet show how put processor sleep. here 2 started with...
http://www.arduino.cc/playground/learning/arduinosleepcode
http://interface.khm.de/index.php/lab/experiments/sleep_watchdog_battery/
the processor can wakened interrupt. if accelerometer has way of generating interrupt (a serial recieve may it), want may work.
quote
log time moved at
save great headache. plan include real-time clock.
quote
the thing concerns me if accelerometer need constant 5 volts able send code wake arduino up, therefor defeting perpose of putting sleep in first place
if goal run batteries every little bit helps.
a few caveats...
- the deeper sleep modes turn off processor's clock (which may disable serial port , definately stops millis counter)
- it can take serveral clock cycles processor wake. the processor may not wake fast enough catch first bit of data accelerometer.
- the watchdog oscillator not reliable source of time. temperature , load affect dramatically. and when stable still has jitter , drift.
Arduino Forum > Forum 2005-2010 (read only) > Software > Syntax & Programs > Arduino sleep mode accelerometer
arduino
Comments
Post a Comment