Skip to content

Commit 2f9d4db

Browse files
updated I2C address change information
1 parent 488f426 commit 2f9d4db

File tree

1 file changed

+13
-5
lines changed
  • content/hardware/11.modulino/modulino-nodes/modulino-thermo/tutorials/how-general

1 file changed

+13
-5
lines changed

content/hardware/11.modulino/modulino-nodes/modulino-thermo/tutorials/how-general/content.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,19 @@ An example sketch, `AddressChanger`, is included with the library inside the `Ut
143143
To change the address:
144144
1. Connect the node to your board (remove any other nodes from the chain)
145145
2. Upload the AddressChanger sketch
146-
3. Open the Serial Monitor
147-
4. Ensure the correct baud rate is selected if displayed characters seem corrupted
148-
5. Select the new address and confirm
149-
![Address Selection](assets/I2CAdressChange.png)
150-
6. Valid I²C addresses range from 0x08 to 0x77 (7-bit values in hexadecimal format)
146+
3. Open the Serial Monitor (115200 baud)
147+
4. The sketch will scan and display all detected Modulino nodes with their current addresses
148+
5. When prompted, enter two hexadecimal numbers separated by a space in the format: `<current_address> <new_address>`
149+
6. **Important:** Enter addresses **without** the "0x" prefix and with a space between them (example: `3A 3B`)
150+
7. Special commands: Enter `<address> 0` to reset the device at the specified address to its default, or `0 0` to reset all devices to their defaults
151+
8. Valid I²C addresses range from **0x08 to 0x77** (7-bit hexadecimal format)
152+
153+
**Example usage:**
154+
```
155+
> 3A 3B (changes address from 0x3A to 0x3B)
156+
> 3C 0 (resets device at 0x3C to default address)
157+
> 0 0 (resets all devices to default addresses)
158+
```
151159

152160
When using a custom address in your sketch, specify this address when creating the module object:
153161
```arduino

0 commit comments

Comments
 (0)