Same-day dispatch before 2 PM · Free delivery over ₹999 · GST invoices Get the appPrices incl. GST
Geekobot
Snap & SendNEWGeeko AIWhere's myOrder
Log in
Products
  • Projects
    • Component guidesHow parts work, with code you can run
    • Learning pathsFrom your first LED to your first robot
    • Workshops & eventsOnline sessions for makers and classes
    • ElectrolarkFree guided builds, simulator and certificates
    • Students & teachersStudent discount and classroom help
    • CommunityShare builds and ask other makers
    • CalculatorsOhm's law, LED resistor, 555 and 100+ more
    • Circuit builderWire parts and run the circuit, powered by Electrolark
    • Geeko AIAsk what to buy or how to wire it
    • Snap & SendPhotograph a part or list, we find it
    • Part finderAnswer a few questions, get the right part
    • Compatibility checkWill these two parts work together?
    • Compare partsSpecs side by side
    • Business & bulk ordersGST invoices, credit and volume prices
    • Request a quotationSend your list, get a quote
    • Classroom kitsPer-student kits and lab bundles
    • Gift cardsFor students, teams and events
  • Atal Tinkering Lab
BOM to cart
Geekobot

Components, kits and know-how for makers, students, engineers, labs and businesses across India.

Ask Geeko AIOrders, parts and projects, any timeEmail supportReply within 1 working dayGet the Geekobot appAdd it to your home screen, free

Follow us

Shop

  • Boards & SBCs
  • Sensors & Modules
  • IoT & Wireless
  • Drone & FPV
  • 3D Printing
  • Filaments & Resins
  • Motors & Drivers
  • Power & Batteries
  • Semiconductors
  • Passive
  • Displays & LEDs
  • Switches & Relays
  • Wires & Cables
  • Prototyping
  • Tools & Test
  • Robotics
  • STEM Kits
  • Atal Tinkering Lab
  • Mechanical Parts
  • Audio

Orders

  • Track your order
  • Help & support
  • Shipping and delivery
  • Refunds and cancellation
  • Contact us

Learn

  • Projects
  • Geeko AI project assistant
  • Learning paths
  • Guides
  • Calculators
  • Electrolark: free guided builds

Part tools

  • Part finder
  • Compare parts
  • Will it work with my board?

Institutions

  • Classroom kits
  • Atal Tinkering Lab
  • Students & teachers
  • Workshops & Events

Business

  • Business & education
  • Request a quotation
  • BOM bulk upload
  • Quick order by SKU

Company

  • About Geekobot
  • Community
  • Gift cards
  • Terms & conditions
  • Privacy policy
  • Product directory
  • Sitemap

© 2026 Geekobot, a trade name of OLatus Systems Private Limited. All rights reserved.

20, 1st Floor, Neeladri Complex, 10th Cross, Sampige Rd, 2nd Main, Malleshwaram, Bengaluru, Karnataka 560003 · GSTIN 29AACCO0462F1ZM

+91 91810 15607 · connect@geekobot.in · Monday to Saturday, 10 AM to 2 PM IST

UPI · CARDS · NETBANKING · GST INVOICES

ShopProjectsGeeko AIGuides
Compare 0 parts →
Log in

Shop by category

