Learn

Raspberry Pi 4B tutorials, from real teaching experience

Every guide below is runnable directly in the free Raspberry Pi 4B simulator — no hardware required.

Learn Raspberry Pi Without Owning One

You don't need to buy a Raspberry Pi 4B to learn GPIO and Python on one. Here's how to get real, hands-on practice for free, in your browser.

Raspberry Pi 4B GPIO Pinout: An Interactive Guide

A complete, interactive walkthrough of the Raspberry Pi 4B's 40-pin GPIO header — every pin's function, and how to try each one live in your browser.

Component tutorials

Step-by-step wiring and Python for individual components — start with the GPIO pinout guide above if you’re new to the header.

Blink an LED on a Raspberry Pi 4B — Your First GPIO Circuit

Wire an LED and resistor to a Raspberry Pi 4B GPIO pin and control it with Python — the simplest possible first circuit, and the foundation every other GPIO project builds on.

Wiring an NPN Transistor to a Raspberry Pi 4B (GPIO Switching)

Use an NPN transistor (2N2222 or BC547) to let a Raspberry Pi 4B GPIO pin switch a separate power circuit — wiring, Python code, and what to check if the LED won't turn on.

Controlling an SG90 Micro Servo with a Raspberry Pi 4B

Wire an SG90 micro servo to a Raspberry Pi 4B GPIO pin and sweep it through a range of angles with real PWM in Python — no hardware required.

LCD1602 (Parallel) on a Raspberry Pi 4B: Wiring & Python

Wire a 16x2 LCD in parallel/direct-GPIO mode to a Raspberry Pi 4B and print text to it with Python — full pinout, wiring, and starter code.

LCD1602 (I2C) on a Raspberry Pi 4B: Wiring & Python

Wire an I2C-backpack 16x2 LCD to a Raspberry Pi 4B using just 4 wires, and print text to it with Python — wiring, code, and common fixes.

Reading a Potentiometer on a Raspberry Pi 4B with an MCP3008 ADC

The Raspberry Pi has no analog input — read a real potentiometer's position using an MCP3008 ADC over SPI, with full wiring and Python code.

Wiring a 4x4 Membrane Keypad to a Raspberry Pi 4B

Wire a 4x4 membrane keypad to 8 Raspberry Pi 4B GPIO pins and scan it in Python to detect key presses — wiring, code, and a real hardware limitation to expect.