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/09.kits/maker/nesso-n1/tutorials/user-manual/content.md
+28-27Lines changed: 28 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -178,7 +178,7 @@ These pins are directly controlled by the main microcontroller.
178
178
179
179
### I/O Expander Pins
180
180
181
-
The Nesso N1 uses two PI4IOE5V6408 I/O expanders (addresses `0x43` and `0x44`) to manage additional pins over the I2C bus. These pins are accessed in code using special `ExpanderPin` objects.
181
+
The Nesso N1 uses two PI4IOE5V6408 I/O expanders (addresses `0x43` and `0x44`) to manage additional pins over the I2C bus. These pins are accessed in code using special `ExpanderPin` objects, which are pre-defined as part of the Nesso N1 board package. You do not need to include any extra libraries to use them.
To interact with the battery system from your sketch, the Nesso N1 core provides a built-in `NessoBattery` object.
397
+
To interact with the battery system from your sketch, the Nesso N1 board package provides a built-in `NessoBattery` object named `battery`. It is available for use in your sketch without needing to include a specific library.
398
398
399
399
400
400
### Enable Charging
@@ -483,7 +483,7 @@ Additionally the `POWEROFF` expander pin allows you to shut down the device prog
483
483
484
484
### User Buttons
485
485
486
-
The board has two physical buttons, **KEY1** and **KEY2**, that are connected to the I/O expander. These can be read using `digitalRead()`.
486
+
The board has two physical buttons, **KEY1** and **KEY2**, that are connected to the I/O expander. These can be read using `digitalRead()`.
487
487
488
488

