Skip to content

Python and External Hardware

Introduction

By the end of this chapter you will be able to:

  • Connect external hardware to a computer running Python

  • Install the PySerial library

  • Read data over a serial connection using Python

  • Save data coming in over a serial connection using Python

  • Write data to a serial line using Python

  • Read data from a sensor using Python

  • Control an LED using Python