- 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/.
- Advanced Splunk
- C語言程序設計基礎與實驗指導
- Python進階編程:編寫更高效、優雅的Python代碼
- Groovy for Domain:specific Languages(Second Edition)
- PhpStorm Cookbook
- Hands-On Reinforcement Learning with Python
- D3.js 4.x Data Visualization(Third Edition)
- Python全棧數據工程師養成攻略(視頻講解版)
- PHP+Ajax+jQuery網站開發項目式教程
- Access 2010中文版項目教程
- Node.js 12實戰
- Raspberry Pi Blueprints
- Python程序設計:基礎與實踐
- Three.js Essentials
- Building Scalable Apps with Redis and Node.js