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

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.

主站蜘蛛池模板: 罗江县| 盐亭县| 喀喇| 广灵县| 凤冈县| 西峡县| 凌海市| 乌兰县| 洪洞县| 阳江市| 盐城市| 荃湾区| 德保县| 高碑店市| 长阳| 仙游县| 祁连县| 望谟县| 高唐县| 永寿县| 科技| 贵溪市| 翁源县| 安西县| 池州市| 肥东县| 石门县| 柘城县| 饶阳县| 乌恰县| 玉树县| 海口市| 鹿邑县| 新巴尔虎右旗| 成武县| 邮箱| 当阳市| 长岛县| 通海县| 栾川县| 鸡泽县|