Skip to content
Shop

Low-power design

Explore with your favorite AI

Gemini & other AI

Copy this page’s context into your AI to explore how it works and what you can build.

Open Gemini

Copy the prompt, then paste it into Gemini’s message box.

View prompt

Leafony is designed for compact, battery-powered systems. Runtime depends on the complete circuit, its program and its power supply. Start by identifying where energy is spent, then measure the assembled device.

For a constant voltage and current, power is P = V × I. One watt is one volt times one ampere. Energy is power multiplied by time: 1 Wh = 1 W × 1 h.

For switching in a digital circuit, a simplified model is P = α × C × V² × f, where C is load capacitance, V is supply voltage, f is clock frequency, and α is the number of charging events per clock cycle. This excludes leakage and short-circuit current. Lowering frequency can reduce instantaneous power, but also changes how long a task takes, so measure energy for the whole task.

LeafMain deviceConditions to compare
AP01 AVR MCUATmega328PClock frequency, active and sleep states, enabled peripherals
AP03 STM32 MCUSTM32L452REI616 / 80 MHz, run / sleep / stop, RTC and other peripherals
AI01 4-SensorsHTS221TR, OPT3001, LIS2DHTRMeasurement interval, continuous / single measurement / power-down
AC02 BLE SugarBGM11S22F256GA-V2Transmit power, interval, connection / beacon / sleep

Follow the specifications and schematic links in each reference page, then consult the component data sheets at the actual supply voltage, temperature and operating mode. This table identifies what to investigate; it is not a table of measured current. Include LEDs, resistors and power converters when measuring a complete leaf.

Record the leaf model and revision, firmware, supply voltage, instrument, temperature, mode, measurement interval and average current. Distinguish typical values from maximum values, and data-sheet values from measurements.

Battery charge capacity is measured in ampere-hours: 1 Ah = 1 A × 1 h. Multiply by nominal voltage to estimate stored energy. The following are assumed values for arithmetic examples, not specifications for all products:

Example batteryAssumed nominal voltage and capacityNominal energy
CR2032 coin cell3.0 V, 220 mAh660 mWh
AA nickel-metal hydride cell1.2 V, 2,000 mAh2,400 mWh
Lithium-ion cell3.7 V, 3,000 mAh11,100 mWh

A constant 3.3 V, 100 mA load consumes 330 mW. Under the assumptions above, a 660 mWh battery gives 660 / 330 = 2 h; a 2,400 mWh battery gives approximately 7.3 h.

Assume a circuit draws 100 mA for one minute each hour and 1 mA for the remaining 59 minutes, all at 3.3 V.

Average current = 100 mA × 1/60 + 1 mA × 59/60 = 2.65 mA
Average power = 3.3 V × 2.65 mA = 8.745 mW
Energy used in one hour = 8.745 mWh
Ideal runtime = 660 mWh / 8.745 mW ≈ 75.5 h ≈ 3.14 days

This is a theoretical example, not a measured Leafony runtime.

  • Lower the MCU clock when the workload allows it. The STM32 PlatformIO guide explains the 16 MHz setting.
  • Put sensors and unused peripherals into sleep or power-down modes between readings.
  • Use interrupts to wake the CPU only when needed.
  • Increase measurement or radio intervals when the application permits it.

The STM32 Logger Beacon sample demonstrates these techniques.

  1. Record the leaves, firmware, battery and voltage.
  2. Measure current on the battery side over a complete cycle, including startup, sensing, radio transmission and sleep. Check that the instrument’s voltage drop does not affect operation.
  3. Average current over time. If voltage changes, average the product of voltage and current to obtain average power.
  4. Change one setting at a time and compare with the estimate.
  5. Verify runtime using the intended battery and operating temperature.

Only the arithmetic examples have been checked for this revision. No hardware test date, instrument record or verified firmware revision is recorded for this page.