You're building a battery-powered sensor node that has to run for a year on a small battery. What firmware techniques would you use to make the battery last?

technical-conceptual · Junior level · software-engineering, embedded-iot

What the interviewer is really asking

Assesses practical understanding of low-power firmware design — duty cycling, sleep modes, interrupt-driven wakeups, and measuring the power budget — rather than reciting datasheet numbers.

What to say

What to avoid

Example answers

Strong: I'd keep the node in deep sleep almost all the time, drawing microamps, and wake on a low-power timer or a sensor interrupt to take a reading and transmit. The radio burst usually dominates, so I'd batch readings and transmit less often. I'd put a current meter on each state, work out the duty-cycle-weighted average, and check it against the battery's capacity to confirm a year is realistic.

Weak: I'd lower the clock speed and write efficient code so the CPU uses less power, and pick a bigger battery if it's not enough.

Want questions matched to your role? Paste a job title, job description, or CV and get a personalized set, or go Pro to unlock the full bank.