u-blox NINA-B1 Arduino example + SHT31 temperature and humidity + Bluetooth BLE
- Install PlatformIO Core
- Download development platform with examples
- Extract ZIP archive
- Run these commands:
# Change directory to example
> cd platform-nordicnrf52/examples/Arduino-u-blox-NINA-B1
# Build project
> platformio run
# Upload firmware
> platformio run --target upload
# Build specific environment
> platformio run -e nina_b1
# Upload firmware for the specific environment
> platformio run -e nina_b1 --target upload
# Clean build files
> platformio run --target clean
This example tries to implement some key functions and key PIN atributes in order to get you started with using Arduino and the NRF52832 BLE board u-blox NINA-B1.
Timer functionas are implemented intead of delay()
and the PINs have been re-mapped on the #define
section
You can download the sample Bluetooth low energy app - BLE App straight from u-blox wesite: https://www.u-blox.com/en/product/bluetooth-ios-and-android-app
The arduino-nRF5x core REQUIRES a SoftDevice in order to successfully use this library. Please see Flashing a SoftDevice.
On PlatformIO and when using this example you don't need to do anything special as the build_flags = -DNRF52_S132
has already been included on platform.ini
file.
SoftDevices contain the BLE stack and housekeeping, and must be downloaded once before a sketch using BLE can be loaded. The SD consumes ~5k of Ram + some extra based on actual BLE configuration.
- SoftDevice S132 v2.0.1 supports nRF52 in peripheral and central role. It is 112k in size.
Github Shields and Badges created with Shields.io
Sandeep Mistry's Arduino BLE library
Adafruit SHT31 Library
u-blox NINA-B1 blueprint example GitHub
u-blox official mBed library