SlideShare uma empresa Scribd logo
1 de 38
Baixar para ler offline
TITLE TEXT 
BATTERY LIFE 
STUART HARRELL
WHO IS THIS GUY? 
I’m an engineer on the firmware team. 
! 
I spend a lot of time working on battery life. 
! 
I also make Pebble apps (see right).
WHY YOU MIGHT CARE 
25% of customers say that battery life is important to 
them (will probably rise) 
! 
We may start telling customers about battery hogs (they 
don’t know) 
! 
???
OVERVIEW 
First 10 minutes — guessing game 
! 
Second 10 minute — getting more battery life in YOUR 
app 
! 
Last 10 minutes — interactive demo
GUESSING GAME
GUESS THE BATTERY LIFE 
1. Listen to scenario 
! 
2. Ponder carefully 
! 
3. Hold up fingers to show guess 
! 
4. Be yourself
PRACTICE ROUND! (MINUTE WATCH FACE) 
1. Less than 2 days 
! 
2. Between 3 and 5 days 
! 
3. Between 6 and 12 days 
! 
4. More than 12 days
PRACTICE ROUND! (MINUTE WATCH FACE) 
Answer is 4. More than 12 days. (14 days)
BACKLIGHT ON CONSTANTLY 
1. Less than 2 days 
! 
2. Between 3 and 5 days 
! 
3. Between 6 and 12 days 
! 
4. More than 12 days
BACKLIGHT ON CONSTANTLY 
Answer is 1. Less than 2 days. (4 hours)
WATCH FACE WITH SECONDS 
1. Less than 2 days 
! 
2. Between 3 and 5 days 
! 
3. Between 6 and 12 days 
! 
4. More than 12 days
WATCH FACE WITH SECONDS 
Answer is 3. Between 6 and 12 days. (9 days)
WATCH FACE WITH MINUTE ANIMATION 
1. Less than 2 days 
! 
2. Between 3 and 5 days 
! 
3. Between 6 and 12 days 
! 
4. More than 12 days
WATCH FACE WITH MINUTE ANIMATION 
Answer is 3. Between 6 and 12 days. 
(11 days)
WATCH FACE WITH MINUTE, BLUETOOTH OFF 
1. Less than 2 days 
! 
2. Between 3 and 5 days 
! 
3. Between 6 and 12 days 
! 
4. More than 12 days
WATCH FACE WITH MINUTE, BLUETOOTH OFF 
Answer is 4. More than 12 days. (36 days)
CONSTANT ANIMATION 
1. Less than 2 days 
! 
2. Between 3 and 5 days 
! 
3. Between 6 and 12 days 
! 
4. More than 12 days
CONSTANT ANIMATION 
Answer is 1. Less than 2 days. (1 day)
GRABBING WEATHER ONCE PER MINUTE 
1. Less than 2 days 
! 
2. Between 3 and 5 days 
! 
3. Between 6 and 12 days 
! 
4. More than 12 days
GRABBING WEATHER ONCE PER MINUTE 
Answer is 3. Between 6 and 12 days. (6 days)
GRABBING WEATHER ONCE PER SECOND 
1. Less than 2 days 
! 
2. Between 3 and 5 days 
! 
3. Between 6 and 12 days 
! 
4. More than 12 days
GRABBING WEATHER ONCE PER SECOND 
Answer is 1. Less than 2 days. (18 hours)
RECAP 
Backlight 
Constant Animation 
Bluetooth 
Tick Timer 
4 hours 
1 day at 30 fps 
6 days when using on minute 
18 hours when using on second 
36 days when turned off 
14 days with minute watch face 
9 days with second watch face
TIPS AND TRICKS THAT *YOU* CAN USE
BATCHING 
The CPU and bluetooth chip are power hogs 
! 
Every time the CPU wakes up, it has a system upkeep cost 
! 
Every time the bluetooth chip wakes up, it has to open the channel for 
communication and it remains in a high-power active mode for a short 
time
BATCH BLUETOOTH USAGE 
Sending app message on the minute = 6 day battery 
! 
! 
Sending app message on the second = 18 hours 
! 
! 
Sending 60 app messages on the minute = 6 day battery
BATCH ACCELEROMETER READINGS 
! 
100 Hz with 25 sample batches = 12 day battery (very small impact) 
! 
100 Hz with 1 sample batches = 8 day battery 
! 
! 
Above numbers are for when no processing is occurring. 
! 
Accelerometer cost = how much CPU is turned on
FPS MATTERS 
Rotating house 30fps = 1 day battery 
! 
Rotating house 10fps = 3 day battery 
! 
! 
More battery life or smoother animations? Which will 
your users prefer?
VERTICAL VS HORIZONTAL ANIMATIONS 
1-pixel row at 30fps = 5 day battery 
! 
1-pixel column at 30fps = 1 day battery 
! 
! 
! 
Why? Our display draws row-wise. 
! 
Consider trying to minimize the number of rows if you 
have a long-lasting animation
SECOND VS MINUTE WATCH FACES 
Simplicity with minutes = 14 days battery 
tick_timer_service_subscribe(MINUTE_UNIT, 
handle_minute_tick); 
! 
Simplicity with seconds = 9 days battery 
tick_timer_service_subscribe(SECOND_UNIT, 
handle_second_tick); 
! 
Power consumption is a mix between waking CPU and drawing to the 
display
DON’T LEAVE ON THE BACKLIGHT 
Will drain a fully charged battery in 4 hours 
! 
Be careful with light_enable 
! 
Consider giving users a choice if you do want to keep 
the backlight on 
! 
Don’t repeat my mistake!
SUMMARIZING 
Backlight 
Constant Animation 
Bluetooth 
Tick Timer 
Avoid light_enable 
Lower FPS and try to minimize the rows 
associated with the animation 
Batch calls that use bluetooth whenever 
possible 
Process data in larger batches (25) if your 
application permits 
Waking the CPU every second is more 
expensive then waking every minute 
Accelerometer
DEMO TIME
SCREENSHOT 1
SCREENSHOT 2
SCREENSHOT 3
NOW IT’S YOUR TURN 
Demo link: http://arcane-escarpment-6914.herokuapp.com 
! 
! 
! 
! 
Email me: stuart@getpebble.com 
! 
Tweet me: @StuartHarrell1
BLUETOOTH LE WORKSHOP 
11:00 
Martijn

