DF Robot 11 Channel Light Sensor

The DFRobot AS7341 11-Channel Visible Light Breakout Board employs the new generation of AS7341 spectral sensor IC launched by the well-known AMS company. The sensor features eight channels for the visible light, one channel for near-IR, and one channel without a filter. Also it integrates a dedicated channel to detect ambient light flicker. Besides that, this sensor comes with 6 independent 16-bit ADC channels for data processing in parallel. The two on-board extra-bright LEDs can supply light in dark environment.

1

Quick Spec

  • Power Supply: 3.3 ~ 5V
  • Visible Light Detection Range: F1(405-425nm), F2(435-455nm), F3(470-490nm), F4(505-525nm), F5(545-565nm), F6(580-600nm), F7(620-640nm), F8(670-690nm)
  • Operating Current (LED Off): <5mA
  • LED Driving Current: Class 1-20 (4-42mA)
  • I2C Address: 0x39
  • Operating Temperature Range: -30 ~ +85°C
  • Operating Humidity Range: 5%RH~85%RH
  • Dimension: 18 x 14mm
  • Net Weight: 13g

Pinout

0ba13daabb4174e150c5ac0236f71d3c
  • VCC: Positive
  • GND: Negative
  • SCL: I2C Clock line
  • SDA: I2C Data line
  • INT: Interrupt Pin: active Low
  • GPIO: General input/output

Wiring Diagram

b34468b16218af524e0dde7ec694ce48

Demo Code



/*!
 * @file getData.ino
 * @brief Read the values of 10 optical channels of the AS7341 spectral sensor, the more light of a certain wavelength of the light source,
 * the greater the corresponding channel value.
 *
 * @copyright   Copyright (c) 2010 DFRobot Co.Ltd (http://www.dfrobot.com)
 * @licence     The MIT License (MIT)
 * @author [fengli](li.feng@dfrobot.com)
 * @version  V1.0
 * @date  2020-07-16
 * @get from https://www.dfrobot.com
 * @url https://github.com/DFRobot/DFRobot_AS7341
 */
#include "DFRobot_AS7341.h"
/*!
 * @brief Construct the function
 * @param pWire IC bus pointer object and construction device, can both pass or not pass parameters, Wire in default.
 */
DFRobot_AS7341 as7341;

void setup(void)
{
  Serial.begin(115200);
  //Detect if IIC can communicate properly 
  while (as7341.begin() != 0) {
    Serial.println("IIC init failed, please check if the wire connection is correct");
    delay(1000);
  }
//  //Integration time = (ATIME + 1) x (ASTEP + 1) x 2.78µs
//  //Set the value of register ATIME, through which the value of Integration time can be calculated. The value represents the time that must be spent during data reading.
//  as7341.setAtime(29);
//  //Set the value of register ASTEP, through which the value of Integration time can be calculated. The value represents the time that must be spent during data reading.
//  as7341.setAstep(599);
//  //Set gain value(0~10 corresponds to X0.5,X1,X2,X4,X8,X16,X32,X64,X128,X256,X512)
//  as7341.setAGAIN(7);
//  //Enable LED
//  //as7341.enableLed(true);
//  //Set pin current to control brightness (1~20 corresponds to current 4mA,6mA,8mA,10mA,12mA,......,42mA)
//  //as7341.controlLed(10);
}
void loop(void)
{
  DFRobot_AS7341::sModeOneData_t data1;
  DFRobot_AS7341::sModeTwoData_t data2;

  //Start spectrum measurement 
  //Channel mapping mode: 1.eF1F4ClearNIR,2.eF5F8ClearNIR
  as7341.startMeasure(as7341.eF1F4ClearNIR);
  //Read the value of sensor data channel 0~5, under eF1F4ClearNIR
  data1 = as7341.readSpectralDataOne();

  Serial.print("F1(405-425nm):");
  Serial.println(data1.ADF1);
  Serial.print("F2(435-455nm):");
  Serial.println(data1.ADF2);
  Serial.print("F3(470-490nm):");
  Serial.println(data1.ADF3);
  Serial.print("F4(505-525nm):");   
  Serial.println(data1.ADF4);
  //Serial.print("Clear:");
  //Serial.println(data1.ADCLEAR);
  //Serial.print("NIR:");
  //Serial.println(data1.ADNIR);
  as7341.startMeasure(as7341.eF5F8ClearNIR);
  //Read the value of sensor data channel 0~5, under eF5F8ClearNIR
  data2 = as7341.readSpectralDataTwo();
  Serial.print("F5(545-565nm):");
  Serial.println(data2.ADF5);
  Serial.print("F6(580-600nm):");
  Serial.println(data2.ADF6);
  Serial.print("F7(620-640nm):");
  Serial.println(data2.ADF7);
  Serial.print("F8(670-690nm):");
  Serial.println(data2.ADF8);
  Serial.print("Clear:");
  Serial.println(data2.ADCLEAR);
  Serial.print("NIR:");
  Serial.println(data2.ADNIR);
  delay(1000);
}


