Adafruit
Adafruit OPT4048 Tri-Stimulus XYZ Color and Lux Sensor
· MPN: ADA6335
A modern take on the common RGB colour sensor — the OPT4048 provides true CIE XYZ tri-stimulus output so you can match readings directly to standard colour s...
A modern take on the common RGB colour sensor — the OPT4048 provides true CIE XYZ tri-stimulus output so you can match readings directly to standard colour spaces. It also calculates colour temperature (based on CIE) and lux measurements up to 144 kLux, making it suitable for everything from dim indoor lighting to bright outdoor conditions.
Mounted on an Adafruit breakout PCB with support circuitry for both 3.3 V and 5 V logic levels, the sensor communicates over I2C with STEMMA QT / Qwiic connectors for solderless wiring. CircuitPython/Python and Arduino libraries are available for quick integration.
Key Features
- CIE XYZ Tri-Stimulus Output – True colour-space-matched readings, not just raw RGB values
- Colour Temperature Calculation – CIE-based colour temperature readings for accurate white-point measurement
- Lux Measurement – Up to 144 kLux for bright sunlight conditions
- Configurable Integration Time – From 600 µs (ultra-bright) to 800 ms per channel (dim conditions)
- Low/High Threshold Interrupt – Hardware interrupt for light-level monitoring
- I2C Interface – Two wires plus power and ground
- STEMMA QT / Qwiic Connectors – Solderless I2C connection, compatible with SparkFun Qwiic
- 3 V and 5 V Compatible – Works with Feather, Raspberry Pi, Arduino, Metro, and more
Ideal For
- Colour measurement and colour matching applications
- Colour temperature monitoring for lighting systems
- Ambient light sensing and lux metering
- Display calibration and white-balance adjustments
- Smart home and IoT light-sensing projects
Package Contents
- 1× Adafruit OPT4048 Tri-Stimulus XYZ Colour and Lux Sensor Breakout
Resources
- What is STEMMA QT? – Introduction to the STEMMA QT connector system
- Adafruit OPT4048 Arduino Library
Jargon buster
Plain-language definitions for the technical terms used above.
- breakout
- A breakout is a small circuit board that makes a tiny or hard-to-solder component easier to connect to with standard pins. It matters because this OLED module can be wired into a microcontroller project without needing to solder directly to the display’s fine contacts.
- CircuitPython
- A beginner-friendly version of Python designed to run directly on microcontroller boards. If a product supports CircuitPython, you can often program it by copying code files onto the board rather than setting up a more complex toolchain.
- I2C
- I2C is a two-wire communication bus used by many sensors and small modules. It matters because several I2C devices can share the same two wires, but each device needs a compatible address and your controller must support I2C.
- integration time
- Integration time is how long the sensor collects light for each measurement. Longer times can improve readings in dim light, while shorter times can respond faster or avoid saturation in bright light.
- IoT
- Short for Internet of Things, meaning physical devices that connect to networks or the internet to send data or be controlled remotely. It matters if you want projects such as connected sensors, remote controls or classroom data-logging activities.
- lux
- Lux is the standard unit for measuring how much light falls on a surface, similar to how a light meter reports brightness. A sensor that outputs lux gives readings that are easier to compare between rooms, outdoor conditions, and different projects.
- PCB
- A printed circuit board is a rigid board with copper tracks that connect electronic parts without loose wires. For this kit, the PCBs also form the airplane shape, so they are both the circuit base and part of the finished model.
- Qwiic
- Qwiic is a plug-in connector system for I2C devices that uses small 4-pin cables, so you can connect compatible sensors without soldering. It matters because your controller or adapter also needs Qwiic, or you will need a cable or breakout to wire it up.
- RGB
- Short for red, green and blue, usually referring to an LED that can mix those three colours. It matters because controlling an RGB LED teaches how separate outputs combine to create different colours.
- STEMMA
- A plug-and-cable connection system used on some maker electronics boards to make wiring simpler. If a product uses STEMMA, you need the matching cable or connector type to plug it in without soldering.
- STEMMA QT
- A small plug-in connector system for I2C boards that lets you connect compatible sensors and controllers without soldering. It matters because it can make wiring faster and less error-prone, especially when adding several small modules to a project.
Find this product in
Sensors & Input
Related Tutorials
Free guides on learn.littlebird.com.au