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

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

主站蜘蛛池模板: 大名县| 建始县| 曲周县| 太保市| 枞阳县| 财经| 郓城县| 双桥区| 连南| 运城市| 远安县| 宁南县| 银川市| 徐水县| 华池县| 南城县| 腾冲县| 泸水县| 五大连池市| 垫江县| 九龙县| 灵丘县| 新巴尔虎右旗| 鄂尔多斯市| 宝应县| 陆河县| 砀山县| 昔阳县| 略阳县| 中江县| 池州市| 孟连| 华坪县| 赞皇县| 瑞安市| 琼海市| 白城市| 广州市| 彭水| 汕尾市| 兴义市|