Expected Result

b0b7cad198b11ced21d849d234df6579
ce2a6a210063d316d758b6b5f7c25a01

Resources

Shipping List

  • 1 x DF Robot 11 Channel Light Sensor


DF Robot 11 Channel Light Sensor

  • Brand: DF Robot
  • Product Code: SEN0364
  • Stock

    Warehouse Stock Status Location
    Centurion In Stock AS73
    Stellenbosch In Stock U46

    We ship free of charge between branches to complete your order.

  • R445.00 (Inc Tax: R511.75)


Related Products

SI1145 Digital UV Index / IR / Visible Light Sensor

SI1145 Digital UV Index / IR / Visible Light Sensor

SI1145 Digital UV Index / IR / Visible Light Sensor The SI1145 is a new sensor from SiLabs with a calibrated UV sensing algorithm that can calculate UV Index. We took this outside a couple days and..

Centurion
Stellenbosch

R250.00 (Inc Tax: R287.50)

SparkFun RGB Light Sensor

SparkFun RGB Light Sensor

SparkFun RGB Light Sensor - ISL29125 If you’ve had ideas for a project that depends on the ability to sense different spectrums of visible light and react based on those measurements, the ISL29125 br..

Centurion
Stellenbosch

R150.00 (Inc Tax: R172.50)

SparkFun Ambient Light Sensor Breakout - APDS-9301

SparkFun Ambient Light Sensor Breakout - APDS-9301

SparkFun Ambient Light Sensor Breakout - APDS-9301 The APDS-9301 Ambient Light Sensor Breakout is an I2C-compatible luminosity sensor board that converts light intensity to a digital output signal. T..

Centurion
Stellenbosch

R125.00 (Inc Tax: R143.75)

SI1145 Digital LUX/UV & IR Sensor Module

SI1145 Digital LUX/UV & IR Sensor Module

SI1145 Digital LUX/UV & IR Sensor Module The SI1145 is a new sensor from SiLabs with a calibrated light sensing algorithm that can calculate UV Index. It doesn't contain an actual UV sensing elem..

Centurion
Stellenbosch

R149.00 (Inc Tax: R171.35)

Adafruit Lux/Light Sensor - VEML7700 I2C

Adafruit Lux/Light Sensor - VEML7700 I2C

Adafruit Lux/Light Sensor - VEML7700 I2C The VEML7700 makes your life easier by calculating the lux, which is an SI unit for light. You'll get more consistent readings between multiple sensors becaus..

Centurion
Stellenbosch

R109.00 (Inc Tax: R125.35)

Wave High Sensitivity Light Sensor - TSL25911

Wave High Sensitivity Light Sensor - TSL25911

Wave High Sensitivity Light Sensor - TSL25911 This is a high sensitivity digital ambient light sensor module based on TSL25911, features 600M:1 wide dynamic range, detects light intensity up to 880..

Centurion
Stellenbosch

R98.00 (Inc Tax: R112.70)

Tags: dfrobot, 11 channel, light, sensor, as734, colour, color