Shop all components
  • Boards & SBCs1,910 products
    • Alternative Single Board Computers
    • Arduino Ecosystem
    • FPGA & Logic Boards
    • Microcontroller & Wireless Boards
    View all
  • Sensors & Modules4,701 products
    • Biomedical & Heart Rate
    • Current, Voltage & Power
    • Force, Weight & Pressure
    • Gas, Weather & Environmental
    View all
  • IoT & Wireless2,314 products
    • RF Modules
    • RFID & NFC
    • Antennas & RF Accessories
    • Cameras & Smart Vision
    View all
  • Drone & FPV3,558 products
    • Flight Control & Navigation
    • FPV Video & Optics
    • Frames & Structural Parts
    • Motors & Propulsion
    View all
  • 3D Printing2,204 products
    • 3D Printers
    • 3D Scanners & Digitizers
    • Laser Engravers & Cutters
    • Material Management & Upgrades
    View all
  • Filaments & Resins1,472 products
    • Filaments
    • Photopolymer Resins
    View all
  • Motors & Drivers463 products
    • BLDC Motor Drivers
    • DC & Geared Motors
    • DC Motor Drivers
    • Linear Actuators & Solenoids
    View all
  • Power & Batteries557 products
    • Battery Holders & Connectors
    • Breadboard Power
    • Chargers & BMS
    • DC-DC Converters
    View all
  • Semiconductors295 products
    • Diodes & Rectifiers
    • Interface & RF Encoder ICs
    • Logic ICs (74xx)
    • Logic ICs (CD4000)
    View all
  • Passive67 products
    • Capacitors
    • Circuit Protection
    • Crystals & Oscillators
    • Inductors
    View all
  • Displays & LEDs572 products
    • 7-Segment & Dot Matrix
    • Addressable LEDs
    • Character LCDs
    • Graphic LCDs
    View all
  • Switches & Relays184 products
    • Keypads & Touch
    • Push Buttons & Tactile
    • Relay Modules
    • Relays
    View all
  • Wires & Cables233 products
    • Board-to-Wire Connectors
    • Crimp & Splice
    • Headers & Dupont
    • Heat Shrink & Sleeving
    View all
  • Prototyping101 products
    • Breadboards
    • Interface Modules
    • PCBs & Perfboards
    View all
  • Tools & Test717 products
    • Bench Power Supplies
    • Hand Tools
    • Measuring Tools
    • Meters & Testers
    View all
  • Robotics180 products
    • Humanoid & Legged Robots
    • Robot Chassis & Platforms
    • Robotic Arms & Grippers
    • Wheels & Casters
    View all
  • STEM Kits268 products
    • Arduino Learning Kits
    • Coding & IoT Kits
    • Early Coding (Ages 3-8)
    • Invention Kits
    View all
  • Atal Tinkering Lab196 products
    • Package 1: Electronics, Robotics, IoT and Sensors
    • Package 2: Rapid Prototyping Tools
    • Package 3: Mechanical, Electrical and Measurement Tools
    • Package 4: Power Supply, Accessories and Safety Equipment
    View all
  • Mechanical Parts212 products
    • Bearings
    • Brackets & Mounts
    • Couplers
    • Fasteners & Standoffs
    View all
  • Audio109 products
    • Amplifier Modules
    • Buzzers & Sirens
    • Speakers
    View all
  1. Home
  2. ›Guides
  3. ›Sensors
  4. ›Spectral and Colour Light Sensors

Component guide · Intermediate · 4 min read

Spectral and Colour Light Sensors

AS7341 11-Channel (Adafruit, DFRobot, Waveshare), AS7343 14-Channel, AS7262 6-Channel, SparkFun AS7265x Triad, AS734x, Mikroe VD6283, BH1745, ISL29125, LTR-381RGB, APDS9999, TMG39931, Pmod COLOR and DFRobot CCT Meter

By Geekobot Learning Team · Updated 29 Oct 2026

On this page
Short answerWhat the Spectral and colour light sensors: AS7341, AS7343, AS7262, AS7265x Triad, VD6283, BH1745, ISL29125, APDS9999 and CCT meters isSpectral and colour light sensors: AS7341, AS7343, AS7262, AS7265x Triad, VD6283, BH1745, ISL29125, APDS9999 and CCT meters pinoutWiring the Spectral and colour light sensors: AS7341, AS7343, AS7262, AS7265x Triad, VD6283, BH1745, ISL29125, APDS9999 and CCT metersExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Short answer

