The codebug by default goes to sleep & turns the display off after 3 minutes.
Not ideal for wearable badges!
Simple enough to change (when you know how) by clicking the cog on the start icon,
then selecting "sleep after" and "never".
here's a quick sample project:
http://www.codebug.co.uk/explore/codebu ... ake-badge/
Forever awake badge
Re: Forever awake badge
It would be nie to have a wake option. If CodeBug could wake up every minute, hour or day that might open up some interesting possibilities, even if timer accuracy isn't great. If a leg input could wake the PIC that would be a bonus.
The pause function doesn't enter low power mode.
I measure (from 3V supply):
All LEDs on busy loop 20mA
Sleep 15 uA
Pause (LEDs off) 1.35mA
Busy loop 2.59mA
Once the bug is asleep it seems only a button press will wake it up.
If you want an always on badge it might be worth having a pause in the loop with LEDs off if using battery power.
while
Scroll sprite
pause 5000
Active scrolling display draws about 10 time the current compared to pause.
The pause function doesn't enter low power mode.
I measure (from 3V supply):
All LEDs on busy loop 20mA
Sleep 15 uA
Pause (LEDs off) 1.35mA
Busy loop 2.59mA
Once the bug is asleep it seems only a button press will wake it up.
If you want an always on badge it might be worth having a pause in the loop with LEDs off if using battery power.
while
Scroll sprite
pause 5000
Active scrolling display draws about 10 time the current compared to pause.
Re: Forever awake badge
Interesting measurements - I hadn't seen those before
So total battery life assuming an average CR2032 is around 200mAh :
Worst case: All LEDs on in busy loop 20ma = 10 hours
Pause (LEDs off) : 1.35mA = 6 days
Busy loop: 2.59mA = 3 days
Sleep mode at 15uA would last nearly 2 years !
So total battery life assuming an average CR2032 is around 200mAh :
Worst case: All LEDs on in busy loop 20ma = 10 hours
Pause (LEDs off) : 1.35mA = 6 days
Busy loop: 2.59mA = 3 days
Sleep mode at 15uA would last nearly 2 years !