Skip to Content
Learning Robotics using Python - Second Edition
book

Learning Robotics using Python - Second Edition

by Lentin Joseph
June 2018
Beginner to intermediate
280 pages
6h 58m
English
Packt Publishing
Content preview from Learning Robotics using Python - Second Edition

Interfacing Tiva C LaunchPad with Python

In this section, we will look at how to connect Tiva C LaunchPad with Python to receive data from Launchpad in a PC.

The PySerial module can be used for interfacing Launchpad to Python. The detailed documentation of PySerial and its installation procedure for Windows, Linux, and OS X can be found here : http://pyserial.sourceforge.net/pyserial.html

PySerial is available in the Ubuntu package manager and it can be easily installed in Ubuntu using the following command in the Terminal:

    $ sudo apt-get install python-serial  

After installing the python-serial package, we can write Python code to interface Launchpad. The interfacing code is given in the following section.

The following code imports the ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Robotics using Python

Learning Robotics using Python

Lentin Joseph
Python Robotics Projects

Python Robotics Projects

Prof. Diwakar Vaish

Publisher Resources

ISBN: 9781788623315Supplemental Content