Adafruit Industries

Our OPT4048 breakout is ready — now with a bonus web app! 🌈💻


Listen Later

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 amp; 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/
-----------------------------------------
...more
View all episodesView all episodes
Download on the App Store

Adafruit IndustriesBy Adafruit Industries

  • 4.8
  • 4.8
  • 4.8
  • 4.8
  • 4.8

4.8

13 ratings


More shows like Adafruit Industries

View all
3D Hangouts by Adafruit Industries

3D Hangouts

1 Listeners

Ask an Engineer by Adafruit Industries

Ask an Engineer

2 Listeners

Raspberry Pi by Adafruit Industries

Raspberry Pi

23 Listeners

3D Printing Projects by Adafruit Industries

3D Printing Projects

11 Listeners

Circuit Playground by Adafruit Industries

Circuit Playground

0 Listeners

Collin's Lab by Adafruit Industries

Collin's Lab

2 Listeners

New Products by Adafruit Industries

New Products

3 Listeners

Show and Tell by Adafruit Industries

Show and Tell

0 Listeners