Skip to content

Commit 708f0be

Browse files
authored
Merge pull request #479 from arduino/martab1994-patch-2
Update content.md
2 parents 25981c9 + 20b0f51 commit 708f0be

File tree

1 file changed

+23
-23
lines changed
  • content/hardware/05.nicla/boards/nicla-sense-me/tutorials/connecting-to-iot-cloud

1 file changed

+23
-23
lines changed

content/hardware/05.nicla/boards/nicla-sense-me/tutorials/connecting-to-iot-cloud/content.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -20,29 +20,29 @@ software:
2020

2121
## Overview
2222

23-
In this tutorial you will learn how to upload data from the Nicla module to the IoT Cloud. You will use the **Portenta H7** to interface with the **Nicla Sense ME** using the eslov connector and upload the data using the Portenta Wireless capabilities.
23+
In this tutorial you will learn how to upload data from the Nicla module to the IoT Cloud. You will use the **Portenta H7** to interface with the **Nicla Sense ME** using the ESLOV connector and upload the data using the Portenta Wireless capabilities.
2424

2525
## Goals
2626

27-
- How to configure the Portenta H7 to read temperature values from the Nicla Sense using the ESLOV connector.
28-
- How to Connect the Portenta H7 to the IoT cloud
29-
- Publish the temperature values that we obtained from the Nicla board to the Arduino IoT Cloud.
27+
- How to configure the Portenta H7 to read temperature values from the Nicla Sense ME using the ESLOV connector.
28+
- How to Connect the Portenta H7 to the Arduino IoT Cloud
29+
- Publish the temperature values that you obtained from the Nicla board to the Arduino IoT Cloud.
3030

3131
### Required Hardware and Software
3232

