Skip to content

Commit ca8a71e

Browse files
committed
Content update (orange LED section)
1 parent 5289beb commit ca8a71e

File tree

4 files changed

+69
-3
lines changed

4 files changed

+69
-3
lines changed
779 KB
Loading
991 KB
Loading
380 KB
Loading

content/hardware/03.nano/boards/nano-r4/tutorials/01.user-manual/content.md

Lines changed: 69 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,17 @@ The complete STEP files are available and downloadable from the link below:
116116

117117
### Unboxing the Product
118118

119-
When opening the Nano R4 box, you will find the board and its corresponding documentation. Unlike other Arduino products, **the Nano R4 does not include additional cables**, so you will need a USB-C cable (available separately) to connect the board to your computer.
119+
When opening the Nano R4 box, you will find the board and its corresponding documentation. **The Nano R4 does not include additional cables**, so you will need a USB-C cable ([available separately here](https://store.arduino.cc/products/usb-cable2in1-type-c)) to connect the board to your computer.
120+
121+
![Unboxing the Nano R4 board](assets/user-manual-11.png)
122+
123+
*** ***
120124

121125
The Nano R4 is a standalone device that can be programmed directly without requiring additional boards. However, for more complex projects, you can easily combine it with Arduino shields compatible with the Nano family or connect it to other Arduino devices through its onboard Qwicc connector.
122126

123127
### Connecting the Board
124128

125-
The Nano R4 can be connected to your computer very simply using its onboard USB-C connector. It can also be integrated into larger projects using the following:
129+
The Nano R4 can be connected to your computer using its onboard USB-C connector. It can also be integrated into larger projects using the following:
126130

127131
- **Direct USB-C connection**: For programming, power supply and serial communication with the computer
128132
- **Pin connection**: For integration into breadboards or custom PCBs
@@ -316,4 +320,66 @@ You should now see the built-in RGB LED cycling through red, green, and blue col
316320

317321
Additionally, you can open the Arduino IDE's Serial Monitor (Tools > Serial Monitor) to see the status messages that the example sketch sends each time the RGB LEDs state changes.
318322

319-
![Arduino IDE Serial Monitor output for the RGB LED example sketch](assets/user-manual-10.png)
323+
![Arduino IDE Serial Monitor output for the RGB LED example sketch](assets/user-manual-10.png)
324+
325+
### Orange LED
326+
327+
The Nano R4 also features a built-in orange user LED that can be used for basic status indications and debugging purposes.
328+
329+
![Built-in user LED of the Nano R4 board](assets/user-manual-12.png)
330+
331+
332+
The built-in user LED can be accessed through the following macro definition:
333+
334+
| **Built-in LED** | **Macro Definition** | **Microcontroller Pin** |
335+
|:----------------:|:--------------------:|:-----------------------:|
336+
| Orange User LED | `LED_BUILTIN` | `P204` |
337+
338+
***Unlike the RGB LED, the built-in user LED on the Nano R4 operates with standard logic levels. This means that a voltage level of `HIGH` will turn the LED on, and a voltage level of `LOW` will turn it off.***
339+
340+
The following example sketch demonstrates how to control the built-in user LED:
341+
342+
```arduino
343+
/**
344+
User LED Example for the Arduino Nano R4 Board
345+
Name: nano_r4_user_led.ino
346+
Purpose: This sketch demonstrates how to control the built-in
347+
user LED of the Arduino Nano R4 board.
348+
349+
@author Arduino Product Experience Team
350+
@version 1.0 01/06/25
351+
*/
352+
353+
void setup() {
354+
// Initialize serial communication at 115200 baud
355+
Serial.begin(115200);
356+
357+
// Configure LED_BUILTIN pin as output
358+
pinMode(LED_BUILTIN, OUTPUT);
359+
360+
// Turn off LED initially
361+
digitalWrite(LED_BUILTIN, LOW);
362+
363+
Serial.println("- Arduino Nano R4 - User LED Example started...");
364+
}
365+
366+
void loop() {
367+
// Turn on the built-in user LED
368+
digitalWrite(LED_BUILTIN, HIGH);
369+
Serial.println("- User LED on!");
370+
delay(1000);
371+
372+
// Turn off the built-in user LED
373+
digitalWrite(LED_BUILTIN, LOW);
374+
Serial.println("- User LED off!");
375+
delay(1000);
376+
}
377+
```
378+
379+
You should now see the built-in orange user LED blinking on and off at 1-second intervals, repeating this pattern continuously.
380+
381+
![Onboard RGB user LED blinking](assets/user-manual-13.gif)
382+
383+
Additionally, you can open the Arduino IDE's Serial Monitor (Tools > Serial Monitor) to see the status messages that the example sketch sends each time the user LED state changes.
384+
385+
![Arduino IDE Serial Monitor output for the orange LED example sketch](assets/user-manual-7.png)

0 commit comments

Comments
 (0)