Mais conteúdo relacionado

Semelhante a Battery Life | Pebble Developer Retreat 2014

How To Choose The Perfect Digital Camera For You
How To Choose The Perfect Digital Camera For You How To Choose The Perfect Digital Camera For You
How To Choose The Perfect Digital Camera For You gustyaffection876
 
Project and lean product management
Project and lean product managementProject and lean product management
Project and lean product managementGilles TOUSSAINT
 
Programmer, Ikaw ay Game jammer
Programmer, Ikaw  ay Game jammerProgrammer, Ikaw  ay Game jammer
Programmer, Ikaw ay Game jammerJulius Cebreros
 
Design Principal for Action on Google
Design Principal for Action on GoogleDesign Principal for Action on Google
Design Principal for Action on GoogleHoney Sharma
 

Semelhante a Battery Life | Pebble Developer Retreat 2014 (6)

How To Choose The Perfect Digital Camera For You
How To Choose The Perfect Digital Camera For You How To Choose The Perfect Digital Camera For You
How To Choose The Perfect Digital Camera For You
 
Project and lean product management
Project and lean product managementProject and lean product management
Project and lean product management
 
Learning101
Learning101Learning101
Learning101
 
Programmer, Ikaw ay Game jammer
Programmer, Ikaw  ay Game jammerProgrammer, Ikaw  ay Game jammer
Programmer, Ikaw ay Game jammer
 
Design Principal for Action on Google
Design Principal for Action on GoogleDesign Principal for Action on Google
Design Principal for Action on Google
 
Flat Panel Display
Flat Panel DisplayFlat Panel Display
Flat Panel Display
 

Mais de Pebble Technology

#PDR15 - Awesome Appstore Assets
#PDR15 - Awesome Appstore Assets#PDR15 - Awesome Appstore Assets
#PDR15 - Awesome Appstore AssetsPebble Technology
 
#PDR15 - Smartstrap Workshop
#PDR15 - Smartstrap Workshop#PDR15 - Smartstrap Workshop
#PDR15 - Smartstrap WorkshopPebble Technology
 
#PDR15 - Data Analytics and Pebble
#PDR15 - Data Analytics and Pebble#PDR15 - Data Analytics and Pebble
#PDR15 - Data Analytics and PebblePebble Technology
 
