You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/hardware/06.nicla/boards/nicla-sense-me/tutorials/web-ble-dashboard/content.md
+15-12
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
title: 'Displaying on-Board Sensor Values on a WebBLE Dashboard.'
2
+
title: 'Displaying on-Board Sensor Values on a WebBLE Dashboard'
3
3
coverImage: hero-banner.svg
4
4
tags:
5
5
- Bluetooth®
@@ -23,15 +23,15 @@ software:
23
23
---
24
24
25
25
## 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.
27
27
28
28
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.
29
29
30
30
To demonstrate this, we prepared a simple sketch and hosted a dashboard so you can try it yourself.
31
31
32
32
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/).
33
33
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.
35
35
36
36
## Goals
37
37
@@ -41,15 +41,17 @@ In this tutorial we will focus on the Arduino® Nicla Sense ME.
41
41
### Required Hardware and Software
42
42
43
43
-[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)
45
45
- 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)
47
47
48
48
## Instructions
49
49
50
50
### Set up the Board
51
51
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.
53
55
54
56
If you use a local IDE, you can copy & paste the following sketch:
55
57
```arduino
@@ -264,6 +266,8 @@ If you use a local IDE, you can copy & paste the following sketch:
264
266
}
265
267
```
266
268
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
+
267
271
### Connect to the Dashboard
268
272
269
273
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
276
280
277
281
***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***
278
282
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:
282
284
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.
284
286
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.
286
288
289
+
- Breathe onto the board and see the humidity and temperature values changing.
287
290
288
291
## Conclusion
289
292
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/).
0 commit comments