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.
Play the world: press, slide and turn the parts while the code runs.
Change a value here or click a chip in the code.
A soil probe says how wet the soil is; an OLED screen shows it as a percentage and a bar, and tells you when to water.
| Pin | Connects to | What it does |
|---|---|---|
5V | The soil probe's VCC | Powers the probe. |
A0 | The soil probe's AOUT | Lower voltage means wetter soil. |
3V3 | The OLED's VCC | Powers the screen. |
SCL-SDA | The OLED's SCL and SDA | I²C: clock and data on two wires. |
Sensors and actuators this board drives, with the real connections.
Ends to GND and 5V, the middle leg (wiper) to A0. analogRead(A0) then goes from 0 to 1023 as you turn it.
| Part pin | Board pin |
|---|---|
| 1 | GNDWire colour black |
| 2 | A0Wire colour green |
| 3 | 5VWire colour red |
From 5V to A0, with a 10 kΩ resistor from A0 to GND. More light, lower resistance, higher reading.
| Part pin | Board pin |
|---|---|
| 1 | 5VWire colour red |
| 2 | A0Wire colour green |
Flat face toward you: left leg 5V, middle leg to A0, right leg GND. Degrees C = (volts − 0.5) × 100.
| Part pin | Board pin |
|---|---|
| VS | 5VWire colour red |
| VOUT | A0Wire colour green |
| GND | GNDWire colour black |
AOUT to A0, VCC to 5V, GND to GND. The reading falls as the soil gets wetter.
| Part pin | Board pin |
|---|---|
| AOUT | A0Wire colour yellow |
| VCC | 5VWire colour red |
| GND | GNDWire colour black |
One leg to 5V, the other to A0, with a 10 kΩ pull-down from A0 to GND. Press harder, read higher.
| Part pin | Board pin |
|---|---|
| 1 | 5VWire colour red |
| 2 | A0Wire colour green |