官术网_书友最值得收藏!

  • Mastering Arduino
  • Jon Hoffman
  • 326字
  • 2021-07-23 18:57:49

Light up LED

Now that we have discussed the basics of electrical circuits, let's build our first circuit. In this circuit, we will simply light up a LED. We will start off with a look at the schematic diagram, which will tell us how to build the circuit:

In this diagram, we can see that the circuit consists of one 9-volt power source (9-volt battery) one LED and one resistor. One of the first questions people new to circuits ask is how we calculate the value of the resistor. To calculate this value, we need to know what the forward voltage for the LED is and the maximum current it can take without blowing. The forward voltage is the voltage amount required before the LED will conduct electricity and the voltage drop that will occur. If you purchase the LED from a good electronic store, they should have a datasheet that will tell you the forward voltage and the maximum current the LED can take.

I would recommend writing these items down, so you will have it later when you forget where you purchased the LEDs from.

We use the forward voltage and maximum current in the following formula to figure out what size resistor we need:

In this formula, the voltage marked with the S is the voltage source, which is 9V in this example. The voltage and current marked with LED is the forward voltage and maximum current, respectively, for the LED. The LED I am using for this example is 3.4 volts and 20 milliamps. This gives a value of (9 - 3.4 volts)/20 milliamps, which are 280 ohms. Since I do not have a resistor with a value of 280 ohms, I rounded it up to the next highest value with is 330 ohms as shown in the schematic.

The following photograph shows how I connected everything:

If you have everything connected correctly the LED will light up when the battery is connected.

主站蜘蛛池模板: 馆陶县| 巨野县| 维西| 泸西县| 渝中区| 鲁山县| 乐至县| 沁阳市| 得荣县| 喀喇沁旗| 工布江达县| 仁化县| 宁强县| 瑞昌市| 鹤庆县| 临高县| 灵山县| 穆棱市| 克拉玛依市| 都匀市| 广州市| 林芝县| 乌拉特前旗| 乐昌市| 广河县| 英超| 武宣县| 天等县| 滦平县| 康定县| 江达县| 呼图壁县| 丹棱县| 米易县| 呼图壁县| 温宿县| 威远县| 长子县| 西宁市| 唐河县| 沂水县|