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

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/.

主站蜘蛛池模板: 阜平县| 许昌县| 满城县| 蓬莱市| 西藏| 略阳县| 息烽县| 临安市| 西乌| 山阳县| 扎赉特旗| 荔波县| 郎溪县| 佛教| 冀州市| 尼木县| 砀山县| 息烽县| 石泉县| 昆山市| 黄陵县| 城市| 同仁县| 文水县| 长丰县| 沙洋县| 昌都县| 宜宾市| 佛坪县| 徐闻县| 门头沟区| 平乡县| 南开区| 砚山县| 高台县| 定结县| 阿克苏市| 渭南市| 盐边县| 扶风县| 武平县|