BleuIO

BleuIO

  • Get Started
  • Buy Now
  • Manual
  • AT Commands
  • Help

›Renesas RA4M2

Manual

  • How it works
  • How to use
  • Verbose Mode
  • Known Issues
  • Troubleshooting

Firmware Updates

    BleuIO Pro (SSD025)

    • Firmware Updates
    • Release History

    BleuIO (SSD005)

    • Firmware Updates
    • Release History of BleuIO (SSD005)

AT-Commands

  • List of AT Commands

BleuIO Libraries

  • JavaScript Library
  • Python Library

Scripts & Tutorials

  • Python: iBeacon
  • Python: Eddystone Beacon
  • Python: Scan
  • Python: Scan and Store
  • Python: SPS Script
  • Python: File transfer Script
  • Python: Repeater Script
  • Javascript: Google chrome.serial Beacon
  • C# Console App Example
  • C# WFA Example

Script using libraries

    Python library > v1.2.0

    • Custom Services example using Python library
    • Eddystone example using Python library
    • IBeacon example using Python library
    • Scan example using Python library
    • Scan and store example using Python library

    Python library < v1.2.0

    • Eddystone example using Python library
    • IBeacon example using Python library
    • Scan example using Python library
    • Scan and store example using Python library
    • SPS example using Python library
    • Security Example using Python library

    JS library

    • Eddystone example using Javascript library
    • IBeacon example using Javascript library
    • Scan example using Javascript library
    • Security Example using Javascript library
    • Get Device Distance

Projects

    Arduino

    • Arduino Example

    Beaglebone

    • Beaglebone Example

    Raspberry Pi

    • Raspberry PI into Beacon
    • Raspberry PI home automation

    Raspberry PI Pico

    • BleuIO integration (Part1)
    • BleuIO integration (Part2)
    • BleuIO integration (Part3)

    Renesas RA4M2

    • Signal Strength Monitoring
    • Real-Time CO2 monitor
    • Monitoring Air Quality

    STM32 Nucleo-144

    • Nucleo-144 board example
    • Smart Bulb Example

    M5Stack's CoreMP135

    • M5Stack's CoreMP135 board example

Build Your Own Firmware

  • Build Your Own Firmware
  • Advertising Example

More

  • Links
Order Now

BleuIO

$19.99

Buy Now

Monitoring Air Quality with BleuIO and Renesas RRH62000 on EK-RA4M2

Monitoring Air Quality with BleuIO and Renesas RRH62000 on EK-RA4M2

In this tutorial, we demonstrate how to use the Renesas EK-RA4M2 MCU, the Renesas RRH62000 All-in-One Air Quality Sensor Module, and the BleuIO Bluetooth Low Energy (BLE) USB Dongle to collect and transmit air quality data wirelessly. The RRH62000 sensor module measures key environmental parameters such as:

  • eCO₂ (Equivalent Carbon Dioxide)
  • Humidity (%)
  • Temperature (°C)
  • Particulate Matter (PM1, PM2.5, PM10) (µm/cm³)
  • Total Volatile Organic Compounds (TVOC) (mg/m³)
  • Indoor Air Quality Index (IAQ)

The EK-RA4M2 MCU reads data from the sensor via I²C, processes the information, and transmits it over BLE using the BleuIO USB dongle. The advertised data can be monitored using BLE scanning applications, and the sensor values can also be displayed in RTTViewer on a connected PC.

Requirements

Before getting started, ensure you have the following hardware and software:

Hardware

  • EK-RA4M2 MCU
  • BleuIO – Bluetooth Low Energy USB Dongle
  • Renesas RRH62000 All-in-One Integrated Air Quality Sensor
  • USB OTG Cable (USB-A to micro-B)
  • Micro USB cable (for debugging)

Software

  • FSP Platform Installer (e² studio IDE & toolchain, FSP version ≥ 5.7.0)
  • J-Link RTT Viewer
  • BLE Scanning App (e.g., nRF Connect)

You can download the complete example project here:
➡️ GitHub Repository

Hardware Setup

Connecting EK-RA4M2 and BleuIO Dongle

  1. Connect EK-RA4M2 to your PC using a micro-USB cable via the J10 (Debug1) port.
  2. Plug the BleuIO dongle into a USB OTG cable and connect it to J11 (USB Full Speed) on the EK-RA4M2 board.
  3. Set jumpers:
    • Place J12 on pins 1-2.
    • Remove J15 completely.

