Note
Also see Getting Started With the Arduino Cloud in Arduino Docs.
Connecting a new device to Arduino Cloud consists of three steps:
- Add the device to Arduino Cloud. Enables the device for use with Arduino Cloud.
- Configure the device as a Thing. This will generate a sketch that can be uploaded to the device, allowing it to connect to Arduino Cloud.
- Upload the sketch to the device. Upload the Thing sketch to the device.
You’ll need an Arduino account and the Arduino Cloud Agent installed and running on your computer.
Set-up instructions
Step 1: Add the device
-
Go to Arduino Cloud and open the Devices tab.
-
Click the Add Device button in the top-right or middle of the page.
-
Select your device type and set up a compatible Arduino board or third party device automatically. Alternatively, you can mannually setup your device.
Hover over the i for a full list of compatible devices.
-
Proceed with the instructions to add your device.
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).
- LoRaWAN®: Make sure you select the right frequency band for your region. When completing the setup, you’ll receive a registration email for your The Things Stack Network Account.
-
When finished, your new device will be added to your list of devices. Note that it will have an offline status at this point.
Step 2: Create and configure a Thing
-
Open the Things tab.
-
Click Create Thing.
-
Configure Device and Network for the new Thing:
-
Click the Associated Device selection button and select your device.
-
Click the Network configure button and enter the network credentials.
- Wi-Fi: Enter your Wi-Fi name (SSID) and password (encryption key).
- Arduino SIM: Use these credentials.
- Arduino with LoRa®: The credentials are added automatically.
- ESP32 and ESP8266: Enter the secret key that was provided when adding the device.
-
Step 3: Upload the Thing sketch
-
With the Thing open, open the Sketch tab.
-
Click the Upload button and wait for the process to complete.
-
When the upload is finished, go back to the Thing setup tab.
-
After a short while, your device should come online. You may have to refresh the page.
Note
Device status is not supported by the LoRa protocol, see About device status in Arduino Cloud.
Troubleshooting
See If your device can’t be added or won’t connect to Arduino Cloud.