PyRaspBeta

Raspberry Pi simulator · runs in your browser

Build Raspberry Pi projects in your browser, before you buy a single part.

Wire up LEDs, buttons, sensors and motors, program them in real Python, and watch it all run on a virtual Pi. See where the current goes, make mistakes safely, then build it for real.

▶ Try it now, no sign-up Browse the practice problems

Free during the beta. Nothing to install.

See what's happening inside your circuit

Watch the electricity flow

Turn on the current view and see it move through every wire. Finally, a reason why that LED is dim.

Try it yourself →

Make mistakes safely

Short a pin and it gets damaged, just like on a real Pi. Fix the wiring, press Run, and it works again.

Break something →

Then build it for real

Every build becomes a proper schematic. Export the code, a wiring sheet and a shopping list for a real Pi.

From screen to real Pi →

For learners

Learn at your own pace

For teachers and schools

A Raspberry Pi for every student

Teach physical computing without a box of kits to share. Every student gets their own Pi in the browser, and a shorted pin is a lesson, not a broken board.

For makers

Make your own parts

Wrap a few parts and the code that drives them into a component of your own, then add it to any project in one line. How components work

Practice sets

  • 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.

Questions

Is PyRasp a Raspberry Pi simulator?

Yes. It simulates a Raspberry Pi 4, Pi 5 or Pi Zero 2 W and 38 parts such as LEDs, buttons, sensors, displays and motors. Your Python runs in the browser against the simulated board.

Do I need a Raspberry Pi or any hardware?

No. Everything runs in your web browser: no kit to buy, nothing to install, no SD card to flash.

Do I need an account?

Not to try it. A free account lets you save your work and use every part, the practice problems, the Lab and the daily challenge. Accounts are for ages 13 and up.

Which Python libraries can I use?

The ones you would use on a real Pi: gpiozero, RPi.GPIO, smbus2, spidev, Adafruit DHT, NeoPixel, RPLCD, tm1637 and picamera2. Code you write in PyRasp carries over to real hardware.

Can I build my project on a real Raspberry Pi afterwards?

Yes. Export gives you the code, a wiring sheet, a shopping list and setup steps. The libraries are the real ones (gpiozero, RPi.GPIO, smbus2 and more), so the same program runs on the hardware.

Is PyRasp free?

Yes, while it is in beta. After the beta some features or plans may become paid, and any change like that will be announced on the site first.