#PDR15 - Best Use Cases For Timeline
#PDR15 - Best Use Cases For Timeline#PDR15 - Best Use Cases For Timeline
#PDR15 - Best Use Cases For TimelinePebble Technology
 
#PDR15 - waf, wscript and Your Pebble App
#PDR15 - waf, wscript and Your Pebble App#PDR15 - waf, wscript and Your Pebble App
#PDR15 - waf, wscript and Your Pebble AppPebble Technology
 
#PDR15 Creating Pebble Apps for Aplite, Basalt, and Chalk
#PDR15 Creating Pebble Apps for Aplite, Basalt, and Chalk#PDR15 Creating Pebble Apps for Aplite, Basalt, and Chalk
#PDR15 Creating Pebble Apps for Aplite, Basalt, and ChalkPebble Technology
 
#PDR15 - Developing for Round
#PDR15 - Developing for Round#PDR15 - Developing for Round
#PDR15 - Developing for RoundPebble Technology
 
#PDR15 - Designing for Pebble
#PDR15 - Designing for Pebble#PDR15 - Designing for Pebble
#PDR15 - Designing for PebblePebble Technology
 
Overlay Technique | Pebble Developer Retreat 2014
Overlay Technique | Pebble Developer Retreat 2014Overlay Technique | Pebble Developer Retreat 2014
Overlay Technique | Pebble Developer Retreat 2014Pebble Technology
 
Overlay & Libraries | Pebble Meetup Oct. 2014
Overlay & Libraries | Pebble Meetup Oct. 2014Overlay & Libraries | Pebble Meetup Oct. 2014
Overlay & Libraries | Pebble Meetup Oct. 2014Pebble Technology
 
Connecting Pebble to the World
Connecting Pebble to the WorldConnecting Pebble to the World
Connecting Pebble to the WorldPebble Technology
 
Guest Presentation - Strap | Pebble Developer Retreat 2014
Guest Presentation - Strap | Pebble Developer Retreat 2014Guest Presentation - Strap | Pebble Developer Retreat 2014
Guest Presentation - Strap | Pebble Developer Retreat 2014Pebble Technology
 
Thomas Sarlandie Kickoff Talk | Pebble Developer Retreat 2014
Thomas Sarlandie Kickoff Talk | Pebble Developer Retreat 2014Thomas Sarlandie Kickoff Talk | Pebble Developer Retreat 2014
Thomas Sarlandie Kickoff Talk | Pebble Developer Retreat 2014Pebble Technology
 
Advanced Techniques: Graphics | Pebble Developer Retreat 2014
Advanced Techniques: Graphics | Pebble Developer Retreat 2014Advanced Techniques: Graphics | Pebble Developer Retreat 2014
Advanced Techniques: Graphics | Pebble Developer Retreat 2014Pebble Technology
 

Mais de Pebble Technology (20)

#PDR15 - Awesome Appstore Assets
#PDR15 - Awesome Appstore Assets#PDR15 - Awesome Appstore Assets
#PDR15 - Awesome Appstore Assets
 
#PDR15 - Smartstrap Workshop
#PDR15 - Smartstrap Workshop#PDR15 - Smartstrap Workshop
#PDR15 - Smartstrap Workshop
 
#PDR15 - Data Analytics and Pebble
#PDR15 - Data Analytics and Pebble#PDR15 - Data Analytics and Pebble
#PDR15 - Data Analytics and Pebble
 
#PDR15 - Best Use Cases For Timeline
#PDR15 - Best Use Cases For Timeline#PDR15 - Best Use Cases For Timeline
#PDR15 - Best Use Cases For Timeline
 
#PDR15 - waf, wscript and Your Pebble App
#PDR15 - waf, wscript and Your Pebble App#PDR15 - waf, wscript and Your Pebble App
#PDR15 - waf, wscript and Your Pebble App
 
#PDR15 - PebbleKit iOS 3.0
#PDR15 - PebbleKit iOS 3.0#PDR15 - PebbleKit iOS 3.0
#PDR15 - PebbleKit iOS 3.0
 
#PDR15 - Voice API
#PDR15 - Voice API#PDR15 - Voice API
#PDR15 - Voice API
 
#PDR15 - Pebble Graphics
#PDR15 - Pebble Graphics#PDR15 - Pebble Graphics
#PDR15 - Pebble Graphics
 
