Night Light recording
The complete Pico recording for desktop replay. CAPTURE file, 60 KiB.
Kajo Lab 101
A light sensor sends the reading 88. The recorded program says ON. Edit one threshold and see what the same reading does.
These ten observations are from a real Raspberry Pi Pico recording. Each observation contains one sensor reading and the LED command it produced. What do you expect to happen at 88 if the program turns on only below 80?
| Observation | Input | Recorded command | Browser replay |
|---|---|---|---|
| 421 | 134 | OFF | |
| 422 | 121 | OFF | |
| 423 | 109 | OFF | |
| 424 | 98 | OFF | |
| 425 | 88 | ON | |
| 426 | 92 | ON | |
| 427 | 89 | ON | |
| 428 | 85 | ON | |
| 429 | 80 | ON | |
| 430 | 76 | ON |
At observation 425, input 88 is below 92, so the original program commands ON. The edited program stays OFF. At 429 it still stays OFF because 80 is equal to the threshold. At 430, input 76 turns it ON. Both rules turn OFF at 116 or above and keep the previous command in between.
The browser repeats the decision rule over this excerpt, starting at OFF. In Kajo Lab you can replay the full recording with its original timing. The output here is the program’s command to the LED.
Use the full recording in Lab on Windows. You can do this with the Pico unplugged.
Night-Light-Pico.capture. In Signals, click the trace near 8.45 s. Use the arrow keys to compare observations 422 and 425.DUP 92 U< to DUP 80 U<. Leave 116 as it is.The complete Pico recording for desktop replay. CAPTURE file, 60 KiB.
The recording and a self-contained browser guide. ZIP file, 24 KiB.