An RGB colour sensor reads red, green and blue light. A spectral sensor such as the AS7341 splits visible light into 8 to 18 narrow bands, so it can compare LED colours, measure plant grow lights, check liquids or sort objects more reliably than RGB. AS7343 adds more channels, the AS7265x Triad reaches into UV and near-IR, and CCT meters report colour temperature and lux directly.

Key specs at a glance

Channels
RGB (BH1745, ISL29125), 6 (AS7262), 11 (AS7341), 14 (AS7343), 18 (AS7265x)
Range
Visible; AS7265x adds UV and NIR
Interface
I2C on all; UART also on AS7262 and Triad
Supply
3.3 V; 5 V tolerant breakouts by maker
Extras
Flicker detection on AS7341; proximity on APDS9999 and TMG39931
Connector
STEMMA QT/Qwiic, Gravity, Pmod or pins

Models in this guide

These are alternatives. Pick the one that fits your project; you only need one.

  • Option 1ACEBOTT QB105 Color Sensor Module – I2C Output, 3-10mm Detection₹989
  • Option 2AS734x Visible Infrared Color Spectrometer Sensor Module – I2C Interface₹689
  • Option 3Adafruit APDS9999 Proximity, Lux Light & Color Sensor – STEMMA QT / Qwiic₹1,202
  • Option 4Adafruit AS7341 10-Channel Light / Color Sensor Breakout – STEMMA QT/Qwiic₹2,701
  • Option 5Adafruit AS7343 14-Channel Light / Color Sensor Breakout – STEMMA QT / Qwiic₹3,173
  • Option 6DFRobot Fermion AS7341 11-Channel Visible Light Sensor Breakout Module₹2,227
01

What the Spectral and colour light sensors: AS7341, AS7343, AS7262, AS7265x Triad, VD6283, BH1745, ISL29125, APDS9999 and CCT meters is

A spectral sensor such as the AS7341 measures light in many narrow colour bands instead of just red, green and blue, so it can compare light sources and colours precisely.

For object colour, use the board's own white LED or a steady light source and fix the distance, ideally in a dark shroud; ambient light changes every reading. Take a white reference reading and divide each channel by it to get reflectance.

For light measurement, point the sensor at the source and set gain and integration time so no channel saturates. Spectral sensors are not lab spectrometers: channels are broad and readings are relative unless you calibrate against a known reference.

02

Spectral and colour light sensors: AS7341, AS7343, AS7262, AS7265x Triad, VD6283, BH1745, ISL29125, APDS9999 and CCT meters pinout

The pins on the Spectral and colour light sensors: AS7341, AS7343, AS7262, AS7265x Triad, VD6283, BH1745, ISL29125, APDS9999 and CCT meters and what each one does.

PinFunction
VIN3.3 V or 5 V by breakout
GNDGround
SDAI2C data
SCLI2C clock
INTInterrupt (optional)
LED / GPIOOn-board illumination LED control
PinFunction
VIN
3.3 V or 5 V by breakout
GND
Ground
SDA
I2C data
SCL
I2C clock
INT
Interrupt (optional)
LED / GPIO
On-board illumination LED control
03

Wiring the Spectral and colour light sensors: AS7341, AS7343, AS7262, AS7265x Triad, VD6283, BH1745, ISL29125, APDS9999 and CCT meters

AS7341 address is 0x39; watch for clashes with other I2C sensors at the same address.

Spectral and colour light sensors: AS7341, AS7343, AS7262, AS7265x Triad, VD6283, BH1745, ISL29125, APDS9999 and CCT meters pinConnectionNote
VIN3.3V (or 5V if the breakout allows)Check the board
GNDGND
SDAA4 on Uno, GPIO21 on ESP32
SCLA5 on Uno, GPIO22 on ESP32
VIN
Connection:
3.3V (or 5V if the breakout allows)
Note:
Check the board
GND
Connection:
GND
SDA
Connection:
A4 on Uno, GPIO21 on ESP32
SCL
Connection:
A5 on Uno, GPIO22 on ESP32
04