#PDR15 Creating Pebble Apps for Aplite, Basalt, and Chalk
#PDR15 Creating Pebble Apps for Aplite, Basalt, and Chalk#PDR15 Creating Pebble Apps for Aplite, Basalt, and Chalk
#PDR15 Creating Pebble Apps for Aplite, Basalt, and Chalk
 
#PDR15 - Developing for Round
#PDR15 - Developing for Round#PDR15 - Developing for Round
#PDR15 - Developing for Round
 
#PDR15 - Designing for Pebble
#PDR15 - Designing for Pebble#PDR15 - Designing for Pebble
#PDR15 - Designing for Pebble
 
#PDR15 Kick-Off
#PDR15 Kick-Off#PDR15 Kick-Off
#PDR15 Kick-Off
 
Pebble Slate Workshop
Pebble Slate WorkshopPebble Slate Workshop
Pebble Slate Workshop
 
Overlay Technique | Pebble Developer Retreat 2014
Overlay Technique | Pebble Developer Retreat 2014Overlay Technique | Pebble Developer Retreat 2014
Overlay Technique | Pebble Developer Retreat 2014
 
Overlay & Libraries | Pebble Meetup Oct. 2014
Overlay & Libraries | Pebble Meetup Oct. 2014Overlay & Libraries | Pebble Meetup Oct. 2014
Overlay & Libraries | Pebble Meetup Oct. 2014
 
Connecting Pebble to the World
Connecting Pebble to the WorldConnecting Pebble to the World
Connecting Pebble to the World
 
Guest Presentation - Strap | Pebble Developer Retreat 2014
Guest Presentation - Strap | Pebble Developer Retreat 2014Guest Presentation - Strap | Pebble Developer Retreat 2014
Guest Presentation - Strap | Pebble Developer Retreat 2014
 
Thomas Sarlandie Kickoff Talk | Pebble Developer Retreat 2014
Thomas Sarlandie Kickoff Talk | Pebble Developer Retreat 2014Thomas Sarlandie Kickoff Talk | Pebble Developer Retreat 2014
Thomas Sarlandie Kickoff Talk | Pebble Developer Retreat 2014
 
Advanced Techniques: Graphics | Pebble Developer Retreat 2014
Advanced Techniques: Graphics | Pebble Developer Retreat 2014Advanced Techniques: Graphics | Pebble Developer Retreat 2014
Advanced Techniques: Graphics | Pebble Developer Retreat 2014
 
Pebble wearables devcon
Pebble wearables devconPebble wearables devcon
Pebble wearables devcon
 

Último

MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKJago de Vreede
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusZilliz
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsNanddeep Nachan
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfOverkill Security
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxRustici Software
 

Último (20)

MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdf
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 

