Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Power optimization - enable the DC/DC regulator. #1755

Merged
merged 1 commit into from
Jun 4, 2023

Conversation

JF002
Copy link
Collaborator

@JF002 JF002 commented May 7, 2023

The DC/DC regulator reduce the power consumption of the MCU compared to the default LDO regulator. The DC/DC regulator needs additional HW that is mounted on the PineTime.

This change reduces the power usage by 380µA during fast advertising, by 200µA during slow advertising and by 186µA when BLE is disabled.

The DC/DC regulator reduce the power consumption of the MCU compared to the default LDO regulator. The DC/DC regulator needs additional HW that is mounted on the PineTime.

This change reduces the power usage by 380µA during fast advertising, by 200µA during slow advertising and by 186µA when BLE is disabled.
@JF002 JF002 added the enhancement Enhancement to an existing app/feature label May 7, 2023
@github-actions
Copy link

github-actions bot commented May 7, 2023

Build size and comparison to main:

Section Size Difference
text 407660B 0B
data 940B 0B
bss 54136B 0B

@JF002 JF002 mentioned this pull request May 7, 2023
@aykevl
Copy link

aykevl commented May 7, 2023

Apparently this is supported in Mynewt - but not in FreeRTOS I guess:

https://github.com/apache/mynewt-core/blob/24d9c3b3c1699fba734a2dc3e37935ff27ee04e3/hw/bsp/pinetime/syscfg.yml#L54

    # Enable DC/DC regulator
    MCU_DCDC_ENABLED: 1

[...] and by 186µA when BLE is disabled.

If DCDCEN has any effect, it means that something is still draining power: DCDCEN does not (significantly) reduce current consumption when the nrf52832 is fully asleep. (But I guess the other PRs should help with that).

mark9064 added a commit to mark9064/InfiniTime that referenced this pull request May 8, 2023
commit d863d1c
Author: Jean-François Milants <jf@codingfield.com>
Date:   Sun May 7 18:15:33 2023 +0200

    Power optimization - enable the DC/DC regulator.

    The DC/DC regulator reduce the power consumption of the MCU compared to the default LDO regulator. The DC/DC regulator needs additional HW that is mounted on the PineTime.

    This change reduces the power usage by 380µA during fast advertising, by 200µA during slow advertising and by 186µA when BLE is disabled.
@JF002
Copy link
Collaborator Author

JF002 commented May 8, 2023

According to my measurement, the watch uses ~240µA more during fast BLE advertising, and ~15µA during slow advertising. However, the measurements are the same when BLE is disabled, exactly as you said!

@JF002 JF002 added this to the 1.13.0 milestone May 20, 2023
mark9064 added a commit to mark9064/InfiniTime that referenced this pull request May 27, 2023
commit d863d1c
Author: Jean-François Milants <jf@codingfield.com>
Date:   Sun May 7 18:15:33 2023 +0200

    Power optimization - enable the DC/DC regulator.

    The DC/DC regulator reduce the power consumption of the MCU compared to the default LDO regulator. The DC/DC regulator needs additional HW that is mounted on the PineTime.

    This change reduces the power usage by 380µA during fast advertising, by 200µA during slow advertising and by 186µA when BLE is disabled.
@JF002 JF002 merged commit 2fa3aaa into main Jun 4, 2023
7 checks passed
@FintasticMan FintasticMan deleted the power-optimization-enable-dcdc-regulator branch August 3, 2023 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement to an existing app/feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants