Advanced

How to connect a Raspberry Pi to a serial USB port with Python from the terminal

Posted by bob on
Opensource.com; By Giuseppe Cassibba
Mail this story
Print this story

Raspberry Pi can be used to interface with the real world from its GPIO, for example, by controlling a stepper motor. You can also use Raspberry Pi to dialog with some devices—like Arduino—by using a serial USB port. In this guide, I'll show you how to connect your Raspberry Pi to a serial USB port and read its values with Python from the terminal (without a desktop environment). For this purpose, we'll use Pyserial and its terminal tool.

Full Story

  Nav
» Read more about: Story Type: Tutorial; Groups: Python, Raspberry Pi

» Get new stories by e-mail: nightly or as they are published

« Return to the newswire homepage

  Related stories
» More like this

This topic does not have any threads posted yet!

You cannot post until you login.