Skip to content

Commit 492ebbd

Browse files
authored
Merge pull request #699 from arduino/taddy/nicla-senseme-webble-inspect
Nicla Sense ME: Displaying on-Board Sensor Values on a WebBLE Dashboard Tutorial Inspection [PC-1049]
2 parents 847186d + 293a54a commit 492ebbd

File tree

2 files changed

+16
-13
lines changed

2 files changed

+16
-13
lines changed

Diff for: content/hardware/06.nicla/boards/nicla-sense-me/tutorials/web-ble-dashboard/content.md

+15-12
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: 'Displaying on-Board Sensor Values on a WebBLE Dashboard.'
2+
title: 'Displaying on-Board Sensor Values on a WebBLE Dashboard'
33
coverImage: hero-banner.svg
44
tags:
55
- Bluetooth®
@@ -23,15 +23,15 @@ software:
2323
---
2424

2525
## Overview
26-
The Arduino Nicla Sense ME can give you information about the environment such as pressure, temperature and gas readings. Sometimes, you may have to place the sensor in a hard-to-reach area and therefore want to access the data wirelessly.
26+
The Arduino® Nicla Sense ME can give you information about the environment such as pressure, temperature and gas readings. Sometimes, you may have to place the sensor in a hard-to-reach area due to certain environmental requirement. Therefore, it will be much convenient and helpful to access the data wirelessly.
2727

2828
Thanks to the ANNA B112 Bluetooth® chip and the libraries developed for the Nicla Sense ME, you can easily stream data over Bluetooth® to a device of your choice. By using WebBLE, no additional software other than a compatible browser (Google Chrome is recommended) is required.
2929

3030
To demonstrate this, we prepared a simple sketch and hosted a dashboard so you can try it yourself.
3131

3232
A [previous version](https://arduino.github.io/ArduinoAI/BLESense-test-dashboard/) of this dashboard was developed to be used with the Arduino® Nano 33 BLE. You can see a video that shows how it looks [here](https://www.facebook.com/official.arduino/videos/ble-sense-test-dashboard/336762167617547/).
3333

34-
In this tutorial we will focus on the Arduino® Nicla Sense ME.
34+
In this tutorial, we will focus on the Arduino® Nicla Sense ME.
3535

3636
## Goals
3737

@@ -41,15 +41,17 @@ In this tutorial we will focus on the Arduino® Nicla Sense ME.
4141
### Required Hardware and Software
4242

4343
- [Nicla Sense ME](https://store.arduino.cc/products/nicla-sense-me)
44-
- Micro USB-A cable (USB-A to Micro USB-A)
44+
- Micro USB-A cable (USB-A to Micro USB-AB)
4545
- Arduino IDE 1.8.10+, Arduino IDE 2 or Arduino Web Editor
46-
- If you choose the Arduino IDE, you will need to install 2 libraries: `Arduino_BHY2`and `ArduinoBLE`
46+
- If you choose the Arduino IDE, you will need to install 2 libraries: [**Arduino_BHY2**](https://github.com/arduino-libraries/Arduino_BHY2) and [**ArduinoBLE**](https://github.com/arduino-libraries/ArduinoBLE)
4747

4848
## Instructions
4949

5050
### Set up the Board
5151

52-
If you use the Web Editor to upload the [sketch](https://create.arduino.cc/editor/FT-CONTENT/333e2e07-ecc4-414c-bf08-005b611ddd75/preview) you don't need to install any library. They are all included automatically. If you use the Arduino IDE or the CLI, you need to download the **Arduino_BHY2** and the **ArduinoBLE** libraries.
52+
If you use the Web Editor to upload the [sketch](https://create.arduino.cc/editor/FT-CONTENT/333e2e07-ecc4-414c-bf08-005b611ddd75/preview) you don't need to install any library. They are all included automatically. If you use the Arduino IDE or the CLI, you need to download the **Arduino_BHY2** and the **ArduinoBLE** libraries.
53+
54+
These libraries can be found within the Library Manager in the Arduino IDE, or it can be downloaded separately following the links attached within required hardware and software section.
5355

5456
If you use a local IDE, you can copy & paste the following sketch:
5557
```arduino
@@ -264,6 +266,8 @@ If you use a local IDE, you can copy & paste the following sketch:
264266
}
265267
```
266268

269+
Once you have these tools, you can select the Nicla Sense ME as target board and its corresponding port. Now you are ready to upload the sketch.
270+
267271
### Connect to the Dashboard
268272

269273
Once you uploaded the sketch to your board you can open the [Nicla Sense ME Dashboard](https://arduino.github.io/ArduinoAI/NiclaSenseME-dashboard/). If you're interested in the source code, you can have a look at the [repository](https://github.com/arduino/ArduinoAI).
@@ -276,15 +280,14 @@ To connect your board to the dashboard, you will need to click on the top left b
276280

277281
***For this feature to work, make sure that WebBLE is both supported and enabled! In Google Chrome go to <chrome://flags> and enable "Experimental Web Platform features". Check the website [compatibility list](https://developer.mozilla.org/en-US/docs/Web/API/Web_Bluetooth_API#browser_compatibility) to confirm that your browser supports this feature***
278282

279-
Once it is connected, the button will change its color to green, and the graphs will start to show data in real time.
280-
281-
Try to rotate the board and see the 3D model of the board spin.
283+
Once it is connected, the button will change its color to green, and the graphs will start to show data in real time. You will be able to verify its operation by trying out the following actions:
282284

283-
You can also select a different LED color from the bottom left widget.
285+
- Try to rotate the board and see the 3D model of the board spin.
284286

285-
Breathe onto the board and see the humidity and temperature values changing.
287+
- You can also select a different LED color from the bottom left widget.
286288

289+
- Breathe onto the board and see the humidity and temperature values changing.
287290

288291
## Conclusion
289292

290-
The Nicla Sense ME supports a lot of use cases through its on-board sensors and the Bluetooth® Low Energy functionality. By leveraging the WebBLE API you do not need to install or run any application from your computer as shown in this tutorial. You can read more about WebBLE technology [here](https://web.dev/bluetooth/).
293+
The Nicla Sense ME supports a lot of use cases through its on-board sensors and the Bluetooth® Low Energy functionality. By leveraging the WebBLE API, you do not need to install or run any application from your computer as shown in this tutorial. You can read more about WebBLE technology [here](https://web.dev/bluetooth/).

Diff for: content/hardware/06.nicla/boards/nicla-sense-me/tutorials/web-ble-dashboard/hero-banner.svg

+1-1
Loading

0 commit comments

Comments
 (0)