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

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

主站蜘蛛池模板: 常熟市| 琼中| 黄陵县| 荆州市| 连江县| 连山| 永宁县| 张掖市| 晋州市| 平和县| 谷城县| 饶平县| 康平县| 志丹县| 白城市| 江达县| 芦溪县| 介休市| 南漳县| 台江县| 新巴尔虎右旗| 江山市| 永福县| 寿阳县| 巴彦县| 阳信县| 遵义市| 丰原市| 北京市| 长丰县| 德清县| 县级市| 石屏县| 延津县| 汉寿县| 乐平市| 福建省| 保靖县| 江安县| 定结县| 平罗县|