Let's start with a simple arduino project. A blinking led. The digital pins of an Arduino have a maximum load rating of 40mA, so we do not want to exceed that. The voltage of the digital output pins are 5V.
So arduino digital output pins have these limitations :
An Imax=40mA and Vout=5V. The led needs up to 20mA maximum. So we can easily power it directly from arduino board.
From the Ohm's Law we have V=Iled*R => R = V/Iled = 5V/0.02A = 250 Ω. For security reasons we use a bigger resistor (330Ω) so that the Iled<Imax.
...continue reading "From an arduino project to a standalone one"