Introduction

VEML7700 is a high accuracy ambient light digital 16-bit resolution sensor. It includes a high sensitive photo diode, a low noise amplifier, a 16-bit A/D converter and supports an easy to use Gravity I2C interface. It outputs a digital signal directly and no need for complicated calculations. This is a more acurate and easier to use version of the simple foto resistor which only outputs a voltage that needs to be calculated in order to obtain meaningful data. The data which is output by this sensor is directly output in Lux (Lx). When objects which are lighted in homogeneous get the 1 lx luminous flux in one square meter ,their light intensity is 1lx. Sometimes to take good advantage of the illuminant, you can add a reflector to the illuminant. So that there will be more luminous flux in some directions and it can increase the ilumination of the target surface.

For example:

Specification

Board Overview

Gravity: I2C VEML7700 Ambient Light Sensor

Num Label Description
1 SDA IIC-Data
2 SCL IIC-Clock
3 GND GND
4 VCC VCC

Tutorial

Requirements

Connection Diagram

Arduino Connection

Sample Code

Download VEML7700 Arduino Library How to install Libraries in Arduino IDE

/*!
 * @file readVEML770.ino
 * @brief DFRobot's Digital Ambient Light Sensor
 * @n This example read the Lux from Digital Ambient Light Sensor, and then print them
 *
 * @copyright   [DFRobot](http://www.dfrobot.com), 2016
 * @copyright   GNU Lesser General Public License
 *
 * @version  V1.0
 * @date  2016-12-06
 */


#include <Wire.h>
#include "DFRobot_VEML7700.h"

DFRobot_VEML7700 als;

void setup()
{
  Serial.begin(9600);
  als.begin();
}

void loop()
{
  float lux;
  Serial.print("Lux: ");//Read Lux and print
  Serial.print(lux);
  Serial.println(" lx");
  delay(500);
}

Expected Results

Result

FAQ

For any questions, advice or cool ideas to share, please visit the DFRobot Forum.

More Documents

DFshopping_car1.png Get Gravity: I2C VEML7700 Ambient Light Sensor (0~120Klx) from DFRobot Store or DFRobot Distributor.

Turn to the Top