Skip to content

Commit c3b7a8d

Browse files
authored
Updated articles for Arduino Cloud & Provisioning 2.0 [HC-1672, HC-1673, HC-1675, HC-1687] (#524)
* Updated and improved for Provisioning 2.0 * Updated for Provisioning 2.0 * Misc. fixes and enhancements * Update management of network credentials for provisioning 2.0 * Clarify requirements for Bluetooth provisioning * Refined introduction to article & USB section
1 parent 00de711 commit c3b7a8d

11 files changed

+329
-166
lines changed
Lines changed: 169 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,169 @@
1+
---
2+
title: "Add a device to Arduino Cloud"
3+
id: 360016495559
4+
---
5+
6+
Learn how to add supported devices to Arduino Cloud. For a more comprehensive introduction to Arduino Cloud, see [Getting Started With the Arduino Cloud](https://docs.arduino.cc/cloud/iot-cloud/tutorials/iot-cloud-getting-started).
7+
8+
In this article:
9+
10+
- [Add an Arduino board via serial (USB)](#add-an-arduino-board-via-serial-usb)
11+
- [Add an Arduino board via Bluetooth](#add-an-arduino-board-via-bluetooth)
12+
- [Add a compatible ESP32, ESP8266, or LoRaWAN device](#add-a-compatible-esp32-esp8266-or-lorawan-device)
13+
- [Add a manually configured device running Python, MicroPython, or Node.js](#add-a-manually-configured-device-running-python-micropython-or-nodejs)
14+
15+
For troubleshooting, see [If your device can't be added to Arduino Cloud](https://support.arduino.cc/hc/en-us/articles/360019355679-If-your-device-can-t-be-added-to-Arduino-Cloud).
16+
17+
---
18+
19+
## Add an Arduino board via serial (USB)
20+
21+
All Arduino boards supported by Arduino Cloud can be added via USB from a computer running the [Arduino Cloud Agent](https://support.arduino.cc/hc/en-us/articles/360014869820-Install-the-Arduino-Cloud-Agent).
22+
23+
Follow these steps:
24+
25+
1. Open the [Devices tab](https://app.arduino.cc/devices) in Arduino Cloud.
26+
27+
1. Click on the **Add Device** button.
28+
29+
1. Select **Arduino boards**.
30+
31+
1. Connect your board to your computer and select it from the list.
32+
33+
- If you don't see your board, try disconnecting and reconnecting it.
34+
35+
- If your board is still not detected, try double-pressing the reset button.
36+
37+
1. Confirm the board selection by clicking **Continue**.
38+
39+
1. Wait for Arduino Cloud to make any needed firmware updates. If prompted, disconnect and reconnect the board.
40+
41+
1. **Device configuration**.
42+
43+
- _Device name._ Use the default name, or change it. The device name can be changed later.
44+
- _Network._ Input network credentials. If the option does not appear, you can [configure this later in the device tab](https://support.arduino.cc/hc/en-us/articles/14416141314332-Configure-or-change-the-network-credentials-of-a-Thing).
45+
- _Device Setup / Device Provisioning._
46+
47+
1. After the configuration is complete, the device details page will open automatically.
48+
49+
- If you configured the network credentials in a previous step (available on supported devices only), it will connect to Arduino Cloud and appear as ONLINE after a few seconds.
50+
- If the network credentials were not configured in the previous step, the device will be OFFLINE until you associate the device to a **Thing** and upload the sketch to the device. <!-- TODO: Link to article -->
51+
52+
<!-- TODO:
53+
54+
- Save secrets for Nano ESP32
55+
56+
-->
57+
58+
---
59+
60+
## Add an Arduino board via Bluetooth
61+
62+
You can add supported devices via Bluetooth if they are running the preflashed [provisioning sketch](https://docs.arduino.cc/arduino-cloud/hardware/device-provisioning/). When this sketch is active, the onboard LED blinks in a heartbeat pattern (one long pulse followed by two short pulses). If your board is running a different sketch, [add it via USB instead](add-an-arduino-board-via-serial-usb).
63+
64+
Supported boards:
65+
66+
- Arduino Opta WiFi
67+
- Arduino UNO R4 WiFi
68+
69+
Follow these steps:
70+
71+
1. Open the [Devices tab](https://app.arduino.cc/devices) in Arduino Cloud.
72+
73+
2. Click on the **Add Device** button.
74+
75+
3. Select **Arduino boards**.
76+
77+
4. Select **Via Bluetooth**.
78+
79+
5. Select **Select Device**.
80+
81+
- If prompted, enable Bluetooth for your web browser. Then, restart your web browser and repeat the previous steps.
82+
83+
6. Select and pair your device in the browser dialog.
84+
85+
If your device does not appear, try the following:
86+
87+
- Ensure that your device is powered.
88+
- Reset the board's Cloud configuration:
89+
- UNO R4 WiFi: Connect Pin 2 and GND, until the LED turns off.
90+
- Opta: Press and hold the user button (BTN_USER) until the led (LED_USER) turns off.
91+
- Add the board via Serial (USB) instead.
92+
93+
7. Confirm that the LED on your device is solid and select **Continue**.
94+
95+
8. **Device configuration**.
96+
97+
- _Device name._ Use the default name, or change it. The device name can be changed later.
98+
- _Network._ Input network credentials.
99+
- _Device Setup / Device Provisioning._
100+
101+
9. After completing the device configuration, the device status page will open automatically. The device will connect to Arduino Cloud and appear as ONLINE after a few seconds.
102+
103+
---
104+
105+
## Add a compatible ESP32, ESP8266, or LoRaWAN device
106+
107+
> _Secrets:_ Secret keys cannot be recovered if lost. Make sure to save any Device ID and Secret key that's provided when adding an Arduino UNO R4 WiFi, Arduino Nano ESP32, or a 3rd party device (ESP32 and ESP8266).
108+
109+
1. Open the [Devices tab](https://app.arduino.cc/devices) in Arduino Cloud.
110+
111+
2. Click on the **Add Device** button.
112+
113+
3. Select **Compatible device**.
114+
115+
4. **Device provisioning.**
116+
117+
1. **Select device type**
118+
119+
- _ESP8266._ Select your ESP8266 in the list, then click Continue.
120+
- _ESP32._ Select your ESP32 in the list, then click Continue.
121+
- _LoRaWAN._ Select the following:
122+
- _Select region._ Make sure you select the [right frequency band for your region](https://www.thethingsnetwork.org/docs/lorawan/frequencies-by-country/).
123+
- _DevEUI._ A unique 64-bit identifier for your LoRaWAN device. Once you've registered a device, you can find its DevEUI within the device's details page in your TTN application. Many LoRaWAN devices also have their DevEUI printed on a label or sticker on the device itself.
124+
125+
2. **Device name.** Use the default name, or change it. The device name can be changed later.
126+
127+
3. **Set up device.** Wait for the process to complete. If prompted, save your **Device ID** and **Secret Key**.
128+
129+
5. After the configuration is complete, the device details page will open automatically. The device will be OFFLINE until you associate the device to a **Thing** and upload the sketch to the device.
130+
131+
<!-- If it's the first LoRaWAN device you set up, you will receive an email with the credentials to access [The Things Stack](https://arduino.eu1.cloud.thethings.industries/console/) console, to check the gateways nearby, or set up a new one. -->
132+
133+
Troubleshooting:
134+
135+
- **Error creating Lora device.** Ensure that the DevEUI is correct and not already in use.
136+
137+
---
138+
139+
## Add a manually configured device running Python, MicroPython, or Node.js
140+
141+
1. Open the [Devices tab](https://app.arduino.cc/devices) in Arduino Cloud.
142+
143+
2. Click on the **Add Device** button.
144+
145+
3. Select **Any device** under the Manual Setup section.
146+
147+
4. Confirm the information about manually configured devices by selecting **Continue**.
148+
149+
5. **Device provisioning.**
150+
151+
- _Select device type._ No input required.
152+
- _Give a name to the Device._ Use the default name, or change it. The device name can be changed later.
153+
- _Set up device._ Save your **Device ID** and **Secret Key**. Tick the checkbox to confirm and click **Confirm**.
154+
155+
6. After the configuration is complete, the device details page will open automatically. The device will be OFFLINE until you've configured it to connect to Arduino Cloud using the Device ID and Secret Key you saved in the previous step.
156+
157+
Learn more about manually configured devices:
158+
159+
- [Connect to Arduino Cloud (Python)](https://docs.arduino.cc/arduino-cloud/guides/python)
160+
- [Connect to Arduino Cloud (MicroPython)](https://docs.arduino.cc/arduino-cloud/guides/micropython)
161+
- [Connect to Arduino Cloud (Node.js)](https://docs.arduino.cc/arduino-cloud/guides/javascript)
162+
163+
---
164+
165+
## If you need help
166+
167+
See [If your device can't be added or won't connect to Arduino Cloud](https://support.arduino.cc/hc/en-us/articles/360019355679-If-your-device-is-not-connecting-to-IoT-Cloud).
168+
169+
<!-- markdownlint-disable-file HC001 -->

content/Arduino Cloud/Arduino IoT Cloud/Add-and-connect-a-device-to-Arduino-Cloud.md

Lines changed: 0 additions & 92 deletions
This file was deleted.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
title: Associate a Thing to a device
3+
---
4+
5+
Learn how to add or change the associated device of a Thing in Arduino Cloud.
6+
7+
---
8+
9+
## Follow these steps
10+
11+
1. Open the [Things tab](https://app.arduino.cc/things).
12+
13+
1. Click **Create Thing**, or open an existing Thing.
14+
15+
![The two locations that the "Create Thing" button can appear.](img/iot-thing-create.png)
16+
17+
1. Under "Associated Device", select **Select device** or **Change device**.
18+
19+
1. Do one of the following:
20+
21+
* Select **Associate** to link an existing device (if available).
22+
* Select **Set up a new device** to add and [link a new device](https://support.arduino.cc/hc/en-us/articles/360016495559).
23+
24+
You will automatically return to the Thing page once the device has been associated.
25+
26+
## Next steps
27+
28+
Once you've associated a device, you're ready to write and upload sketches.

content/Arduino Cloud/Arduino IoT Cloud/If-the-sketch-uploads-but-the-device-isn-t-online.md

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)