Lesson 38 – Arduino C;C++ Multiple Digital Write Output

121 Просмотры
Издатель
In this lesson I will show you how to execute multiple sequence of digital output using 2 LED, you may add more LED and follow the C coding along. The concept of blinking two LED's is similar to the blinking of a single LED. As we know, we can use the resistance of any value, so let's take the resistors of 470 Ohms. The resistors reduce the amount of current reaching the LED, which saves the LED from being burnt.
We can also use other resistors depending on the circuit limit and requirements.
Here, we will use the digital output pin number 13 and 7. The positive terminal of the red LED is connected to the PIN 13, and the negative terminal (anode) is connected to the ground.
Similarly, the positive terminal (cathode) of the green LED is connected to PIN 7 and the negative terminal is connected to the ground.
As mentioned, two resistors each of 470 Ohms, will be connected in series to the two LEDs in the project.
Категория
Язык программирования C++
Комментариев нет.