Skip to content

Commit d2ee1ed

Browse files
authored
Merge ff53d26 into a0ebdc9
2 parents a0ebdc9 + ff53d26 commit d2ee1ed

File tree

1 file changed

+116
-11
lines changed
  • content/hardware/09.kits/maker/nesso-n1/tutorials/user-manual

1 file changed

+116
-11
lines changed

content/hardware/09.kits/maker/nesso-n1/tutorials/user-manual/content.md

Lines changed: 116 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ software:
2020
- ide-v1
2121
- ide-v2
2222
- iot-cloud
23-
- web-editor
2423
---
2524

2625
The **Arduino® Nesso N1** is an all-in-one enclosed development board. Based on the ESP32-C6 System on Chip (SoC), it integrates a suite of communication protocols, including 2.4 GHz Wi-Fi® 6, Bluetooth® 5.3 LE, 802.15.4 (Thread/Zigbee®), and long-range LoRa®. It also includes a 1.14" color touchscreen, buttons, and a built-in LiPo battery for immediate user interaction in portable applications.
@@ -38,8 +37,8 @@ This document serves as a comprehensive user manual for the Nesso N1, providing
3837

3938
### Software Requirements
4039

41-
- [Arduino IDE](https://www.arduino.cc/en/software) or [Arduino Cloud Editor](https://app.arduino.cc/sketches)
42-
- [ESP32 Boards core by Espressif](https://github.com/espressif/arduino-esp32)
40+
- [Arduino IDE](https://www.arduino.cc/en/software) (v2.0 or higher recommended)
41+
- [ESP32 Boards core by Espressif](https://github.com/espressif/arduino-esp32) (v3.3.3 or higher)
4342

4443
## Product Overview
4544

@@ -72,25 +71,133 @@ The full datasheet is available as a downloadable PDF from the link below:
7271

7372
## Installation
7473

75-
The Nesso N1 can be programmed using the Arduino IDE or the Arduino Cloud Editor. To get started, you will need to install the appropriate board package.
74+
The Nesso N1 is programmed using the desktop Arduino IDE. To get started, you will need to install the appropriate board package.
7675

7776
### Arduino IDE
7877

79-
To use the board in the Arduino IDE, you need to install the latest version of the **esp32 by Espressif Systems** package from the boards manager.
78+
To use the board in the Arduino IDE, you must install the latest version of the **esp32 by Espressif Systems** package. Support for the Nesso N1 requires version **3.3.3** or newer.
8079

8180
1. Open the Arduino IDE.
8281
2. Navigate to **Boards Manager** (**Tools > Board > Boards Manager...**).
8382
3. Search for **"esp32"** and find the package by **Espressif Systems**.
84-
4. Click the **Install** button.
83+
4. Click the **Install** (or **Update**) button.
8584
5. Once installed, select **Arduino Nesso N1** from the **Tools > Board > esp32** menu.
8685

8786
![Installing the esp32 Boards core in the Arduino IDE](assets/board-manager.png)
8887

8988
### Arduino Cloud Editor
9089

91-
The Arduino Cloud Editor is an online IDE that supports the Nesso N1 without requiring manual installation of the board package.
90+
Direct support for the Nesso N1 in the **Arduino Cloud Editor** (the online web IDE) is coming soon. Currently, the Cloud Editor does not support the specific ESP32 core version required for this board.
9291

93-
Read more in the [Getting Started with the Cloud Editor](https://docs.arduino.cc/arduino-cloud/guides/editor/) guide.
92+
Please use the **Arduino IDE** (desktop version) to compile and upload code to the Nesso N1.
93+
94+
## Arduino IoT Cloud
95+
96+
Although the Nesso N1 cannot yet be programmed directly via the Cloud Editor, you can still use it with **Arduino IoT Cloud** dashboards and variables. This is done by configuring it as a "Manual Device" and uploading the sketch from your desktop IDE.
97+
98+
Follow these steps to connect your Nesso N1 to the Cloud.
99+
100+
### 1. Create a Manual Device
101+
102+
1. Go to the [Arduino IoT Cloud Devices page](https://app.arduino.cc/devices).
103+
2. Click **+ DEVICE**.
104+
3. Select **Any Device** (under Manual Setup).
105+
4. Click **Continue**.
106+
5. Name your device (e.g., "MyNessoN1") and confirm.
107+
6. **Important:** A screen will appear with your **Device ID** and **Secret Key**. Save these credentials in a secure place immediately; you will not be able to view the Secret Key again.
108+
7. **Check the box** confirming you have saved your credentials and click **Continue**.
109+
110+
### 2. Create a Thing
111+
112+
1. Go to the [Things page](https://app.arduino.cc/things).
113+
2. Click **+ THING** to create a new Thing.
114+
3. Click **Select Device** and associate it with the "Manual Device" you just created.
115+
4. Click **ADD** in Cloud Variables section to create a test variable: **Name**: `led`, **Type**: Boolean, **Permission**: Read & Write, **Update Policy**: On Change.
116+
5. Click **Add Variable** to confirm.
117+
118+
### 3. Create a Dashboard
119+
120+
1. Go to the [Dashboards page](https://app.arduino.cc/dashboards).
121+
2. Click **+ DASHBOARD** and click **EDIT**.
122+
3. Click **ADD** and select the **Things** tab.
123+
4. Select your Thing and create a widget for the `led` variable (a Switch widget is recommended).
124+
5. Click **DONE**.
125+
126+
### 4. Program the Board via Desktop IDE
127+
128+
Because "Manual Devices" do not automatically generate a downloadable sketch, you must create one manually.
129+
130+
1. Open the **Arduino IDE** on your computer.
131+
2. Install the **ArduinoIoTCloud** library via the Library Manager (**Tools > Manage Libraries...**).
132+
3. Create a new sketch (**File > New Sketch**).
133+
4. To keep your credentials secure, create a new tab named `arduino_secrets.h` (click the 3-dot icon near the tab bar > **New Tab**).
134+
5. Paste the following code into `arduino_secrets.h` and fill in your details:
135+
136+
```cpp
137+
#define SECRET_WIFI_SSID "YOUR_WIFI_SSID"
138+
#define SECRET_WIFI_PASS "YOUR_WIFI_PASSWORD"
139+
#define SECRET_DEVICE_ID "YOUR_DEVICE_ID" // From Step 1
140+
#define SECRET_DEVICE_KEY "YOUR_SECRET_KEY" // From Step 1
141+
```
142+
143+
6. Create another new tab named `thingProperties.h` and paste the following configuration code:
144+
145+
```cpp
146+
#include <ArduinoIoTCloud.h>
147+
#include "arduino_secrets.h"
148+
149+
void onLedChange();
150+
151+
bool led;
152+
153+
WiFiConnectionHandler ArduinoIoTPreferredConnection(SECRET_WIFI_SSID, SECRET_WIFI_PASS);
154+
155+
void initProperties(){
156+
ArduinoCloud.addProperty(led, Permission::ReadWrite).onUpdate(onLedChange);
157+
158+
ArduinoCloud.setBoardId(SECRET_DEVICE_ID);
159+
ArduinoCloud.setSecretDeviceKey(SECRET_DEVICE_KEY);
160+
}
161+
```
162+
163+
7. Finally, paste the main application code into your `.ino` file:
164+
165+
```cpp
166+
#include "thingProperties.h"
167+
168+
void setup() {
169+
Serial.begin(115200);
170+
delay(1500); // Wait for Serial Monitor
171+
172+
// Initialize the Nesso N1 built-in LED
173+
pinMode(LED_BUILTIN, OUTPUT);
174+
175+
// Initialize Cloud properties and connection
176+
initProperties();
177+
ArduinoCloud.begin(ArduinoIoTPreferredConnection);
178+
179+
// Set debug level to see connection status in Serial Monitor
180+
setDebugMessageLevel(2);
181+
ArduinoCloud.printDebugInfo();
182+
}
183+
184+
void loop() {
185+
ArduinoCloud.update();
186+
}
187+
188+
// This function is called whenever the 'led' variable changes in the Cloud
189+
void onLedChange() {
190+
// The Nesso N1 LED uses inverted logic (LOW is ON)
191+
if (led) {
192+
digitalWrite(LED_BUILTIN, LOW);
193+
} else {
194+
digitalWrite(LED_BUILTIN, HIGH);
195+
}
196+
}
197+
```
198+
199+
8. Select **Arduino Nesso N1** as your board and upload the sketch.
200+
9. Open the **Serial Monitor** to verify the connection. Once connected, you can toggle the switch on your Cloud Dashboard to control the LED on the board.
94201

95202
## First Use
96203

@@ -1415,6 +1522,4 @@ Join our community forum to connect with other Nesso N1 users, share your experi
14151522

14161523
Please get in touch with our support team if you need personalized assistance or have questions not covered by the help and support resources described before. We are happy to help you with any issues or inquiries about the Nesso N1.
14171524

1418-
- [Contact us page](https://www.arduino.cc/en/contact-us/)
1419-
1420-
1525+
- [Contact us page](https://www.arduino.cc/en/contact-us/)

0 commit comments

Comments
 (0)