Example code

Lower the gain if any channel reads 65535 (saturated). DFRobot and Waveshare AS7341 boards have their own libraries with the same idea.

Read all AS7341 channels (Adafruit_AS7341) · Arduino C++Verify & upload in Electrolark
#include <Adafruit_AS7341.h>

Adafruit_AS7341 as7341;

void setup() {
  Serial.begin(115200);
  if (!as7341.begin()) {
    Serial.println("AS7341 not found");
    while (1) delay(10);
  }
  as7341.setATIME(100);
  as7341.setASTEP(999);
  as7341.setGain(AS7341_GAIN_256X);
}

void loop() {
  uint16_t r[12];
  if (!as7341.readAllChannels(r)) return;
  const char* names[] = {"415","445","480","515","CLR","NIR","555","590","630","680","CLR","NIR"};
  for (int i = 0; i < 12; i++) {
    if (i == 4 || i == 5) continue;     // duplicate clear/NIR slots
    Serial.print(names[i]); Serial.print("nm:"); Serial.print(r[i]); Serial.print(" ");
  }
  Serial.println();
  delay(1000);
}
05

Setup and tuning

Library

use the maker's library (Adafruit AS7341, DFRobot or SparkFun AS7265x) and read all channels in one call.

Gain and integration time

raise them in dim light and lower them in bright light so channels do not saturate.

Fixed geometry

keep the same distance and angle to the sample for every measurement.

Calibrate

take a reading of a white reference and divide later readings by it to compare colours.

Block stray light

use a black shroud around the sensor and sample when measuring reflected colour.

06

What you need

Shop this list17 of 17 found in our store · ₹37,196

  • ACEBOTT QB105 Color Sensor Module – I2C Output, 3-10mm Detection: the part this guide coversACEBOTT QB105 Color Sensor Module – I2C Output, 3-10mm Detection₹989
  • AS734x Visible Infrared Color Spectrometer Sensor Module – I2C Interface: another version this guide coversAS734x Visible Infrared Color Spectrometer Sensor Module – I2C Interface₹689
  • Adafruit APDS9999 Proximity, Lux Light & Color Sensor – STEMMA QT / Qwiic: another version this guide coversAdafruit APDS9999 Proximity, Lux Light & Color Sensor – STEMMA QT / Qwiic₹1,202
  • Adafruit AS7341 10-Channel Light / Color Sensor Breakout – STEMMA QT/Qwiic: another version this guide coversAdafruit AS7341 10-Channel Light / Color Sensor Breakout – STEMMA QT/Qwiic₹2,701
  • Adafruit AS7343 14-Channel Light / Color Sensor Breakout – STEMMA QT / Qwiic: another version this guide coversAdafruit AS7343 14-Channel Light / Color Sensor Breakout – STEMMA QT / Qwiic₹3,173
  • DFRobot Fermion AS7341 11-Channel Visible Light Sensor Breakout Module: another version this guide coversDFRobot Fermion AS7341 11-Channel Visible Light Sensor Breakout Module₹2,227
  • DFRobot Gravity AS7341 11-Channel Visible Light Sensor – I2C Interface: another version this guide coversDFRobot Gravity AS7341 11-Channel Visible Light Sensor – I2C Interface₹2,309
  • DFRobot Gravity Factory Calibrated Correlated Color Temperature CCT & ALS Meter for Professional Photography: another version this guide coversDFRobot Gravity Factory Calibrated Correlated Color Temperature CCT & ALS Meter for Professional Photography₹3,489
  • Digilent Pmod COLOR Color Sensor Module – I2C Interface, IR-Blocking Filter: another version this guide coversDigilent Pmod COLOR Color Sensor Module – I2C Interface, IR-Blocking Filter₹1,369
  • Lite-On LTR-381RGB-01 SMD-6 RGB Ambient Light Sensor ROHS: another version this guide coversLite-On LTR-381RGB-01 SMD-6 RGB Ambient Light Sensor ROHS₹74
  • Mikroe SPECTROMETER 2 CLICK (Mikroe-5167) – VD6283TX Colour & Light Sensor Board, I²C, RGB/IR/Clear Channels, mikroBUS: another version this guide coversMikroe SPECTROMETER 2 CLICK (Mikroe-5167) – VD6283TX Colour & Light Sensor Board, I²C, RGB/IR/Clear Channels, mikroBUS₹2,729
  • Pimoroni AS7262 6-Channel Spectral Sensor Breakout – I2C/UART Interface: another version this guide coversPimoroni AS7262 6-Channel Spectral Sensor Breakout – I2C/UART Interface₹2,368
  • Pimoroni BH1745 Luminance & Color Sensor Breakout – I2C Interface: another version this guide coversPimoroni BH1745 Luminance & Color Sensor Breakout – I2C Interface₹1,140
  • Seeed Studio Studio Grove TMG39931 Light, Gesture, Color & Proximity Sensor Module: another version this guide coversSeeed Studio Grove TMG39931 Light, Gesture, Color & Proximity Sensor Module₹1,439Closest match, check the specs
  • SparkFun ISL29125 RGB Color Light Sensor Breakout Board – I2C Interface: another version this guide coversSparkFun ISL29125 RGB Color Light Sensor Breakout Board – I2C Interface₹1,669
  • SparkFun Triad Spectroscopy Sensor – AS7265x Spectral Sensor Module: another version this guide coversSparkFun Triad Spectroscopy Sensor – AS7265x Spectral Sensor Module₹7,629
  • Waveshare AS7341 Spectral Color Sensor – I2C Interface, 3.3V/5V Compatible: another version this guide coversWaveshare AS7341 Spectral Color Sensor – I2C Interface, 3.3V/5V Compatible₹2,000