489
489
@@ -1014,27 +1014,23 @@ void loop() {
1014
1014
}
1015
1015
```
1016
1016
1017
-
#### Commissioning and Testing Your Matter Device
1017
+
#### How to Configure and Test Your Matter Device
1018
1018
1019
-
**1. To Run as Matter over Thread:**
1020
-
***Requirements:** A **Thread Border Router** must be active on your network.
1021
-
***Action:** Ensure the three `#define` flags at the top of the sketch are active (`CHIP_DEVICE_CONFIG_ENABLE_THREAD 1`, `CHIP_DEVICE_CONFIG_ENABLE_WIFI 0`), then upload.
1019
+
The same sketch can be used for both Matter over Wi-Fi® and Matter over Thread. The behavior is controlled by **compile-time flags** at the top of the code.
1022
1020
1023
-
**2. To Run as Matter over Wi-Fi®:**
1024
-
***Requirements:**The Nesso N1 and your Matter Controller must be on the same Wi-Fi network.
1025
-
***Action:**In the sketch:
1026
-
1.**Comment out or delete** the three `#define` flags.
1027
-
2. Uncomment the `ssid` and `password` variables and fill in your network credentials.
1028
-
3. Uncomment the `if (!CHIP_DEVICE_CONFIG_ENABLE_THREAD)` block inside the `setup()` function.
1029
-
4. Upload the sketch.
1021
+
**1. To Run as Matter over Wi-Fi®:**
1022
+
***Action:**In the sketch, **comment out or delete** the three `#define` flags related to Thread. Fill in your Wi-Fi® credentials in the `ssid` and `password` variables.
1023
+
***Requirements:**Your Nesso N1 and Matter Controller (e.g., smartphone) must be on the same Wi-Fi® network.
1024
+
1025
+
**2. To Run as Matter over Thread:**
1026
+
***Action:** In the sketch, ensure the three `#define` flags for Thread are **active and not commented out**.
1027
+
***Requirements:** You must have a **Thread Border Router** (e.g., a compatible Google Nest Hub or Apple HomePod) active on your network.
1030
1028
1031
1029
**3. Commissioning the Device:**
1032
-
***Requirements:** A **Matter Controller** (e.g., Google Home app, Apple Home, `chip-tool`).
1033
-
***Process:**
1034
-
1. Open the Serial Monitor. You will see a manual pairing code printed every few seconds.
1035
-
2. Open your Matter Controller app and choose to add a new device.
1036
-
3. When prompted, enter the manual pairing code from the Serial Monitor.
1037
-
4. Follow the on-screen instructions to complete the setup.
1030
+
After uploading the correctly configured sketch:
1031
+
1. Open the Serial Monitor. A manual pairing code will be printed every few seconds.
1032
+
2. Open your Matter Controller app (e.g., Google Home, Apple Home) and choose to add a new device.
1033
+
3. When prompted, enter the manual pairing code from the Serial Monitor to complete the setup.
1038
1034
1039
1035
**4. Control the Device:** Once commissioned, a new light bulb device will appear in your app or be controllable via the command line tool. You can now toggle it on and off to control the Nesso N1's built-in LED.
1040
1036
@@ -1066,17 +1062,20 @@ The following examples demonstrate basic LoRa® peer-to-peer (P2P) communication
1066
1062
1067
1063
##### LoRa® Transmitter Example
1068
1064
1069
-
This example configures the Nesso N1 to send a "Hello World!" packet every five seconds. Remember to set the `LORA_FREQUENCY` variable to match your geographical region.
1065
+
This example configures the Nesso N1 to send a "Hello World!" packet every five seconds.
1066
+
1067
+
***WARNING: You must configure the LoRa® frequency (`LORA_FREQUENCY`) variable to match your geographical region. to a value that is legal for your geographical region. Transmitting on an unauthorized frequency can result in fines. Common frequencies are 915.0 MHz for North America/Australia, 868.0 MHz for Europe, and 433.0 MHz for Asia.***
1070
1068
1071
1069
```arduino
1072
1070
#include <RadioLib.h>
1073
1071
1074
-
// Set the LoRa® frequency based on your region
1072
+
// LoRa® frequency regions
1075
1073
// Europe: 868.0
1076
1074
// North America: 915.0
1077
1075
// Australia: 915.0
1078
1076
// Asia: 433.0
1079
-
const float LORA_FREQUENCY = 915.0;
1077
+
1078
+
const float LORA_FREQUENCY = ; // Set the LoRa® frequency based on your region
1080
1079
1081
1080
// Initialize the radio module, passing RADIOLIB_NC for the reset pin.
1082
1081
// The reset will be handled manually.
@@ -1131,12 +1130,13 @@ This example configures a second Nesso N1 to listen for LoRa® packets and print
1131
1130
```arduino
1132
1131
#include <RadioLib.h>
1133
1132
1134
-
// Set the LoRa® frequency based on your region
1133
+
// LoRa® frequency regions
1135
1134
// Europe: 868.0
1136
1135
// North America: 915.0
1137
1136
// Australia: 915.0
1138
1137
// Asia: 433.0
1139
-
const float LORA_FREQUENCY = 915.0;
1138
+
1139
+
const float LORA_FREQUENCY = ; // Set the LoRa® frequency based on your region
1140
1140
1141
1141
// Initialize the radio module, passing RADIOLIB_NC for the reset pin.
1142
1142
SX1262 radio = new Module(LORA_CS, LORA_IRQ, RADIOLIB_NC, LORA_BUSY);
@@ -1358,13 +1358,14 @@ You can check our [Modulino family](https://store.arduino.cc/collections/modulin
1358
1358
1359
1359
### Grove Connector
1360
1360
1361
-
The Nesso N1 also includes one standard **Grove** connector. It provides a 5 V interface with two digital I/O pins (`GROVE_IO_0` on GPIO5, `GROVE_IO_1` on GPIO4).
1361
+
The Nesso N1 also includes one standard **Grove** connector. It provides a 5 V interface with two digital I/O pins (`GROVE_IO_0` on GPIO5, `GROVE_IO_1` on GPIO4), making it compatible with the extensive ecosystem of [Grove modules](https://search.arduino.cc/search?q=grove%20module&tab=store), including those from [M5Stack](https://shop.m5stack.com/pages/search-results-page?q=grove&page=1&rb_tags=ACTUATORS%7CSENSOR) and [Arduino Sensor Kit](https://store.arduino.cc/products/sensor-kit-base).
1362
1362
1363
1363

1364
1364
1365
1365
### 8-Pin Expansion Port
1366
1366
1367
-
An 8-pin female header provides access to additional I/O and power pins. It is designed to be compatible with the **M5StickC HAT** series of expansion boards.
1367
+
An 8-pin female header provides access to additional I/O and power pins. It is designed to be fully compatible with the **M5StickC HAT** series of expansion boards, allowing you to easily add functionality with modules for everything from sensors to communication. You can explore the range of compatible HATs on the [M5Stack store](https://shop.m5stack.com/collections/for-stick).
0 commit comments