Battery Life | Pebble Developer Retreat 2014

  • 1. TITLE TEXT BATTERY LIFE STUART HARRELL
  • 2. WHO IS THIS GUY? I’m an engineer on the firmware team. ! I spend a lot of time working on battery life. ! I also make Pebble apps (see right).
  • 3. WHY YOU MIGHT CARE 25% of customers say that battery life is important to them (will probably rise) ! We may start telling customers about battery hogs (they don’t know) ! ???
  • 4. OVERVIEW First 10 minutes — guessing game ! Second 10 minute — getting more battery life in YOUR app ! Last 10 minutes — interactive demo
  • 6. GUESS THE BATTERY LIFE 1. Listen to scenario ! 2. Ponder carefully ! 3. Hold up fingers to show guess ! 4. Be yourself
  • 7. PRACTICE ROUND! (MINUTE WATCH FACE) 1. Less than 2 days ! 2. Between 3 and 5 days ! 3. Between 6 and 12 days ! 4. More than 12 days
  • 8. PRACTICE ROUND! (MINUTE WATCH FACE) Answer is 4. More than 12 days. (14 days)
  • 9. BACKLIGHT ON CONSTANTLY 1. Less than 2 days ! 2. Between 3 and 5 days ! 3. Between 6 and 12 days ! 4. More than 12 days
  • 10. BACKLIGHT ON CONSTANTLY Answer is 1. Less than 2 days. (4 hours)
  • 11. WATCH FACE WITH SECONDS 1. Less than 2 days ! 2. Between 3 and 5 days ! 3. Between 6 and 12 days ! 4. More than 12 days
  • 12. WATCH FACE WITH SECONDS Answer is 3. Between 6 and 12 days. (9 days)
  • 13. WATCH FACE WITH MINUTE ANIMATION 1. Less than 2 days ! 2. Between 3 and 5 days ! 3. Between 6 and 12 days ! 4. More than 12 days
  • 14. WATCH FACE WITH MINUTE ANIMATION Answer is 3. Between 6 and 12 days. (11 days)
  • 15. WATCH FACE WITH MINUTE, BLUETOOTH OFF 1. Less than 2 days ! 2. Between 3 and 5 days ! 3. Between 6 and 12 days ! 4. More than 12 days
  • 16. WATCH FACE WITH MINUTE, BLUETOOTH OFF Answer is 4. More than 12 days. (36 days)
  • 17. CONSTANT ANIMATION 1. Less than 2 days ! 2. Between 3 and 5 days ! 3. Between 6 and 12 days ! 4. More than 12 days
  • 18. CONSTANT ANIMATION Answer is 1. Less than 2 days. (1 day)
  • 19. GRABBING WEATHER ONCE PER MINUTE 1. Less than 2 days ! 2. Between 3 and 5 days ! 3. Between 6 and 12 days ! 4. More than 12 days
  • 20. GRABBING WEATHER ONCE PER MINUTE Answer is 3. Between 6 and 12 days. (6 days)
  • 21. GRABBING WEATHER ONCE PER SECOND 1. Less than 2 days ! 2. Between 3 and 5 days ! 3. Between 6 and 12 days ! 4. More than 12 days
  • 22. GRABBING WEATHER ONCE PER SECOND Answer is 1. Less than 2 days. (18 hours)
  • 23. RECAP Backlight Constant Animation Bluetooth Tick Timer 4 hours 1 day at 30 fps 6 days when using on minute 18 hours when using on second 36 days when turned off 14 days with minute watch face 9 days with second watch face
  • 24. TIPS AND TRICKS THAT *YOU* CAN USE
  • 25. BATCHING The CPU and bluetooth chip are power hogs ! Every time the CPU wakes up, it has a system upkeep cost ! Every time the bluetooth chip wakes up, it has to open the channel for communication and it remains in a high-power active mode for a short time
  • 26. BATCH BLUETOOTH USAGE Sending app message on the minute = 6 day battery ! ! Sending app message on the second = 18 hours ! ! Sending 60 app messages on the minute = 6 day battery
  • 27. BATCH ACCELEROMETER READINGS ! 100 Hz with 25 sample batches = 12 day battery (very small impact) ! 100 Hz with 1 sample batches = 8 day battery ! ! Above numbers are for when no processing is occurring. ! Accelerometer cost = how much CPU is turned on
  • 28. FPS MATTERS Rotating house 30fps = 1 day battery ! Rotating house 10fps = 3 day battery ! ! More battery life or smoother animations? Which will your users prefer?
  • 29. VERTICAL VS HORIZONTAL ANIMATIONS 1-pixel row at 30fps = 5 day battery ! 1-pixel column at 30fps = 1 day battery ! ! ! Why? Our display draws row-wise. ! Consider trying to minimize the number of rows if you have a long-lasting animation
  • 30. SECOND VS MINUTE WATCH FACES Simplicity with minutes = 14 days battery tick_timer_service_subscribe(MINUTE_UNIT, handle_minute_tick); ! Simplicity with seconds = 9 days battery tick_timer_service_subscribe(SECOND_UNIT, handle_second_tick); ! Power consumption is a mix between waking CPU and drawing to the display
  • 31. DON’T LEAVE ON THE BACKLIGHT Will drain a fully charged battery in 4 hours ! Be careful with light_enable ! Consider giving users a choice if you do want to keep the backlight on ! Don’t repeat my mistake!
  • 32. SUMMARIZING Backlight Constant Animation Bluetooth Tick Timer Avoid light_enable Lower FPS and try to minimize the rows associated with the animation Batch calls that use bluetooth whenever possible Process data in larger batches (25) if your application permits Waking the CPU every second is more expensive then waking every minute Accelerometer
  • 37. NOW IT’S YOUR TURN Demo link: http://arcane-escarpment-6914.herokuapp.com ! ! ! ! Email me: stuart@getpebble.com ! Tweet me: @StuartHarrell1
  • 38. BLUETOOTH LE WORKSHOP 11:00 Martijn