Skip to content

NIght Riders LED wiki

Yurner0 edited this page Oct 18, 2023 · 3 revisions

Welcome to the night_riders_led wiki!

There are many videos of LED projects using Arduino/ESP32. Now where do I start?


The first one

Overthinking

This time I'm creating something that looks like this, so nothing too complicated.

There were some doubts at first:

  • Which resistors needs to be used?

About 300 ohms to 10k ohms.

  • The LED lights are different in terms of voltage?

TLDR: Around 2V, don't exceed 10mA in the current.

In this case, LEDs connected to 5V no problem, but the current flowing through the diode (LED) should be around 10mA or lower.

Considering that Arduino output equals 5V and there is a 300 ohm resistor connected in series, then, if Vf = 2V:

$$V_{cc} = V_{f} + V_{r}$$

$$5 = 2 + V_{r}$$

$$3 = R * I$$

$${3 \over 300} = I$$

Therefore the current in this situation equals 0.01A = 10mA.

  • Input of the board, and I/O of the pins?

For the Arduino, input voltage is 5V, And the pins can output between 0 and 5 volts. For input, seems like is limited to 40mA to prevent damage.

For the ESP32, INput voltage is 3.3V, and the pins can output between 0 and 3.3 volts. For input, is also limited to 40mA.

Coding

For this part I'll be using Platform.IO extension for Visual Studio because it is cool.

Clone this wiki locally