- Python Programming for Arduino
- Pratik Desai
- 199字
- 2021-07-23 20:11:35
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/.
- OpenStack Cloud Computing Cookbook(Third Edition)
- Learning NServiceBus(Second Edition)
- Learning Chef
- 數(shù)據(jù)結(jié)構(gòu)和算法基礎(chǔ)(Java語言實現(xiàn))
- Python自動化運(yùn)維快速入門(第2版)
- C# 從入門到項目實踐(超值版)
- FreeSWITCH 1.6 Cookbook
- 羅克韋爾ControlLogix系統(tǒng)應(yīng)用技術(shù)
- Practical DevOps
- Processing互動編程藝術(shù)
- 零基礎(chǔ)學(xué)Java(第4版)
- 數(shù)據(jù)結(jié)構(gòu)(C語言)
- 3D少兒游戲編程(原書第2版)
- 青少年學(xué)Python(第1冊)
- Python深度學(xué)習(xí)原理、算法與案例