Skip to content
MCU Atlas
NRF52NRF52832

Ruuvi Firmware: open sensor beacon firmware for RuuviTag (nRF52)

The official open firmware for the RuuviTag sensor beacon: an nRF52832 broadcasting temperature, humidity and motion readings over Bluetooth LE.

Difficulty:BeginnerSource available

Photos

Ruuvi Firmware: open sensor beacon firmware for RuuviTag (nRF52) photo 1
Ruuvi Firmware: open sensor beacon firmware for RuuviTag (nRF52) photo 2

Photos: ruuvi.com

Key Facts

  • Chip: nRF52832
  • Sensors: temp, humidity, pressure, accel
  • Radio: BLE advertisements
  • Platform: Nordic SDK 15

About This Project

RuuviTag is a rugged Nordic nRF52832 sensor beacon measuring temperature, humidity, pressure and acceleration, used widely for home and industrial monitoring. This repository is the official C firmware (v3) built on Nordic SDK 15. Tags broadcast sensor data over BLE advertisements that phones, Raspberry Pis or ESP32 Bluetooth proxies can collect into Home Assistant or Grafana. A strong example of production-quality open nRF52 firmware.

Source & Attribution

Source: GitHub
License: BSD-3-Clause
Last verified: 10/15/2026
Ruuvi Firmware: open sensor beacon firmware for RuuviTag (nRF52)

How to Build It

This is the official open-source firmware for the RuuviTag, an nRF52832 Bluetooth sensor beacon that broadcasts temperature, humidity, air pressure and motion. It's built on Nordic SDK 15. Use it to customise things like the advertising interval, history logging or motion sensitivity.

Parts Needed

  • RuuviTag sensor beacon
  • Ruuvi DevKit (or another SWD programmer with a TC2030 cable) for wired flashing
  • Phone with nRF Connect for over-the-air (DFU) updates
  • Computer with ARM GCC 7-2018-q2, Python 3.7+ and Nordic SDK 15.3

Steps

  1. 1

    Just updating?

    If you only want the stock firmware, download a release DFU zip and flash it over Bluetooth from your phone. No build tools are needed.

  2. 2

    Set up the toolchain

    Clone the repo with its submodules (git clone --recursive). Install the gcc-arm-none-eabi version the README specifies, and unpack Nordic SDK 15.3 into the project root.

  3. 3

    Customise

    Look in application_config/app_config.h for configurable settings, such as advertising interval, logging interval and motion sensitivity. Put your changes in the application-mode header listed there.

  4. 4

    Build

    Use Segger Embedded Studio (installed via nRF Connect for Desktop) and choose the Debug, Long Life or Release configuration. For repeatable builds, run make with a variant name, e.g. make ruuvitag_b.

  5. 5

    Flash

    Wired: connect the DevKit with the TC2030 cable and flash or debug from SES. Wireless: put the tag into bootloader mode and upload the generated DFU zip with nRF Connect.

  6. 6

    Tips

    Run make astyle before sending changes upstream. A mis-built image can drain the coin cell quickly, so check current draw if you changed sleep or advertising settings.

Available as a complete kit

Environmental sensor beacon

Buy from Ruuvi

Related Projects

ESPHome indoor air-quality monitor (CO2, PM2.5)
Illustration
ESP32
An ESPHome config for a DIY air-quality monitor measuring CO2, particulates, temperature, humidity and pressure.
Beginner·Code
5 parts listed
Arduino Uno e-ink home weather station
Illustration
ARDUINOUNO
A beginner-friendly weather station on an Arduino Uno: a Waveshare 4.3in e-ink display, BME280 sensor and DS3231 clock show home conditions at a glance.
Beginner·Code
6 parts listed
Everything Presence One: mmWave presence sensor for Home Assistant
Illustration
ESP32
An open ESPHome presence sensor that combines mmWave, PIR, light and temperature/humidity sensing in one small case.
Beginner·Code
1 part listed