element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Low Power IoT Design Challenge
  • Challenges & Projects
  • Design Challenges
  • Low Power IoT Design Challenge
  • More
  • Cancel
Low Power IoT Design Challenge
Blog Low Power IoT Challenge - Power Reduction
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: ralphjy
  • Date Created: 3 Nov 2021 11:22 PM Date Created
  • Views 870 views
  • Likes 2 likes
  • Comments 1 comment
  • modus toolbox 2.3.1
  • mqtt
  • low_power_iot
  • nordic power profiler kit ii
  • cy8ckit-psoc62s2-43012
Related
Recommended

Low Power IoT Challenge - Power Reduction

ralphjy
ralphjy
3 Nov 2021

In my previous post Low Power IoT Design Challenge - WLAN Low Power , I had taken some current measurements of my project running prior to any attempts at power reduction. I had also tried the WLAN Low Power example that uses the Low Power Assistant (LPA) library.  That example uses a custom design.modus file to configure the board (MCU and WiFi modules) for low power.

 

If you examine the project directory structure, you can see the standard design.modus file is included with the BSP under the libs directory.  The custom design.modus file is under the COMPONENT_CUSTOM_DESIGN_MODUS directory.

image

 

To use the custom design.modus file just requires changes to the COMPONENTS section of the Makefile.   Add CUSTOM_DESIGN_MODUS to the COMPONENTS list and BSP_DESIGN_MODUS to the DISABLE_COMPONENTS list.

image

 

I thought that I could just copy the COMPONENT_CUSTOM_DESIGN_MODUS directory from the WLAN Low Power example to my project and update the Makefile and add the lpa library.  Well, it almost worked.  The project built without a problem (I also needed to add WCM to the COMPONENTS list).  The program started and WiFi connected, but MQTT was broken - or more specifically Subscribe was not working, but Publish was.  The WLAN Low Power example was not using MQTT, so there was something missing in the custom configuration.

 

Luckily, Infineon has a very good Application Note AN227910 about configuring this WiFi/BT module and PSoC6 MCU for low power https://www.cypress.com/documentation/application-notes/an227910-low-power-system-design-airoc-cyw43012-wi-fi-bluetooth .

 

In that App Note there is also a recommended configuration for an AWS MQTT example.  So, I'm going to use that as a starting point.

image

 

Rather than using the CUSTOM_DESIGN, I'm just going to use the Device Configurator from the Quick Panel to modify the base BSP configuration.

 

For the MCU:

     LP vs ULP for System Active Power because of the 50MHz frequency requirement for WiFi.

     Buck vs LDO regulator

     System Deep Sleep vs Active or CPU Sleep

image

 

     Configure the Interrupt Pin P4[1] so that the WiFi module can wake the MCU up from sleep

image

 

On the WiFi module:

     Enable Host Wake Configuration

     Configure the Host Device Interrupt Pin

     Configure ARP Offload

     Enable MQTT Filters (only wake on MQTT activity)

     Add Minimal Set of Keep Filters

image

 

This configuration allows MQTT to work properly in my application.  The differences that I noted between this configuration and the WLAN Low Power are:

     MCU Active mode was ULP instead of LP

     ARP Offload was not enabled

     MQTT Filters were not enabled

     Add Minimal Set of Keep Filters was not enabled

 

Power Reduction with New Low Power Configuration

Old configuration

image

New Configuration

image

Over the same 2 minute startup window the average current dropped from 1.67 mA to 436 uA.  You can see that current during the MQTT intervals appears to have dropped substantially (the lack of white space).  For good measure, I also disabled the onboard LED so you don't see that current in the Person Detected interval.

 

Here is a zoomed in view of the first MQTT interval:

 

Old configuration

image

 

New Configuration

image

 

It's not totally clear from the pictures, but because there is so much activity in the 800 ms MQTT interval the average current only drops from 14 mA in the old configuration to 6.5 mA in the new configuration.  Need to think about what all that activity is.

 

In summary, almost a 4X reduction in power on average overall using the new configuration.  As I learn more and understand what all this activity correlates to, I'm sure that I can do substantially better in power reduction.

 

I'm impressed with the flexibility in the board and module designs and the ease of configurability with the toolset.  I just need to get smarter image...

  • Sign in to reply
  • Jan Cumps
    Jan Cumps over 3 years ago

    In the AnyCloud MQTT client example, the standard is LP' and when sleeping, it goes to System Deep Sleep

     

    image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube