PLAY PODCASTS
Our OPT4048 breakout is ready β€” now with a bonus web app! πŸŒˆπŸ’»

Our OPT4048 breakout is ready β€” now with a bonus web app! πŸŒˆπŸ’»

Adafruit Industries

May 14, 20252m 13s

Audio is streamed directly from the publisher (adafruit-podcasts.s3.amazonaws.com) as published in their RSS feed. Play Podcasts does not host this file. Rights-holders can request removal through the copyright & takedown page.

Show Notes

We're wrapping up the design for the OPT4048 breakout: mostly putting the finishing touches on the Arduino library (https://github.com/adafruit/Adafruit_OPT4048). Since the whole point of this sensor is that it gives you CIE X & Y coordinates, we thought it would be cool to plot that onto a CIE diagram (https://en.wikipedia.org/wiki/CIE_1931_color_space). Historically, we’d have to use Processing (https://processing.org/), but now you can use WebSerial to get data directly from a microcontroller! Only catch β€” it’s been like 15 years since I wrote JavaScript, so we asked Claude Code (https://docs.anthropic.com/en/docs/claude-code/overview) to help out. With a little direction, it delivered a perfect demo (https://github.com/adafruit/Adafruit_OPT4048/commits/gh-pages) in about 30 minutes. It was so fun, we’re thinking of doing WebSerial demos for more products! You can try it out by uploading the code here (https://github.com/adafruit/Adafruit_OPT4048/blob/main/examples/opt4048_webserial/opt4048_webserial.ino) and then visiting this page: https://adafruit.github.io/Adafruit_OPT4048/webserial/ #Arduino #WebSerial #ColorSensor Visit the Adafruit shop online - http://www.adafruit.com ----------------------------------------- LIVE CHAT IS HERE! http://adafru.it/discord Subscribe to Adafruit on YouTube: http://adafru.it/subscribe New tutorials on the Adafruit Learning System: http://learn.adafruit.com/ -----------------------------------------