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

Chapter 2. Working with the Firmata Protocol and the pySerial Library

In the previous chapter, you learned the fundamentals of the Python programming language and the Arduino hardware platform so that you could get started. If you are reading this chapter directly without going through the previous chapter, it is assumed that you have some level of expertise or working experience with these technologies. This chapter describes two important components that are required to bridge Arduino with Python:

  • The Arduino Firmata protocol
  • Python's serial library called pySerial

Although the Firmata protocol is useful to interface Arduino with Python, it can also be used as an independent tool to develop a large variety of applications.

It is time to take your Arduino hardware out and start getting your hands dirty. During the course of this chapter, you will require an LED, a breadboard, and a 1 kilo-ohm resistor as well as the components that you already used in the previous chapter, that is, Arduino Uno and a USB cable.

Note

If you are using any other variant of Arduino, you can obtain further information about it from http://arduino.cc/en/Guide/HomePage or the community-supported Arduino forum that is located at http://forum.arduino.cc/.

主站蜘蛛池模板: 台北市| 平利县| 广平县| 荆州市| 曲麻莱县| 双桥区| 洞口县| 荆门市| 东城区| 东安县| 稷山县| 仪陇县| 黄大仙区| 会宁县| 沂南县| 阿图什市| 隆安县| 东方市| 德庆县| 洛隆县| 上饶县| 开封市| 宜章县| 青海省| 鲜城| 合川市| 岳池县| 阳朔县| 同江市| 绥化市| 宁河县| 广水市| 扶沟县| 万州区| 南昌县| 资中县| 临颍县| 楚雄市| 大冶市| 土默特左旗| 新龙县|