Reference Diagram:

Connecting RRH62000 Air Quality Sensor

Connect the RRH62000 sensor module to EK-RA4M2 as follows:

  • Power: Connect 5V and GND from RRH62000 to 5V and GND on EK-RA4M2.
  • I²C Communication:
    • SCL (Clock) → SCL on EK-RA4M2
    • SDA (Data) → SDA on EK-RA4M2
    • GND → GND on EK-RA4M2

Reference Diagrams:

Importing the Project into e² Studio

  1. Open e² Studio IDE and choose a workspace. Click Launch.
  2. Download or clone the project from GitHub and place the “bleuio_ra4m2_rrh62000_example” folder inside your workspace.
  3. Go to File → Import and select Existing Projects into Workspace under the General tab.
  4. Click Browse… and locate the project folder.
  5. Select the project and click Finish to import it.

Importing Example Project:

Building and Running the Example

  1. Build the project by clicking the build icon.
  2. Set up debugging:
    • Click the down arrow next to the Debug icon and select Debug Configurations…
    • Under Renesas GDB Hardware Debugging, choose bleuio_ra4m2_sensor_rrh62000_example Debug_Flat and click Debug.
  3. Run the program:
    • Open RTTViewer and connect using the following settings:
      • Connection to J-Link: USB
      • Target Device: R7FA4M2AD
      • Interface & Speed: SWD, 4000 kHz
      • RTT Control Block Address: 0x200009dc
  4. In e² Studio, click Resume twice to start execution.
  5. The program starts running:
    • All LEDs turn on for 1 second, then only the red LED remains on.
    • The red LED turns off when BleuIO is initialized.
    • The green LED turns on when advertising starts.
  6. Sensor data is displayed in RTTViewer.

Scanning and Decoding BLE Advertising Data

Scan the Dongle using nRF Connect

Use a BLE scanning app like nRF Connect to view the advertised data:

Decoding the Advertising Message

Example raw BLE advertisement:

02010619FF3600016491803010300030105060306080192

All air quality sensor values except eCO2 is split into two bytes. The first byte is the whole number and the second byte is the decimal. For example
1649 is the temperature value. The whole number is 16 and the decimal is 49. Converting it from hex gives
us: 23.73 °C

The eCO2 value is 2 bytes, big endian.

Breaking it down:

DataDescriptionDecoded Value
020106Advertising flag (connectable)–
19Message size–
FFManufacturer Specific Data–
3600Renesas Manufacturer ID (Little Endian)–
Air Quality Advertised Data
1649Temperature (°C)23.73°C
1803Humidity (%RH)24.3% RH
0103IAQ Index1.3
0003TVOC (mg/m³)0.3 mg/m³
0105PM1 (µm/cm³)1.5
0603PM2.5 (µm/cm³)6.3
0608PM10 (µm/cm³)6.8
0192eCO₂ (ppm)402 ppm

This project successfully demonstrates how to use the BleuIO Bluetooth dongle, EK-RA4M2 MCU, and Renesas RRH62000 sensor to wirelessly monitor air quality. The BLE advertisements can be scanned and decoded to extract real-time air quality data.

For the full source code and updates, visit:
➡️ GitHub Repository

← Real-Time CO2 monitorNucleo-144 board example →
  • Requirements
    • Hardware
    • Software
  • Hardware Setup
    • Connecting EK-RA4M2 and BleuIO Dongle
    • Connecting RRH62000 Air Quality Sensor
  • Importing the Project into e² Studio
  • Building and Running the Example
  • Scanning and Decoding BLE Advertising Data
    • Scan the Dongle using nRF Connect
    • Decoding the Advertising Message

Support Request

If you have any queries or technical questions, please don't hesitate to send us a message. We will reply within 24 hours.

Message Sent!

Docs
ManualAT CommandsHelp
Community
YouTubeLinkedInFacebook
More
BleuIOSmart Sensor DevicesGitHub
Sales & Support
support@bleuio.comsales@bleuio.com
Copyright © 2025 BleuIO. A product of Smart Sensor Devices