Python Programming Tutorial: Getting Started with the Raspberry Pi
The Raspberry Pi is an amazing single board computer (SBC) capable of running Linux and a whole host of applications. Python is a beginner-friendly programming language that is used in schools, web development, scientific research, and in many other industries. This guide will walk you through writing your own programs with Python to blink lights, respond to button pushes, read sensors, and log data on the Raspberry Pi.
To work through the activities in this tutorial, you will need a few pieces of hardware:
Qwiic Cable - Breadboard Jumper (4-pin)PRT-14425
SparkFun Qwiic SHIM for Raspberry PiDEV-15794
Qwiic Cable - 200mmPRT-14428
You have several options when it comes to working with the Raspberry Pi. Most commonly, the Pi is used as a standalone computer, which requires a monitor, keyboard, and mouse (listed below). To save on costs, the Pi can also be used as a headless computer (without a monitor, keyboard, and mouse). This setup has a slightly more difficult learning curve, as you will need to use the command-line interface (CLI) from another computer.
Raspberry Pi LCD - 7" TouchscreenLCD-13733
Multimedia Wireless KeyboardWIG-14271
This guide is licensed under the Creative Commons Attribution Share-Alike 4.0 International License.