Loading the figure…
Stopped · Your code isn't running yet. Until you press Run, the board runs the program already on it.
Nothing printed yet. Press Run.
Not checked yet
Run your code to check it. The checks replay a fixed script on a virtual clock, so the same code always gets the same result.
Each fault really happens in the simulation. Trigger one, watch the figure, then read why.
Change a value here or click a chip in the code.
Your first program on a Pi: switch an LED on GPIO17 on and off with gpiozero, the GPIO library Raspberry Pi OS ships.
| Pin | Connects to | What it does |
|---|---|---|
GPIO17 | 330 Ω resistor and the LED's long leg | Digital output |
GND | LED's short leg | Return |
Sensors and actuators this board drives, with the real connections.
Anode (long leg) to GPIO17 on pin 11 through a 330 Ω resistor, cathode to GND on pin 9: about 4 mA from 3.3 V. gpiozero calls it LED(17).
| Part pin | Board pin |
|---|---|
| A | GPIO17Wire colour orange |
| K | GNDWire colour black |
Never connect an LED without its resistor: the pin would try to source far more than 16 mA.