07

Alternatives and when to choose them

  • ✓TCS34725 colour sensor: simple RGB.
  • ✓IR reflective sensors: grayscale and line detection.
08

Common mistakes to avoid

  • !Running at high gain in bright light, so channels saturate.
  • !Changing the distance to the sample between readings.
  • !Skipping a white reference, so colours cannot be compared.
  • !Letting room light leak in when measuring reflected colour.
09

Frequently asked questions

What is the difference between RGB and spectral sensors?

RGB sensors read three broad bands; spectral sensors read 6 to 18 narrow bands for better colour and light analysis.

Can the AS7341 measure plant grow lights?

Yes. Its channels show how much blue, red and other bands a lamp gives, useful for comparing grow lights.

Why are all my readings at maximum?

The sensor is saturated. Lower the gain or the integration time.

Does the AS7341 detect flicker?

Yes. It has a flicker detection feature for 100 and 120 Hz light flicker.

Can I use it with a 5 V Arduino?

Use a breakout with level shifting and a regulator, as most bare sensors are 3.3 V.

Parts for this guide

  • ACEBOTT QB105 Color Sensor Module – I2C Output, 3-10mm Detection
    ₹989View
  • AS734x Visible Infrared Color Spectrometer Sensor Module – I2C Interface
    ₹689View
  • Adafruit APDS9999 Proximity, Lux Light & Color Sensor – STEMMA QT / Qwiic
    ₹1,202View
  • Adafruit AS7341 10-Channel Light / Color Sensor Breakout – STEMMA QT/Qwiic
    ₹2,701View
  • Adafruit AS7343 14-Channel Light / Color Sensor Breakout – STEMMA QT / Qwiic
    ₹3,173View
  • DFRobot Fermion AS7341 11-Channel Visible Light Sensor Breakout Module
    ₹2,227View
  • DFRobot Gravity AS7341 11-Channel Visible Light Sensor – I2C Interface
    ₹2,309View
  • DFRobot Gravity Factory Calibrated Correlated Color Temperature CCT & ALS Meter for Professional Photography
    ₹3,489View
  • Digilent Pmod COLOR Color Sensor Module – I2C Interface, IR-Blocking Filter
    ₹1,369View
  • Lite-On LTR-381RGB-01 SMD-6 RGB Ambient Light Sensor ROHS
    ₹74View
  • Mikroe SPECTROMETER 2 CLICK (Mikroe-5167) – VD6283TX Colour & Light Sensor Board, I²C, RGB/IR/Clear Channels, mikroBUS
    ₹2,729View
  • Pimoroni AS7262 6-Channel Spectral Sensor Breakout – I2C/UART Interface
    ₹2,368View
  • Pimoroni BH1745 Luminance & Color Sensor Breakout – I2C Interface
    ₹1,140View
  • Seeed Studio Grove TMG39931 Light, Gesture, Color & Proximity Sensor Module
    ₹1,439View
  • SparkFun ISL29125 RGB Color Light Sensor Breakout Board – I2C Interface
    ₹1,669View
  • SparkFun Triad Spectroscopy Sensor – AS7265x Spectral Sensor Module
    ₹7,629View
  • Waveshare AS7341 Spectral Color Sensor – I2C Interface, 3.3V/5V Compatible
    ₹2,000View
