Skip to content

Commit b985d33

Browse files
committed
updated content
1 parent 44ba0fc commit b985d33

File tree

1 file changed

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

1 file changed

+28
-27
lines changed

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

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ These pins are directly controlled by the main microcontroller.
178178

179179
### I/O Expander Pins
180180

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.
182182

183183
| Pin Object | Expander Port | Function |
184184
| :-------------------- | :------------ | :------------------------------- |
@@ -394,7 +394,7 @@ void loop() {
394394
## Battery
395395

396396

397-
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.
398398

399399

400400
### Enable Charging
@@ -483,7 +483,7 @@ Additionally the `POWEROFF` expander pin allows you to shut down the device prog
483483

484484
### User Buttons
485485

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()`.
487487

488488
![User Buttons](assets/programmable-buttons.png)
489489

@@ -1014,27 +1014,23 @@ void loop() {
10141014
}
10151015
```
10161016

1017-
#### Commissioning and Testing Your Matter Device
1017+
#### How to Configure and Test Your Matter Device
10181018

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.
10221020

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.
10301028

10311029
**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.
10381034

10391035
**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.
10401036

@@ -1066,17 +1062,20 @@ The following examples demonstrate basic LoRa® peer-to-peer (P2P) communication
10661062

10671063
##### LoRa® Transmitter Example
10681064

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.***
10701068

10711069
```arduino
10721070
#include <RadioLib.h>
10731071
1074-
// Set the LoRa® frequency based on your region
1072+
// LoRa® frequency regions
10751073
// Europe: 868.0
10761074
// North America: 915.0
10771075
// Australia: 915.0
10781076
// Asia: 433.0
1079-
const float LORA_FREQUENCY = 915.0;
1077+
1078+
const float LORA_FREQUENCY = ; // Set the LoRa® frequency based on your region
10801079
10811080
// Initialize the radio module, passing RADIOLIB_NC for the reset pin.
10821081
// The reset will be handled manually.
@@ -1131,12 +1130,13 @@ This example configures a second Nesso N1 to listen for LoRa® packets and print
11311130
```arduino
11321131
#include <RadioLib.h>
11331132
1134-
// Set the LoRa® frequency based on your region
1133+
// LoRa® frequency regions
11351134
// Europe: 868.0
11361135
// North America: 915.0
11371136
// Australia: 915.0
11381137
// Asia: 433.0
1139-
const float LORA_FREQUENCY = 915.0;
1138+
1139+
const float LORA_FREQUENCY = ; // Set the LoRa® frequency based on your region
11401140
11411141
// Initialize the radio module, passing RADIOLIB_NC for the reset pin.
11421142
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
13581358

13591359
### Grove Connector
13601360

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).
13621362

13631363
![Grove Connector](assets/grove-connector.png)
13641364

13651365
### 8-Pin Expansion Port
13661366

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).
1368+
13681369

13691370
![8 pins Expansion Port](assets/expansion-port.png)
13701371

0 commit comments

Comments
 (0)