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

Subscribers:
460,000
Published on ● Video Link: https://www.youtube.com/watch?v=IhHMMtmuwWU



Duration: 0:00
960 views
40


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/
-----------------------------------------




Other Videos By Adafruit Industries


2025-05-18Desk of Ladyada – Claude WebApps, Solar MPPT
2025-05-18#3Dprint custom accessories for AirPod Max learn.adafruit.com/3d-printed-accessories-for-headphones
2025-05-17Larsio Paint Music Demo Metro RP2350
2025-05-17#3DPrint a electronics inspired chess set learn.adafruit.com/adafruit-3d-printed-chess-set #adafruit
2025-05-17Deep Dive w/ Tim: Sparkle Motion Stick Setup & Guide Examples
2025-05-15EYE ON NPI - TI BQ25798 I2C Controlled, 1 to 4-Cell, 5-A Buck-Boost Battery Charger for Solar Panels
2025-05-15TARIFF TALK! With Ladyada - May 14, 2025
2025-05-15Adafruit Top Secret for May 14, 2025 #adafruit
2025-05-15#Adafruit Funhouse, IOT + Home Automation Projects https://learn.adafruit.com/products/4985/guides
2025-05-143D Hangouts – Motorized Slider, Cardboard Crafting and Zoo Dev AI
2025-05-14Our OPT4048 breakout is ready β€” now with a bonus web app! πŸŒˆπŸ’»
2025-05-14Playa Tech Loveseat Bench with LED Butterfly DIY Project #adafruit
2025-05-14JP’s Product Pick of the Week 5/13/25 PiCowbell Adalogger RECAP
2025-05-14Get a BLE buzz via Apple Notification Center Service learn.adafruit.com/ble-buzzy-box #3dprinting
2025-05-14JP’s Product Pick of the Week 5/13/25
2025-05-13Cardboard Crafting Tools By ValeriaMomo https://cults3d.com/:2944214 #3dprinting #adafruit
2025-05-11Cardboard Crafting Tools #3dprinting #adafruit #timelapse
2025-05-11CircuitPython Weekly Meeting for May 12, 2025 @circuitpython #circuitpython #adafruit
2025-05-11The Great Search – Bringin' Back the DIGG Button Kit? πŸ•ΉοΈ #adafruit
2025-05-11The Great Search - Replacement for WM8960 🎧 #TheGreatSearch #DigiKey @digikey @adafruit
2025-05-11CPX PCB adapter with headers learn.adafruit.com/double-sided-pcb-milling #adafruit