Shop Color, RGB & Spectral Sensors

Projects that use it

Put this into practice: 6 step-by-step builds in our project library use parts from this guide.

Intermediate · 1–2 hoursColour detector with RGB ringView projectAdvanced · 3–4 hoursColour sorting machineView projectIntermediate · 2 hoursColour identifier for colour-blind usersView project
Browse all 6 projects

Keep learning

ComparisonIntermediateColour SensorsBoth sensors read the red, green and blue light reflected from an object.3 min read · SensorsComponent guideBeginnerIR Reflective SensorsEach of these has an IR LED and a phototransistor side by side.3 min read · Sensors

Sources

  • ams OSRAM AS7341 datasheet
  • Adafruit AS7341 guide

Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

On this page
Short answerWhat the Spectral and colour light sensors: AS7341, AS7343, AS7262, AS7265x Triad, VD6283, BH1745, ISL29125, APDS9999 and CCT meters isSpectral and colour light sensors: AS7341, AS7343, AS7262, AS7265x Triad, VD6283, BH1745, ISL29125, APDS9999 and CCT meters pinoutWiring the Spectral and colour light sensors: AS7341, AS7343, AS7262, AS7265x Triad, VD6283, BH1745, ISL29125, APDS9999 and CCT metersExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Need a hand?Ask Geeko AI which part fits your project, or talk to the Geekobot team.Ask Geeko AIHelp & support

Parts for this guide8 items · ₹13,827

ACEBOTT QB105 Color Sensor Module – I2C Output, 3-10mm Detection · DFRobot Gravity Factory Calibrated Correlated Color Temperature CCT & ALS Meter for Professional Photography · Digilent Pmod COLOR Color Sensor Module – I2C Interface, IR-Blocking Filter · Lite-On LTR-381RGB-01 SMD-6 RGB Ambient Light Sensor ROHS · Mikroe SPECTROMETER 2 CLICK (Mikroe-5167) – VD6283TX Colour & Light Sensor Board, I²C, RGB/IR/Clear Channels, mikroBUS · Pimoroni AS7262 6-Channel Spectral Sensor Breakout – I2C/UART Interface · Pimoroni BH1745 Luminance & Color Sensor Breakout – I2C Interface · SparkFun ISL29125 RGB Color Light Sensor Breakout Board – I2C Interface

Run itChange the inputs and watch the output

Raw counts per band. A coloured object raises its own band most.

Serial monitor115200 baud
415nm:297 445nm:1791 480nm:1496 515nm:1096 555nm:1294 590nm:1207 630nm:995 680nm:499 

A simulation of the sketch above, so you know what to expect. Real readings vary with your parts and wiring.

Ask the Community

Ask a question