From d11cee1e37a553066a222e966c3e3bf1fef1d75a Mon Sep 17 00:00:00 2001 From: pedromsousalima <32345730+pedromsousalima@users.noreply.github.com> Date: Thu, 19 Sep 2024 10:15:45 +0200 Subject: [PATCH 1/2] Add information on resistor --- content/built-in-examples/01.basics/Blink/Blink.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/built-in-examples/01.basics/Blink/Blink.md b/content/built-in-examples/01.basics/Blink/Blink.md index 2b0e1193fc..f00814fe84 100644 --- a/content/built-in-examples/01.basics/Blink/Blink.md +++ b/content/built-in-examples/01.basics/Blink/Blink.md @@ -59,7 +59,7 @@ This example uses the built-in LED that most Arduino boards have. This LED is co If you want to light an external LED with this sketch, you need to build this circuit, where you connect one end of the resistor to the digital pin correspondent to the *LED_BUILTIN* constant. Connect the long leg of the LED (the positive leg, called the anode) to the other end of the resistor. Connect the short leg of the LED (the negative leg, called the cathode) to the GND. In the diagram below we show an UNO board that has D13 as the LED_BUILTIN value. -The value of the resistor in series with the LED may be of a different value than 220 ohms; the LED will light up also with values up to 1K ohm. +The resistor is essencial for safe operation as it limits the current flowing through the LED, preventing damage to both the LED and the Arduino's output pin. You can choose the resistor value based on the desired current using Ohm's Law (V = IR) where V is the voltage of your board (5V or 3.3V) minus the forward voltage for the LED you are using (typical for red would be 1.8 to 2.2 volts). In this case, using a 220-ohm resistor with an Arduino UNO R3 (a 5V board) limits the current to a safe level for both the LED and the Arduino pin. Adjusting the resistor value allows you to control the LED's brightness while ensuring safe operation. For 5V boards you can expect the LED to be visible to a resistor value of up to 1K Ohm. ![](assets/circuit.png) From 0e5456c5909a1020cf41b926ab28d123df082de3 Mon Sep 17 00:00:00 2001 From: pedromsousalima <32345730+pedromsousalima@users.noreply.github.com> Date: Thu, 19 Sep 2024 10:26:41 +0200 Subject: [PATCH 2/2] Linter --- content/built-in-examples/01.basics/Blink/Blink.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/built-in-examples/01.basics/Blink/Blink.md b/content/built-in-examples/01.basics/Blink/Blink.md index f00814fe84..1553b8ee64 100644 --- a/content/built-in-examples/01.basics/Blink/Blink.md +++ b/content/built-in-examples/01.basics/Blink/Blink.md @@ -59,7 +59,7 @@ This example uses the built-in LED that most Arduino boards have. This LED is co If you want to light an external LED with this sketch, you need to build this circuit, where you connect one end of the resistor to the digital pin correspondent to the *LED_BUILTIN* constant. Connect the long leg of the LED (the positive leg, called the anode) to the other end of the resistor. Connect the short leg of the LED (the negative leg, called the cathode) to the GND. In the diagram below we show an UNO board that has D13 as the LED_BUILTIN value. -The resistor is essencial for safe operation as it limits the current flowing through the LED, preventing damage to both the LED and the Arduino's output pin. You can choose the resistor value based on the desired current using Ohm's Law (V = IR) where V is the voltage of your board (5V or 3.3V) minus the forward voltage for the LED you are using (typical for red would be 1.8 to 2.2 volts). In this case, using a 220-ohm resistor with an Arduino UNO R3 (a 5V board) limits the current to a safe level for both the LED and the Arduino pin. Adjusting the resistor value allows you to control the LED's brightness while ensuring safe operation. For 5V boards you can expect the LED to be visible to a resistor value of up to 1K Ohm. +The resistor is essential for safe operation as it limits the current flowing through the LED, preventing damage to both the LED and the Arduino's output pin. You can choose the resistor value based on the desired current using Ohm's Law (V = IR) where V is the voltage of your board (5V or 3.3V) minus the forward voltage for the LED you are using (typical for red would be 1.8 to 2.2 volts). In this case, using a 220-ohm resistor with an Arduino UNO R3 (a 5V board) limits the current to a safe level for both the LED and the Arduino pin. Adjusting the resistor value allows you to control the LED's brightness while ensuring safe operation. For 5V boards you can expect the LED to be visible to a resistor value of up to 1K Ohm. ![](assets/circuit.png)