Control 8-segement display with IR remote
Demo video for 8-segment display controlled by IR remote.
Circuit drawing
The IR receiver & 7-segment display are connected to the microcontroller’s output pins. Resistors are connected in series with the 7-segment display to limit current.
The circuit is is powered via USB connected to the Arudino microcontroller.
Calculating resistor values
7-segment display LED resistor
Because each red LED that makes up the 7 segments can operate safely within $\leq 30 \text{mA}$ of current, we need to use resisters to reduce the amount of current going through each LED.
Since we are connecting the resister & the LED in series, the amount of current through the LED is the same as that for the resister ($I_\text{L} = I_\text{r}$). This also means that the sum of voltage drop across the resister and LED should be equal to the voltage provided by the Arduino microcontroller (5V).
With these information, we calculate the minimum resistance by applying Ohm’s law on the resister.
$$
\begin{align*}
V_\text{r} &= I_\text{r} R_\text{r} && \text{Ohm’s law}\cr
V_\text{PSU} - V_\text{L} &= I_\text{L} R_\text{r} &&\text{Substitute resister V & I}\cr
5\texttt{V} - V_\text{L} &= 20\texttt{mA} \cdot R_\text{r}\cr
\end{align*}
$$
A 220 Ω resister is used for the red LEDs because these LEDs have a voltage drop of 1.7V. Their resisters’ resistance to be at least
$$
\begin{align*}
V&=IR\cr
5\;\texttt{V} - 1.7\;\texttt{V} &=20\;\texttt{mA} \cdot \textrm{R}\cr
\frac{3.3\;\texttt{V}}{0.02\;\texttt{A}} &= \textrm{R}\cr
\textrm{R} &= 165 \;\Omega
\end{align*}
$$
Using a resistor with higher resistance than what is required here will not have an adverse effect on the longevity of the LED, it will simply cause it to appear a bit dimmer.