-
Notifications
You must be signed in to change notification settings - Fork 0
NIght Riders LED wiki
There are many videos of LED projects using Arduino/ESP32. Now where do I start?
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:
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.
For this part I'll be using Platform.IO extension for Visual Studio because it is cool.