Forever awake badge

Post your projects here
Post Reply
mikerr
Posts: 83
Joined: Fri Jul 31, 2015 10:37 am
Contact:

Forever awake badge

Post by mikerr » Tue Sep 01, 2015 8:57 am

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/
Twitter @mikered codebug profile mikerr

pigraham
Posts: 65
Joined: Sat Aug 15, 2015 1:41 pm

Re: Forever awake badge

Post by pigraham » Tue Sep 01, 2015 12:50 pm

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.

mikerr
Posts: 83
Joined: Fri Jul 31, 2015 10:37 am
Contact:

Re: Forever awake badge

Post by mikerr » Tue Sep 01, 2015 3:21 pm

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 !
Twitter @mikered codebug profile mikerr

Post Reply