Learning path · Beginner
Raspberry Pi starter: Python and electronics
Set up a Raspberry Pi 4, write your first Python programs and control LEDs and buttons on its GPIO pins. Finish with traffic lights and a web page that controls an LED from your phone.
- 8 lessons
- about 6.5 h
About this path
The Raspberry Pi is a complete computer the size of a credit card, with 40 pins for your own circuits. This path starts from an empty microSD card: you install Raspberry Pi OS, find your way around the desktop and write your first program in Python, the most popular language on the Pi.
Then you build real circuits on the GPIO pins with the gpiozero library: you blink an LED and flash SOS in Morse code, read a push button with polling and with events, build traffic lights with a crossing button that gives the cars a minimum green time, and finally turn the Pi into a small web server with Flask, so you can dim an LED from your phone and see how warm the Pi is.
You need a Raspberry Pi 4 Model B with its power supply and a microSD card; the LEDs, resistors, buttons and breadboard come from the EEMENTOR IoT ESP32 Starter Kit. Each lesson takes 40 to 60 minutes and has a wiring diagram, the complete Python code and an explanation of how it works.
Kits you need
-
Used in every lesson
-
Used in 7 of 8 lessons
Lessons in this path
Stage 1 · Lessons 1–7
Beginner
Start here: first circuits and one new part at a time.
- 7 lessons
- 5.5 hours
-
Lesson 1
-
Lesson 2
-
Lesson 3
-
Lesson 4
-
Lesson 5
-
Lesson 6
-
Lesson 7
Stage 2 · Lessons 8–8
Intermediate
Combine parts, use more sensors and connect your projects.
- 1 lessons
- 1 hours
-
Lesson 8