Duration 2 days – 14 Hours
Overview
This hands-on course introduces learners to Raspberry Pi fundamentals and Python programming for building simple electronics and IoT-style prototypes. Participants will learn how to set up a Raspberry Pi, write and run Python programs, safely use GPIO pins, and control/read common components such as LEDs, buttons, buzzers, and basic sensors. By the end, participants will complete guided mini-projects that combine Python logic with real hardware interaction.
Objectives
- Set up and configure a Raspberry Pi for development (desktop or headless)
- Write, run, and debug Python programs on Raspberry Pi
- Understand GPIO pin mapping and apply basic electronics safety
- Control common components (LEDs, buzzer, servo—optional) using Python
- Read inputs from buttons and basic sensors and handle noisy data
- Build a small working prototype that integrates input + logic + output
Target Audience
- Beginners who want to learn Raspberry Pi programming using Python
- Students, hobbyists, makers, and educators doing hands-on computing projects
- IT professionals and engineers exploring IoT and rapid prototyping
- Developers with basic Python knowledge who are new to GPIO/hardware integration
Prerequisites
- Basic computer skills (installing software, managing files, using a browser)
- Willingness to do hands-on wiring and follow lab instructions
Nice-to-have (not required)
- Basic Python concepts (variables, loops, functions)
- Basic electronics awareness (voltage, ground, resistors)
Suggested Hands-on Kit (per participant or per pair)
- Raspberry Pi (Pi 3/4/5 recommended), microSD (16GB+), power supply
- Monitor + HDMI, keyboard, mouse (or SSH headless setup)
- Breadboard, jumper wires, LEDs + resistors, push button
- Optional: buzzer, PIR motion sensor, DHT11/DHT22, servo motor, ultrasonic sensor
Course Outline
Day 1 — Raspberry Pi Setup, Python on Pi, and GPIO Fundamentals
Module 1: Raspberry Pi Essentials
- Raspberry Pi overview and common use cases (automation, IoT, prototyping)
- Raspberry Pi components and ports
- GPIO concepts and beginner safety rules
Module 2: Installing and Configuring Raspberry Pi OS
- Flashing Raspberry Pi OS using Raspberry Pi Imager
- First boot configuration: locale, network, updates, user accounts
- Desktop vs headless setup (SSH)
- Basic terminal navigation and essential Linux commands
Module 3: Python Development Setup on Raspberry Pi
- Python versions, running scripts, and project folder structure
- Installing packages with pip
- Intro to virtual environments (simple practical usage)
- Editor/IDE options (Thonny/VS Code remote—overview)
Module 4: Python Refresher (Practical Foundations)
- Variables and data types
- Conditions and loops
- Functions and modules
- Basic file I/O and error handling (try/except)
- Lab: Simple menu-driven script or “system info” script
Module 5: GPIO Basics (Input/Output)
- Pin numbering: BCM vs BOARD
- Using gpiozero (recommended) / overview of RPi.GPIO
- Lab 1: Blink an LED (timing and control)
- Lab 2: Read a button input (pull-up/pull-down + debouncing concept)
- Lab 3: Combine button + LED (interactive behavior)
Day 2 — Sensors, Actuators, and Mini-Project Build
Module 6: Working with Outputs
- Multi-LED patterns and sequencing
- PWM concept (LED dimming)
- Buzzer control (alerts/tones)
- (Optional) Servo motor basics
- Lab 4: “Traffic Light” controller with pedestrian button
Module 7: Working with Sensors and Inputs
- Digital vs analog signals (why ADC is needed for analog sensors)
- Sensor types overview (PIR, DHT, ultrasonic)
- Cleaning/validating sensor readings and handling noise
- Lab 5: Read sensor values and display/log results
Module 8: Integration and Simple System Design
- Event-driven approach (triggers and states)
- Threshold rules and cooldown timers
- Logging events to file (CSV/text) for monitoring
- Lab 6: Motion alert system (PIR + LED/buzzer + logging)
Module 9: Capstone Mini-Project Workshop
Choose one guided project based on kit availability:
- Smart Doorbell (button + buzzer + LED)
- Mini Weather Logger (DHT + logging + alerts)
- Distance Warning System (ultrasonic + threshold indicators)
- Room Motion Alarm (PIR + alerts + event log)
- Automated Night Light (sensor trigger + PWM LED)
Module 10: Troubleshooting and Best Practices
- Common wiring mistakes and safe debugging steps
- Diagnosing GPIO issues and permission/config checks
- Python debugging basics on Raspberry Pi
- Packaging your project: README, wiring diagram notes, code cleanup

