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...
Get notified when back in stock
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 board carries a small or fine-pitched component and brings its connections out to standard, breadboard- and header-friendly pins. Describing a part as a breakout means it can be wired into a project without soldering directly to the component's tiny 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 (PCB) is a board, usually rigid, with etched copper tracks that connect electronic components together without loose wiring. Components are mounted on the board and signals route between them through the copper layout.
- 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, the three primary colours of light that are mixed in varying amounts to make a wide range of colours. In electronics RGB can refer to an LED or pixel that blends these three colours, or to a colour signal or interface that carries separate red, green and blue channels.
- 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
introducing adafruit stemma qt
Document · 1.5 MB · Click any page to view full size
Resources & Downloads
Guides, code examples, and more
Related Tutorials
Free guides on learn.littlebird.com.au