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.
Use the FLASH button on D3 as an input and take a light reading on A0 each time it is pressed.
| Pin | Connects to | What it does |
|---|---|---|
D3 | FLASH button on the board | input, 12 kΩ pull-up on the board |
D4 | blue LED on the ESP-12E | output, LOW = on |
A0 | LDR and 10 kΩ divider | analog input, 0-3.2 V |
3V3 | top of the LDR | 3.3 V supply |
GND | bottom of the 10 kΩ resistor | ground |
Sensors and actuators this board drives, with the real connections.
Ends to 3V3 and GND, wiper to A0. The top 0.1 V of travel reads 1023 because A0's full scale is 3.2 V.
| Part pin | Board pin |
|---|---|
| end 1 | 3V3Wire colour red |
| wiper | A0Wire colour yellow |
| end 2 | GNDWire colour black |
LDR from 3V3 to A0 and 10 kΩ from A0 to GND: more light gives a higher reading.
| Part pin | Board pin |
|---|---|
| LDR leg 1 | 3V3Wire colour red |
| LDR leg 2 + 10 kΩ to GND | A0Wire colour yellow |
Runs from 3.3 V (2.7-5.5 V). 0.5 V means 0 °C and each 10 mV is 1 °C: °C = (raw x 3.2 / 1023 - 0.5) x 100.
| Part pin | Board pin |
|---|---|
| +Vs | 3V3Wire colour red |
| Vout | A0Wire colour yellow |
| GND | GNDWire colour black |
AO to A0, powered from 3V3 so the output never exceeds the 3.2 V range. Power it only while measuring to slow corrosion.
| Part pin | Board pin |
|---|---|
| VCC | 3V3Wire colour red |
| GND | GNDWire colour black |
| AO | A0Wire colour yellow |