Personal Raspberry Pi projects and experiments with sensors, automation, and Python.
This repository contains a series of educational circuits developed on the Raspberry Pi 3 to demonstrate fundamental principles of electronics, GPIO programming, and sensor control using Python.
It includes hardware, software, and four circuits, designed for clarity and educational presentation.
- Model: Raspberry Pi 3 Model B
- CPU: Quad-core 1.2GHz processor
- GPU: Dual-core VideoCore IV
- RAM: 1GB
- Ports: 4× USB, HDMI output, 40× GPIO pins
- Power: Micro USB (5V)
- Operating System: Raspberry Pi OS (Linux)
- Programming Language: Python 3
- IDE: PyCharm / Thonny / Visual Studio Code
- Terminal Access: via HDMI or SSH
- PuTTY – terminal emulator for remote access
- PyCharm – IDE for Python development
File: button_led.py
- Goal: Toggle an LED using a push button.
- Connections:
- LED → GPIO 17 → GND
- Button → GPIO 27 → 3.3V
- Library:
RPi.GPIO - Description: Demonstrates basic GPIO input/output interaction.
File: temp_led_control.py
- Goal: Light up LEDs based on DHT22 temperature readings.
- Connections:
- DHT22 → GPIO 17, 5V, GND
- LED1 → GPIO 20, GND
- LED2 → GPIO 21, GND
- Logic:
- Temp < 25°C → LED1 ON
- Temp ≥ 25°C → LED2 ON
- Library:
Adafruit_DHT
File: relay_led_fault.py
- Goal: Simulate a system fault that triggers a relay and LED alert.
- Connections:
- Relay → GPIO 17, 5V, GND
- LED → GPIO 4, GND
- Library:
RPi.GPIO
File: pwm_led_ads1115.py
- Goal: Control LED brightness using a potentiometer via ADS1115 ADC.
- Connections:
- ADS1115 → VDD (3.3V), GND, SDA (GPIO 2), SCL (GPIO 3)
- Potentiometer → 3.3V, GND, A0
- LED → GPIO 18 (PWM), GND
- Library Installation:
pip3 install adafruit-circuitpython-ads1x15
- Description: Reads the analog value from the potentiometer and maps it to LED brightness using PWM.
git clone https://github.com/<your-username>/raspberrypi-projects.git
cd raspberrypi-projectssudo apt-get update
sudo apt-get install python3-pip
pip3 install RPi.GPIO Adafruit_DHT adafruit-circuitpython-ads1x15python3 button_led.pyPress Ctrl + C
- Breadboard and jumper wires
- LEDs and resistors (330Ω)
- DHT22 temperature and humidity sensor
- Relay module
- Potentiometer (10kΩ)
- ADS1115 ADC module
[Kalliopi Angeli]
Licensed under the MIT License.
Free for educational use, modification, and distribution.



