Documentation
PyRasp is a Raspberry Pi simulator that runs in your browser: you buy parts, wire them in Python, and run your program against a simulated board. It is free and needs no account: there is a new problem every day, an archive of practice problems, a sandbox, and Lab mode for building by hand.
Start here
New to PyRasp? Read these in order:
- What PyRasp is — the daily problem, practice, the sandbox, Lab mode and accounts.
- Your first circuit — an LED on GPIO17, from an empty workspace to a blinking light.
- Workspace tour — the Task, Shop, Guide and Results tabs, the editors, the board and the console.
- How a run works —
circuit.pybuilds the board, thenmain.pyruns. - The campaign — 48 levels in eight chapters, with stars to earn: the best place to start.
- Building it on a real Pi — export your code, a wiring sheet and a schematic.
- The daily problem — one problem a day, and the streak you keep by solving it.
- Lab mode — the full drag-and-drop simulator in the Lab tab.
- Every shop part — one page per part, with pins and examples.
Going deeper
The reference pages sit next to the guides:
- The wiring library —
>>chains, pin names, modules and kits. - Programming the Pi — gpiozero, RPi.GPIO, I²C, SPI and the rest.
- Glossary — GPIO, pull-up, PWM, I²C and friends.
PyRasp is an independent project and is not affiliated with or endorsed by Raspberry Pi Ltd. Raspberry Pi is a trademark of Raspberry Pi Ltd.