Embedded Computing
  • About
  • Blog
  • Hardware
    • Which Platform?
    • Controller Platforms >
      • Adafruit Platform
      • Arduino Plaform
      • BBC micro:bit
      • Espressif Platform
      • iLabs Platform
      • Raspberry Pi Platform (MCU)
      • Seeed Platform
      • Silicon Labs Platform
      • Teensy Plaform
    • Computer Platforms >
      • BeagleBone Platform
      • Raspberry Pi Platform (SBC)
      • UDOO Platform
    • Peripherals >
      • Shields
      • Grove System
      • Sensors
      • Actuators
    • Displays >
      • E-Paper Displays
      • Reflective Displays
      • TFT Displays
      • LCD Displays
    • Legacy Platforms >
      • chipKIT Plaform
      • 4D Systems Platform
      • Intel Platform
      • LaunchPad Plaform
      • BoosterPacks for LaunchPads
      • LightBlue Bean
      • Maple Plaform
      • Mediatek Platform
      • Microsoft Azure IoT DevKit
      • Particle Platform
  • Software
    • Exploring RTOS with Galaxia >
      • Event Library
      • Semaphore Library
      • Mailbox Library
      • Timer Library
      • Clock Library
      • SWI Library
      • Task Library
    • Ultra-Low Power with EnergyTrace >
      • Ultra-Low Power with MSP430
      • Ultra-Low Power with Energia MT and Galaxia
    • Using Integers Instead of Reals
    • Going Python?
  • IoT
    • IoT Platforms: Which Hardware? >
      • Matter with Silicon Labs MG24
    • IoT Services: Which Solution? >
      • Recommended IoT Solutions
      • Platform-Specific IoT Solutions
      • Other IoT Solutions
      • Not tested IoT Solutions
      • Notification Solutions
    • Get Date and Time from Internet with NTP
    • Fast and Easy WiFi Connection with QR-Code
  • Tools
    • How to Start?
    • Reference >
      • Asking for Help
      • Boards Pins Maps
      • Ruler
      • Boards and Plugs
      • I²C Logic Level Converter
      • Standards for Connectors
    • Training >
      • Texas Instruments Workshops
      • Embedded Systems: Shape The World — MOOC edX UTAustinX UT.6.02x
      • Embedded Systems - Shape The World: Microcontroller Input/Output — MOOC edX UTAustinX UT.6.10x
      • Embedded Systems - Shape The World: Multi-Threaded Interfacing — MOOC edX UTAustinX UT.6.20x
      • Real-Time Bluetooth Networks: Shape the World — MOOC edX UTAustinX UT.RTBN.12.01x
      • Systems Thinking with Texas Instruments Robotics System Learning Kit
    • Books >
      • Getting Started with the MSP430 LaunchPad
      • Getting Started with Arduino
      • Arduino Cookbook
    • IDE >
      • The Battle of IDEs
      • More Options
      • Assessing the Next Generation of IDEs
      • Tools for Documentation
    • Equipment >
      • Saleae Logic Analyser
      • Rigol DS1102E Oscilloscope
      • XDS110 Debug Probe with EnergyTrace​
      • Segger J-Link Programmer-Debugger
      • Nordic Power Profiler Kit II
  • Projects
    • Libraries >
      • Master I²C Software Library
      • Date and Time Library
      • highView Library Suite
      • Others Libraries
    • smartDevices >
      • I²C smartColours Smart Sensor
      • I²C smartRFID Smart Sensor
      • I²C smartLED Display
      • I²C smartControls Smart Device
      • I²C smartWiFi Smart Device
      • I²C smartBLE Smart Device
      • I²C smartNode Smart Device
    • IoT Projects >
      • Remote E-Paper Weather and Message Board
      • Typie-Walkie with LoRa and E-Paper Screen
      • Typie-Walkie with E-Paper Screen
      • Remote e-Paper Pictures Panel
      • Remote e-Paper Messages Panel
      • Industrial IoT Project
      • Remote Contactless Temperature Monitor
      • Using Node-RED for IIoT
      • Low Power Home Network Weather Monitoring
      • Updated Low Power Home Network Weather Monitoring
      • Weather and Security Station with Blynk
      • SensorTag to Blynk Using Node-RED
      • Pervasive Reporting
    • AI Projects >
      • Colour Recognition with Neural Network
    • Other Projects >
      • Air Quality Monitoring
      • Driving a Large E-Paper Display with a Compact Xiao RP2040
      • Low-Power E-Paper Weather Station
      • Portable Particulate​ Matter Monitor
      • FRAM-based E-Paper Screen Controller
      • General Purpose 3.5" Screen
      • Colour Recognition with Neural Network
      • A Low Power Weather Station
      • Digital Volt-Amp-Watt Meter
      • Mobile Measurement with LCD Display
      • Screen with SRAM for GUI
      • Volt-Amp-Watt-Meter for Grove
      • Multi-Touch Project with CapTIvate

