questions about putting an ATtiny85 to sleep indefinately untill reset.


hi everyone

attached code have written timer freeflight model aeroplanes.

it uses attiny85 powered 1 lipo cell drive motor activates dethermalizer mechanism on aeroplane.


the code works far, have go sleep when has triggered or when voltage low, untill reset button pressed. reset uses attiny's reset pin.

i borrowed sleep code jack christensen.

i measure battery voltage code here: http://provideyourown.com/2012/secret-arduino-voltmeter-measure-battery-voltage/



in jacks sleep code, disables adc. persist after reset? have enable in setup each time?


i have had go @ adding sleep code , wandering if have implemented correctly. not need wake on interrupt, use reset start program again each time. cant test yet waiting new attiny's arrive

any advice appreciated.




Arduino Forum > Using Arduino > Programming Questions > questions about putting an ATtiny85 to sleep indefinately untill reset.


arduino

Comments

Popular posts from this blog

invalid use of void expresion in FlexiTimer2 library

error: a function-definition is not allowed here before '{' token

LED Strip Code