PyRaspBeta

Raspberry Pi practice problems

166 Raspberry Pi practice problems in Python, from blinking an LED to full projects: buttons, sensors, displays, motors and I²C/SPI buses. Each one runs in an online simulator with automatic tests.

Create a free account to solve them.

LEDs & PWM

Blinking, fading, patterns and colour: the outputs everything else builds on.

Buttons & input

Buttons, switches, keypads and encoders: reading people, debouncing, counting and state.

Sensors

Light, temperature, distance, motion, sound and moisture: reading the world and acting on thresholds.

Displays

Character LCDs, OLEDs, 7-segment digits and LED strips: showing numbers, text and patterns.

Motors & actuators

Servos, DC motors, steppers, relays and buzzers: making things move and make noise.

I²C, SPI, UART & 1-Wire

Talking to chips: ADCs, IMUs, GPS and temperature probes over their buses.

Projects

Several parts working together: small, complete devices.