3333
- [Portenta H7](https://store.arduino.cc/products/portenta-h7)
3434
- [Nicla Sense ME](https://store.arduino.cc/products/nicla-sense-me)
35-
- Eslov cable (included with the Nicla Sense ME)
35+
- ESLOV cable (included with the Nicla Sense ME)
3636
- USB-C to USB-A / C depending on your hardware (Portenta H7)
3737
- USB-A to micro USB-A (Nicla Sense ME)
3838
- Wi-Fi Access point with access to the internet
39-
- [Arduino Create](https://create.arduino.cc/) account
39+
- [Arduino Cloud](https://create.arduino.cc/) account
4040

4141
## Instructions
4242

4343
### Hardware Connection
4444

45-
For the hardware setup just connect the Nicla board to the Portenta H7 using the Eslov cable like in the illustration below. Then connect the Portenta H7 to your computer using an USB-C cable.
45+
For the hardware setup, just connect the Nicla board to the Portenta H7 using the ESLOV cable like in the illustration below. Then connect the Portenta H7 to your computer using an USB-C cable.
4646

4747
![Nicla connection](assets/eslov-connection.svg)
4848

@@ -58,11 +58,11 @@ For further tips on how to operate the Nicla module check the [cheat sheet](http
5858

5959
### Client Board (Nicla Sense ME)
6060

61-
The **Nicla Sense ME** will be listening to the Host board to send back the required data, this is all automated by the libraries **Arduino_BHY2** and **Arduino_BHY2Host**
61+
The **Nicla Sense ME** will be listening to the Host board to send back the required data, this is all automated via the libraries **Arduino_BHY2** and **Arduino_BHY2Host**
6262

63-
The code its available inside the examples provided with the **Arduino_BHY2** Library. Open it by going to **Examples > Arduino_BHY2 > App.ino**
63+
The code is available inside the examples provided with the **Arduino_BHY2** Library. Open it by going to **Examples > Arduino_BHY2 > App.ino**
6464

65-
This is the code, which initialize the sensors, and maintain the communication
65+
This is the code, which initialize the sensors, and maintain the communication:
6666

6767
```cpp
6868
/*
@@ -85,22 +85,22 @@ void loop(){
8585
}
8686
```
8787

88-
### Set up the IoT Cloud
88+
### Set up the Arduino IoT Cloud
8989

90-
To configure the IoT cloud you can follow this [tutorial](content/cloud/iot-cloud/tutorials/iot-cloud-getting-started).
90+
To configure the Arduino IoT cloud you can follow this [tutorial](content/cloud/iot-cloud/tutorials/iot-cloud-getting-started).
9191

9292

93-
Create a new thing at <https://create.arduino.cc/iot/things>, we called it "PRO - Portenta and Nicla". You will need to attach the Portenta H7 as a new device to your **Thing setup.** After that go to **Variables** and click the **add** button and select a float variable called **temperature** to store the temperature readings.
93+
Create a new Thing at <https://create.arduino.cc/iot/things>, you can call it "PRO - Portenta and Nicla". You will need to attach the Portenta H7 as a new device to your **Thing setup.** After that, go to **Variables**, click the **add** button and select a float variable called **temperature** to store the temperature readings.
9494

9595
![Arduino IoT Cloud - Thing Setup](assets/IoTCloud-thingSetup.png)
9696

97-
***Remember to add your Wi-Fi SSID name, and its password (you can do that inside the Thing setup tab) to be able to connect to the Arduino IoT Cloud.***
97+
***Remember to add your Wi-Fi SSID name and its password (you can do that inside the Thing setup tab) to be able to connect to the Arduino IoT Cloud.***
9898

9999
### Host Board: Edit the Cloud Sketch
100100

101-
You can edit the sketch by clicking the **sketch tab** inside your **Thing page**. The sketch is automatically generated with the enough code to upload it and connect to the cloud.
101+
You can edit the sketch by clicking the **sketch tab** inside your **Thing page**. The sketch is automatically generated with enough code to upload it and connect it to the Cloud.
102102

103-
Before uploading you should add the following code:
103+
Before uploading, you should add the following code:
104104

105105
First include the headers that you need and declare the temperature sensor by adding the **temperature sensor ID**.
106106

@@ -114,7 +114,7 @@ Sensor tempSensor(SENSOR_ID_TEMP);
114114
115115
***You can find all the Sensor IDs at <https://docs.arduino.cc/tutorials/nicla-sense-me/cheat-sheet#sensor-ids>.***
116116
117-
Inside `void setup()` initialize the `Serial` communication, configure the variables and configuration for the Arduino IoT Cloud(properties), wait until the **Portenta H7** is connected to the Wi-Fi and IoT Cloud and after that it will setup the communication with the **Nicla Sense ME** and configure the temperature sensor.
117+
Inside `void setup()` initialize the `Serial` communication, set up the variables and configuration for the Arduino IoT Cloud (properties) and wait until the **Portenta H7** is connected to the Wi-Fi and IoT Cloud. At this point, the communication with the **Nicla Sense ME** will be set up and you can start configuring the temperature sensor.
118118
119119
***Note: Now we are using "NICLA_VIA_ESLOV". In case you mount it as a shield use "NICLA_AS_SHIELD" as the second parameter of the `begin()` function, or "NICLA_VIA_BLE" if you use Bluetooth® Low Energy.***
120120
@@ -150,11 +150,11 @@ Inside `void setup()` initialize the `Serial` communication, configure the varia
150150
}
151151
```
152152

153-
***If you use `yourSensor.begin()` it will be configured the same as with `yourSensor.configure(1,0)`.***
153+
***If you use `yourSensor.begin()`, it will be configured the same as with `yourSensor.configure(1,0)`.***
154154

155-
If the Nicla Sense ME shall communicate through Bluetooth® Low Energy, we recommend wrapping `BHY2Host.begin(false, NICLA_VIA_BLE)` in a `while` clause to make sure the connection is established before the sketch continues.
155+
If the Nicla Sense ME communicates through Bluetooth® Low Energy, we recommend wrapping `BHY2Host.begin(false, NICLA_VIA_BLE)` in a `while` clause to make sure the connection is established before the sketch continues.
156156

157-
Inside the `void loop()` function you will make the **Portenta H7** get all the needed data from the **Nicla Sense ME**, store and print the temperature sensor's value and update the data to the IoT Cloud.
157+
Inside the `void loop()` function you will make the **Portenta H7** get all the needed data from the **Nicla Sense ME**, store and print the temperature sensor value and update the data to the Arduino IoT Cloud.
158158

159159
```cpp
160160
void loop(){
@@ -168,7 +168,7 @@ void loop(){
168168
}
169169
```
170170

171-
Upload the sketch from the **sketch tab** by clicking the second button at the top left of the left side of the sketch bar. Once it has been uploaded you can see the temperature value that it is being uploaded by going to your **Thing Setup** tab, and looking at the last value of the **temperature**'s value, you can also open the serial monitor to see the live data.
171+
Upload the sketch from the **sketch tab** by clicking the second button at the top left of the left side of the sketch bar. Once it has been uploaded, you can see the temperature value just uploaded by going to your **Thing Setup** tab and looking at the last value of the **temperature** variable. You can also open the Serial Monitor to see your data live.
172172

173173
![Arduino IoT Cloud - Sketch tab](assets/IoTCloud-thingSketch.png)
174174

@@ -242,11 +242,11 @@ void onTemperatureChange() {
242242

243243
## Conclusion
244244

245-
In this tutorial you learned how to upload the temperature values from the Nicla sense to the IoT cloud. You followed the process to set up the Nicla board to send data via the Eslov connection, and you configured the IoT cloud to receive the temperature data.
245+
In this tutorial you learned how to upload the temperature values from the Nicla Sense ME to the Arduino IoT Cloud. You followed the process to set up the Nicla board in order to send data via ESLOV connection and you configured the Arduino IoT Cloud to receive the temperature data.
246246

247247
### Next Steps
248248

249-
- Try to upload other sensor data from he Nicla sense. You can see the available sensors in the [cheat sheet](https://docs.arduino.cc/tutorials/nicla-sense-me/cheat-sheet#sensor-data-over-eslov).
249+
- Try to upload other sensor data from he Nicla Sense ME. You can see the available sensors in the [cheat sheet](https://docs.arduino.cc/tutorials/nicla-sense-me/cheat-sheet#sensor-data-over-eslov).
250250
- Experiment with the dashboard to add more data for a more sophisticated project.
251251

252252
## Troubleshooting

0 commit comments

Comments
 (0)