1Blinking an LED

In this first project, you’ll connect an LED to your Pi and make it blink with a python script. Learning how to blink an LED using the GPIO pins is an important step in your Pi education; once you know how to control an LED, you can control practically any output, whether it’s a motor, a lamp, or even a toaster.

image

PARTS REQUIRED

Raspberry Pi

Breadboard

5 mm LED

330 Ω resistor

Jumper wires

INTRODUCING THE GPIO PINS

The General Purpose Input/Output (GPIO) pins allow you to connect electronic hardware, like LEDs and sensors, to your Pi. They can be used to both read and send information, allowing your Pi to interact with the real world. ...

Get 20 Easy Raspberry Pi Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.