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

Wiring up the electronics

We need to wire up our electronic parts, as shown in the following image:

Make sure that your Pi Zero is switched off when you are soldering the cables to the Pi or the header pins! You will also need to take care when wiring your LEDs, as we must get the correct legs attached to the positive and negative wires in our circuit, or they will not work. The positive leg of an LED is usually longer, and there is often a flat edge on the LED to indicate which is the negative leg. We are also going to introduce a 330 Ω resistor between the LED and the ground of the Pi; this is done to stop the LED drawing too much current from the Pi and damaging it.

You may want to introduce a little electrical insulating tape around one leg of each LED to ensure that they do not short circuit by touching the other leg. Once you have soldered your components together, give them a final check over to make sure they are in the correct GPIO holes on the Pi and that you have a good connection at each joint.

Now that we have completed the wiring of our electronics, we can move on to writing the code to control it all. Plug in your Pi and establish a SSH connection to it.

主站蜘蛛池模板: 苏尼特左旗| 澜沧| 大连市| 临漳县| 凤城市| 兴城市| 温州市| 滨海县| 武城县| 衡阳县| 葵青区| 乌恰县| 紫阳县| 盱眙县| 稻城县| 顺义区| 深水埗区| 华阴市| 兴义市| 柳州市| 民乐县| 思南县| 英山县| 吉林市| 邓州市| 沙雅县| 昆山市| 阳信县| 隆昌县| 太和县| 双江| 嘉祥县| 甘南县| 团风县| 同仁县| 定日县| 安远县| 永宁县| 武威市| 沙田区| 鹤庆县|