Dialing in hex values for LED colours has by no means been really easy because of this Raspberry Pi RP2040-powered shade picker created by maker and developer Man Dupont. It’s a fast technique to discover the precise shade you need utilizing {hardware}, on this case, a few LEDs, that you’d use in different initiatives.
Options:- exceedingly clicky knobs/button- inbuilt dialog from hex to RGB, CMYK, HSV- that is kinda it however w/e pic.twitter.com/swR7sKlFzYSeptember 13, 2022
The best way The Dial Toner works is easy and positively enjoyable to mess around with. There are 6 clicky potentiometer knobs that may be twisted and turned to dial in a particular worth (A – F and 0 – 9). You need to use these knobs to dial in a most well-liked hexadecimal string that corresponds with a shade. An LED, housed within a transparent keycap reveals the specified shade. Urgent this key to register the colour with the interface Dupont created.
The interface features a built-in instrument that may convert the hex worth to different codecs, as properly, together with CMYK, HSV and RGB. The largest good thing about this module is the power to see what the corresponding digital worth appears like in actual life through the RGB LED. If you wish to program one other challenge that has RGB LEDs, this can be a fast technique to be sure you get the colour you need shortly.
This challenge concerned the creation of a customized PCB that makes use of a XIAO RP2040 module as its fundamental driver. There are two RGB LEDs onboard together with one contained in the mechanical button in addition to one on the underside of the board. A USB-C port is accessible for energy and connecting to a PC. The keycap will be changed with any keycap that makes use of a “choc” type interface.
In accordance with Dupont, the board was programmed from scratch utilizing CircuitPython. The CircuitPython code handles the potentiometer enter to set the LED shade worth in addition to the command to ship the colour to a PC by simulating a keyboard interface. The unique thread shared to Twitter features a video of the colour picker in motion.
If you wish to recreate this Raspberry Pi challenge, take a look at the unique thread or think about shopping for a board able to go over at Dupont’s Etsy (opens in new tab) web page. In the meanwhile, he has prototypes on the market however there are plans to promote extra modules as soon as just a few upgrades have been accomplished.