Electronic Projects for the Raspberry Pi
The information here supplements the book and Kit of the same name. Interfacing to LED displays, speakers and simple sensors. This enables users of the Raspberry Pi to control external electronics. The projects are listed below. The build instructions are available at the link provided and the Python code is included.
Project 1 – Bi-colour LED: In this project we are going to flash a Bi-Colour Red/Green LED using 2 of the outputs of the Raspberry Pi.
Project 2 – Driving a 7-Segment Display: In this project we are going to connect a 7-segment display to the Raspberry Pi GPIO and use it to show digits 0 to 9.
Project 3 – Electronic Dice: This project uses a switch to implement an electronic dice using the 7-segment display from the previous project.
Project 4 – Driving a tri-colour LED: In this project we are going to drive a tri-colour Red/Green/Blue (RGB) LED and control the brightness of each of the colours from the keyboard.
Project 5 – Flashing 4 colour LEDs: Visually, this is a fun project where we flash red, green, yellow and blue LEDs.
Project 6 – Warning Light for Bike: The program will flash the 4 LEDs at a faster rate whenever light is detected.
Project 7 – Raspberry Pi Musical Keyboard: This project uses the Raspberry Pi GPIO to generate various musical notes. The RPi keyboard is used to generate the different notes.
Project 8 – RPi Tunes: We are going to get the RPi to play a pre-programmed tune.
Project 9 – Moisture Alarm: In this project we are going to use a moisture sensor and raise an alert using the speaker when it is wet.
Project 10 – Intruder E-Mail alert: In this project we are going to use the RPi to detect when a door is opened and send an e-mail.