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

Chapter 3. The First Project – Motion-triggered LEDs

In the preceding chapter, you learned the basics of Python-Arduino interfacing. We went through some exercises to provide hands-on experience with a useful Arduino protocol, Firmata, and the Python library. Now, it's time for your first 'Python + Arduino' project.

We will start this chapter by discussing the project goals and the required components to design the software flow and the hardware layout for the project. Just like any other microcontroller-based hardware project, you can use code and implement the entire logic of your project on Arduino itself. However, the goal of this book is to help you to utilize Python in such a way that you can simplify and extend your hardware projects. Although we will be using a hybrid approach with a Python program assisted by an Arduino sketch in the upcoming chapters, we would like you to get familiar with both ways of programming. As this is your first experience of building a hardware project, the chapter provides you with two different programming methods for the project: just using an Arduino sketch and using a Python program with the Firmata protocol on Arduino. The method with the Arduino sketch is included so that you get the complete experience with the Arduino components such as I/O pins and serial communication.

主站蜘蛛池模板: 澳门| 沅江市| 辉县市| 婺源县| 桃源县| 邯郸县| 镇远县| 宜阳县| 永寿县| 尉犁县| 嘉义市| 成安县| 辰溪县| 邵阳市| 柘城县| 昌乐县| 武义县| 怀远县| 鄂伦春自治旗| 聊城市| 弋阳县| 和田县| 黔西县| 南丰县| 克拉玛依市| 祥云县| 九龙坡区| 石景山区| 剑河县| 庆安县| 隆德县| 万年县| 新田县| 色达县| 红桥区| 宁国市| 九寨沟县| 太保市| 安达市| 南康市| 安溪县|