Book Image

Raspberry Pi Embedded Projects Hotshot

Book Image

Raspberry Pi Embedded Projects Hotshot

Overview of this book

Table of Contents (20 chapters)
Raspberry Pi Mechatronics Projects HOTSHOT
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Python development on the WebIDE


In this section, we will use a 7-segment LED backpack and the Adafruit Cobbler along with a 26-pin ribbon cable. We will test an example from the Adafruit repository (https://github.com/adafruit/Adafruit-Raspberry-Pi-Python-Code). In this project, the new add-on hardware that we will discuss is the Adafruit Cobbler. The Cobbler is a small board that aids prototyping circuits on a breadboard. The Adafruit Cobbler costs about 7 USD while the ribbon cable costs about 3 USD and the 7-segment backpack costs about 10 USD.

Note

The earlier mentioned products are merely examples to demonstrate the Adafruit WebIDE. There are alternative prototyping platforms and products available for a higher or lower price.

The Cobbler mounted on a breadboard

Prepare for lift off

In order to get started with the prototyping, the 26-pin ribbon cable is used to connect the GPIO interface to the Cobbler, as shown in the following image. We have to ensure that pin 1 of the GPIO header matches...