- 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.
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.
- 孩子愛問的十萬個為什么·科學(xué)
- 科技原創(chuàng)苦旅
- 灰度決策:如何處理復(fù)雜、棘手、高風(fēng)險的難題
- 科技之巔3:《麻省理工科技評論》100項全球突破性技術(shù)深度剖析
- 蔚藍(lán)旖旎的海洋
- 火起源的神話
- 系統(tǒng)科學(xué)發(fā)展概論
- 北大講座精華集(科學(xué))
- 師夷長技(中國近現(xiàn)代科技轉(zhuǎn)型的歷史軌跡與哲學(xué)反思 第二卷)
- 進(jìn)化的奇跡:耶魯皮博迪自然博物館150年發(fā)現(xiàn)與探索之旅
- 中國前沿:不如問問科學(xué)家吧
- 中國未解之謎(上)
- 小電流接地系統(tǒng)單相接地故障選線理論研究(遼寧省優(yōu)秀自然科學(xué)著作)
- 必然
- 秘境追蹤