Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Investigating Energy Consumption and Responsiveness of low power modes in MicroPython for STM32WB55
Jönköping University, School of Engineering, JTH, Department of Computer Science and Informatics.
Jönköping University, School of Engineering.
2023 (English)Independent thesis Basic level (degree of Bachelor), 10 credits / 15 HE creditsStudent thesis
Abstract [en]

Introduction: This paper presented an analysis of the energy consumption and responsiveness of MicroPython in an embedded system. The purpose of this study was to understand the energy consumption and response time of a MicroPython based system to optimize its overall performance and efficiency.

Two research questions had been formulated to concretize the purpose of this thesis:

[RQ1] How does the energy consumption of a MicroPython based embedded system compare to that of a C-based embedded system for tasks utilizing low power modes?

[RQ2] What is the wake-up response time of MicroPython for low power modes when receiving external and internal interrupts, and how does it compare to an established language like C on an embedded system?

Method: To answer the research questions and achieve the purpose, an experimental study was conducted. The energy consumption of the MicroPython based system was analyzed under different scenarios. The time it took for MicroPython to respond to an interrupt request from a sleeping state was also measured. The data collected from the experiment was analyzed to determine the level of energy consumption and responsiveness of MicroPython in an embedded system.

Results: The results indicated that C was generally more energy efficient and responsive than MicroPython for tasks utilizing low power modes for the Deepsleep mode. Although MicroPython proved to have shorter response times for the Lightsleep low power mode. For energy consumption, C was more stable in the measurements while MicroPython reached both lower minimum currents and higher maximum currents.

Conclusions: In conclusion, this study found that while MicroPython could achieve lower power levels than C in both low power modes tested, it reached higher current levels upon waking up. Despite this, MicroPython could still be a choice for applications that spend longer durations in low power modes, as this could offset the increased current spikes during wake-up. Response times for MicroPython were faster than C in the Lightsleep internal interrupt case, but MicroPython exhibited significantly longer response times in the Deepsleep mode due to the system resetting and restarting the interpreter.

Keywords: Embedded systems, Energy consumption, Interrupt requests, Low power modes, MicroPython, Responsiveness.

Place, publisher, year, edition, pages
2023. , p. 55
Keywords [en]
Response time, Energy consumption, MicroPython, C, Low Power modes, Sleep modes
National Category
Embedded Systems
Identifiers
URN: urn:nbn:se:hj:diva-61823ISRN: JU-JTH-DTA-1-20230193OAI: oai:DiVA.org:hj-61823DiVA, id: diva2:1778426
External cooperation
Combitech AB
Subject / course
JTH, Computer Engineering
Presentation
2023-06-01, E1028, Gjuterigatan 5, Jönköping, 16:00 (English)
Supervisors
Examiners
Available from: 2023-08-01 Created: 2023-07-02 Last updated: 2025-10-13Bibliographically approved

Open Access in DiVA

fulltext(3518 kB)425 downloads
File information
File name FULLTEXT01.pdfFile size 3518 kBChecksum SHA-512
f9e087a6ad833359bb2f274651ff722a322d6f91419957b7362d0761b67af61cbe83f8593d6c480012f4a20b4ad50d0bb93f848965c451efd491fd340507aae3
Type fulltextMimetype application/pdf

Search in DiVA

By author/editor
Samefors, AlbinSundman, Felix
By organisation
JTH, Department of Computer Science and InformaticsSchool of Engineering
Embedded Systems

Search outside of DiVA

GoogleGoogle Scholar
Total: 427 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 760 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf