Dialing in hex values for LED colors has never been so easy thanks to this Raspberry Pi RP2040-powered color picker created by maker and developer Guy Dupont. It’s a quick way to find the exact color you want using hardware, in this case, a couple of LEDs, that you would use in other projects.
Features:- exceedingly clicky knobs/button- built in conversation from hex to RGB, CMYK, HSV- that’s kinda it but w/e pic.twitter.com/swR7sKlFzYSeptember 13, 2022
The way The Dial Toner works is simple and definitely fun to play around with. There are 6 clicky potentiometer knobs that can be twisted and turned to dial in a specific value (A – F and 0 – 9). You can use these knobs to dial in a preferred hexadecimal string that corresponds with a color. An LED, housed inside of a clear keycap shows the desired color. Pressing this key to register the color with the interface Dupont created.
The interface includes a built-in tool that can convert the hex value to other formats, as well, including CMYK, HSV and RGB. The biggest benefit of this module is the ability to see what the corresponding digital value looks like in real life via the RGB LED. If you want to program another project that has RGB LEDs, this is a quick way to make sure you get the color you want quickly.
Image 1 of 2
This project involved the creation of a custom PCB that uses a XIAO RP2040 module as its main driver. There are two RGB LEDs onboard including one inside the mechanical button as well as one on the bottom of the board. A USB-C port is available for power and connecting to a PC. The keycap can be replaced with any keycap that uses a “choc” style interface.
According to Dupont, the board was programmed from scratch using CircuitPython. The CircuitPython code handles the potentiometer input to set the LED color value as well as the command to send the color to a PC by simulating a keyboard interface. The original thread shared to Twitter includes a video of the color picker in action.
If you want to recreate this Raspberry Pi project, check out the original thread or consider buying a board ready to go over at Dupont’s Etsy (opens in new tab) page. At the moment, he has prototypes for sale but there are plans to sell more modules once a few upgrades have been completed.
Leave a Reply