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
Project Videos
  • Challenges & Projects
  • element14 presents
  • Project Videos
  • More
  • Cancel
Project Videos
Documents Using Nordic's nRF7002, My Dehumidifier Tells Me When It's Full! -- Episode-650
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Project Videos to participate - click to join for free!
Related
Recommended
Engagement
  • Author Author: tariq.ahmad
  • Date Created: 11 Apr 2024 2:47 PM Date Created
  • Last Updated Last Updated: 12 Apr 2024 1:04 PM
  • Views 1908 views
  • Likes 13 likes
  • Comments 9 comments

Using Nordic's nRF7002, My Dehumidifier Tells Me When It's Full! -- Episode-650

Many appliances need a human’s attention to perform maintenance actions. For example, James's lab dehumidifier turns on an LED to indicate its reservoir is full. Wouldn’t it be nice if it could use the Internet to notify someone it needs emptying? With the help of Nordic’s nRF7002 Design Kit (DK), it is now possible to get a phone notification when an LED turns on. 

Watch the Video:

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

Project Overview 

James reviewed Nordic’s nRF7002 design tools in another video. The nRF70 is a dual-band Wi-Fi 6 companion IC for microcontrollers (MCUs.) He planned to use the QFN-packaged chip in a custom printed circuit board (PCB). However, things do not always go as planned. 

image 

Initially, James used the nRF7002 Design Kit (DK) board. This board has the nRF70 and chip antennas for both bands. It also features an nRF5340 application processor connected to the nRF70. The board has various header pins, breakout points, and other useful debug features. For example, it has a third chip, which is another MCU. However, that MCU is dedicated to programming and debugging the application processor.  

 image

Nordic’s nRF SDK Connect is based on the Zephyr real-time operating system. There is an example for the nRF7002 DK that connects to an MQTT broker and sends a message once per minute. James modified that example to read for an analog-to-digital converter (ADC) input and send that value to the broker. Feeling confident about his new Zephyr skills, James tried changing microcontrollers. 

Xiao + nRF7002 

Since this project really only needs a single analog input, the Seeed Studio Xiao BLE seemed like a perfect choice. It has a Nordic microcontroller and just enough I/O pins to connect to an nRF7002. After spending some time modifying the Zephyr Devicetree and reconfiguring a blink project for the Xiao, James had a blinking LED. 

image

However, that’s when James discovered a significant mistake with the design! 

The Xiao’s microcontroller is Nordic’s nRF52840. This chip only has a single core and 256 kilobytes of RAM. The nRF53 on the  nRF7002 DK has a dual-core processor with their own RAM. The chip dedicates one core to the user application and (optionally) the other core to managing network operations. The application processor has twice the RAM of the nRF52! 

This difference is significant because the MQTT example needs almost 250 kilobytes of RAM! In other words, there isn’t enough memory to run the code on the Xiao BLE! 

Back-Up Plan 

Since James really wanted a Wi-Fi LED Detector, he decided to go another route. He built the project around the design kit instead of his custom PCB. After all, the fundamental code was already in place!  

image

The first step was to solder the photoresistor to the DK board. Next, James installed it into a 3D-printed case. A few measurements and tests then demonstrated that detecting whether the dehumidifier’s FULL light was ON or OFF was possible. 

With the hardware working, James used a Nordic Power Profiler Kit 2 to see how much energy a Wi-Fi LED Detector would consume on average. The answer? About 4.25 milliamps!  

image

That number is really high for an IoT device. However, it is very good for an IoT device based on a design kit and with ZERO code optimizations–like sleep modes. So, James decided to just wrap up this stage of the project here. 

RF Measurements 

A lesson James learned is that he should have studied the code examples more before designing a custom PCB. Even though the custom board wouldn’t work how he needed it, James still wondered what the RF path looked like.  

Using a Vector Network Analyzer (VNA), James measured the response of the dual-band antenna. It looks good for the 2.4 GHz Wi-Fi bands. However, James is concerned that the response is a bit weak for the 5 GHz bands.  

image

Regardless, it still looked good on the VNA for a first try! 

Downloads & Links:

  • Download Code, CAD Files, and More!
  • Sign Up to Review the Nordic Wi-Fi 6 IC Dev Kit nRF7002 DK with WI-Fi 6 Router
  •  A Nordic DevAcadamy Course on the nRFConnect SDK  by skruglewicz 
  •  Hands-on with Nordic’s nRF7002 DK, EK, and EB Boards - Workbench Wednesdays 82 
  • Nordic MQTT Example
  • Nordic ADC Example
  • Ohm’s Law Calculator

Bill of Material:

Product Name Manufacturer Quantity Buy Kit
nRF7002, RF Transceiver, 2.401 GHz to 5.895 GHz, 86 Mbps,-98.6 dBm , 21 dBm Pout, 2.9V to 4.5Vsupply, QFN-48 Nordic Semiconductor 1 Buy Now
nRF7002-EK, Evaluation Kit (Shield Style) Nordic Semiconductor 1 Buy Now
nRF7002-DK, Design Kit Nordic Semiconductor 1 Buy Now
nRF7002-EB, Evaluation Board Nordic Semiconductor 1 Buy Now
nRF52840 Xiao (BLE) Seeed Studio 1 Buy Now
 
  • ram
  • Companion IC
  • Vector Network Analyzer (VNA)
  • internet of things
  • e14p_JBE
  • Wi-Fi LED Detector
  • Printed Circuit Board (PCB)
  • Zephyr Real-Time Operating System
  • Nordic nRF7002
  • Dual-Core Processor
  • Analog-to-Digital Converter (ADC)
  • wi-fi 6
  • Seeed Studio Xiao BLE
  • Microcontroller (MCU)
  • friday_release
  • MQTT Example
  • design kit
  • Share
  • History
  • More
  • Cancel
Actions
  • Share
  • More
  • Cancel
  • Sign in to reply
Parents
  • BigG
    BigG over 1 year ago

    Oh rats! I have a dehumidifier that regularly gets full (it's damp around these parts). I also have Xiao boards (lot's of them) and recently I've been tinkering with Zephyr. So you can guess what my next project start will be...

    However, as I don't have a nRF7002 EVB, I think I'm going to try this out using the Xiao ESP32 S3. It will be interesting to see how far I get here as I know Nordic Semiconductor have put in a decent amount of effort into getting their boards to work with Zephyr and their documentation is pretty good. I've not had the same luck with other boards but then again, I haven't had a project as good as this one.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • baldengineer
    baldengineer over 1 year ago in reply to BigG

    If I had used something with an nRF53, this project would have gone how I expected. But that is entirely because of my inexperience with Zephyr.

    Nordic does seem all-in on Zephyr compared to other microcontroller manufacturers. Most have some support, but it's almost like an afterthought. Nearly all of Nordic's SDK is built around it. (Or it seems that way to me.)

    I don't know what Esspresif's support for Zephyr is like (yet). But with their popularity, I would expect it to be decent.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • baldengineer
    baldengineer over 1 year ago in reply to BigG

    If I had used something with an nRF53, this project would have gone how I expected. But that is entirely because of my inexperience with Zephyr.

    Nordic does seem all-in on Zephyr compared to other microcontroller manufacturers. Most have some support, but it's almost like an afterthought. Nearly all of Nordic's SDK is built around it. (Or it seems that way to me.)

    I don't know what Esspresif's support for Zephyr is like (yet). But with their popularity, I would expect it to be decent.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
No Data
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