Code Upload
Remember the paint store scanner from the introduction? Time to turn your hardware into that scanner. One upload, and your Colour Picker is ready to read the world.
Warning
Upload the Code
Click the button below to open Kriya Station with the Colour Picker code pre-loaded. Follow the instructions in the Station to compile and upload to your NodeMCU.
Open in Kriya StationWhat to Expect
Once the upload finishes, open the Serial Monitor in Kriya Station. You won't see anything happen yet — the Colour Picker is a one-shot tool. It waits for your command.
- Hold the sensor 1–2 cm from a coloured surface.
- Type "S" in the Serial Monitor and hit Enter.
- The sensor takes 5 rapid readings, filters out noise (trimmed mean — remember the Olympic judges?), and processes the result.
- You get precise RGB and HEX values printed once.
Info
R: 142 G: 58 B: 201 | HEX: #8E3AC9Tip
Try It Out
Here are some experiments to put your Colour Picker through its paces:
Scan 3 Objects
Pick three coloured objects — a red pen, a green leaf, a blue notebook. Scan each one and write down the RGB values.
Match Digitally
Open any colour picker website and enter the HEX code. Does the colour on screen match the real object? How close is it?
Lighting Challenge
Scan the same object in sunlight, then under a desk lamp, then in a dim room. Auto-ranging should keep values close — but you might spot small shifts. That's real-world sensing!