​Updated Low Power Home Network Weather Monitoring

This updated version of the Low Power Home Network Weather Monitoring relies on the Launchpad SensorTag kit CC1352R or LPSTK-CC1352 for the nodes.

The hub is a LaunchPad CC1352, connected to Node-RED running on a main computer through serial.

The radio operates in the sub-1 GHz band. The hardware was sampled by Texas Instruments.

Hardware

The Launchpad SensorTag kit CC1352R or LPSTK-CC1352R ​is the third iteration of the SensorTag, after the CC2540 SensorTag and the SensorTag CC1350. 

The Launchpad SensorTag kit CC1352R inaugurates a new form-factor with a 40-pin connector so it can be expanded with the BoosterPack boards to plug-in on top.
​
Two sensors are used:
  • HDC2080 humidity and temperature sensor by Texas Instruments,
  • OPT3001 ambient light sensor by Texas Instruments (except when a display is added).

The display is a modified Sharp Memory LCD BoosterPack 128, as the default configuration suffers from major conflits on pins allocations.
Picture

Software

The project uses updated versions of the libraries, including
  • Galaxia library for RTOS
  • EasyLink library for sub-1 GHz radio,
  • Weather Sensors library for data acquisition and processing, 
  • LCD_screen Library Suite for local display.
​
EasyLink still remains very basic and doesn't provide any QoS feature. As a result, some packets are lost.

The dashboard is managed by Node-RED. The hub now sends the time, so the clocks of all the nodes are synchronised.
​
Picture
The dashboard now lists the time stamps from each node, plus mean and variance for each series of measures as statistics.

I tested the consistency of the sensors by placing 4 nodes in the same room. Temperature variance is nil, while humidity variance is often high. 

Additionally, the dashboard displays voltage and signal strength.
Picture

Low Power

Measuring low power with EnergyTrace faced unexpected challenges from both CCS 9.3 and the alternative command-line stune utility.

I submitted a ticket at the E2E forum and received a prompt answer. It appears the USB XDS110 debug probe is more stable than the built-in programmer-debugger. Similarly, the command line utility stune requires fewer resources.

​The main surprise is the baseline current consumption, close to 2 mA. Why is it so high? Is is due to the fact the LPSTK-CC1352R uses two buses, I²C and SPI, to communicate with the sensors?

Turning off all the sensors and exiting I²C and SPI didn't solve the issue. It seems I am not the only one to face this issue: it has been reported at the E2E forum under Large standby current consumption (1.7 mA) with LPSTK-CC1352R as sensor.

Picture
After some help from the E2E forum, I managed to reach a power consumption while in idle mode consistent with those expected.

  • When idle, the node only requires 0.0267 mW / 0.0081 mA. 
  • Acquiring and sending data take 350 ms and need more power.










Picture
The active part runs every 10 minutes and  includes three main actions:
  • The node acquires the measures from the sensors;
  • The node sends the data to the hub, and 
  • The node keeps reception open for 66 ms in case the hub sends the correct time for synchronisation. 
The whole process takes 350 ms and peaks at 13 mA.
Picture
The battery life for the same CR2032 almost doubles, reaching 22 months compared to more than a year from the previous generation, according to the EnergyTrace estimate.

This could be explained by two main factors:
  • Idle mode requires 0.0267 mW, almost half of the 0.0505 mW from the previous generation. 
  • ​Active part, including acquisition and communication, only takes 350 ms, much faster than the 607 ms from the previous generation. 
Picture

Conclusion

Porting the project from the CC1310/CC1350 to the CC1352 was easy, and so was adding the clock synchronisation. Low power requires extreme caution for its implementation.

However, EasyLink appears as too basic, especially for the lack of QoS resulting in loss of packets. 

With all the focus on home and building automation, let's hope some popular and emerging standards are going to be available for rapid prototyping with Energia. 
Picture

Links

  • Launchpad SensorTag kit CC1352R page
  • Texas Instruments OPT3001 page
  • Texas Instruments HDC2080 page
  • LCD_screen Library Suite
  • Weather Sensors library
  • Galaxia library
  • EasyLink library

Posted: 04 March 2020
Updated: 14 March 2020
Picture
Picture
Picture
Powered by Create your own unique website with customizable templates.