# Adafruit VEML7700 Ambient Light Sensor

## Overview

![VEML7700](https://cdn-shop.adafruit.com/970x728/5378-04.jpg )

Vishay has a lot of light sensors out there, and this is a nice simple lux sensor that's easy to add to any microcontroller. Most light sensors just give you a number for brighter/darker ambient lighting. 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 because you aren't dealing with some unitless values.

The sensor has 16-bit dynamic range for ambient light detection from 0 lux to about 120k lux with resolution down to 0.0036 lx/ct, with software-adjustable gain and integration times.

![](https://cdn-learn.adafruit.com/assets/assets/000/122/468/medium800/adafruit_products_VEML_back.jpg?1689021671)

Interfacing is easy - this sensor uses plain, universal I2C. We put this sensor on a breakout board with a 3.3V regulator and logic level shifter so you can use it with 3.3V or 5V power/logic microcontrollers. [We have written libraries for Arduino](https://github.com/adafruit/Adafruit_VEML7700) (C/C++)[as well as CircuitPython (Python 3)](https://github.com/adafruit/Adafruit_CircuitPython_VEML7700) so you can use this sensor with just about any kind of device, even a Raspberry Pi!

This is Kattni's first PCB design for Adafruit, it's even signed on the back!

![](https://cdn-learn.adafruit.com/assets/assets/000/122/469/medium800/adafruit_products_VEML_top_header.jpg?1689021747)

As with all Adafruit breakouts, we've done the work to make this handy light sensor super easy to use. We've put it on a breakout board with the required support circuitry and connectors to make it easy to work with. Since I2C is supported, we've added&nbsp;[SparkFun Qwiic](https://www.sparkfun.com/qwiic)&nbsp;compatible&nbsp;[**STEMMA QT**](https://learn.adafruit.com/introducing-adafruit-stemma-qt)&nbsp;JST SH connectors that allow you to get going&nbsp; **without needing to solder.** &nbsp;Just use a&nbsp;[STEMMA QT adapter cable](https://www.adafruit.com/product/4209), plug it into your favorite microcontroller or Blinka supported SBC and you're ready to rock!&nbsp;[QT Cable is not included, but we have a variety in the shop](https://www.adafruit.com/?q=stemma+qt+cable&sort=BestMatch).&nbsp;

Info: 

![](https://cdn-learn.adafruit.com/assets/assets/000/109/029/medium800/adafruit_products_VEML7700-original-top.jpg?1644960476)

# Adafruit VEML7700 Ambient Light Sensor

## Pinouts

![](https://cdn-learn.adafruit.com/assets/assets/000/109/030/medium800/adafruit_products_VEML7700_pinouts.jpg?1644960878)

![](https://cdn-learn.adafruit.com/assets/assets/000/073/761/medium800/adafruit_products_VEML7700TopCropped.jpg?1553791910)

## Power Pins

- **Vin** - this is the power pin. Since the sensor chip uses 3 VDC, we have included a voltage regulator on board that will take 3-5VDC and safely convert it down. To power the board, give it the same power as the logic level of your microcontroller - e.g. for a 5V micro like Arduino, use 5V
- **3Vo** - this is the 3.3V output from the voltage regulator, you can grab up to 100mA from this if you like
- **GND** - common ground for power and logic

## I2C Logic Pins

- **SCL** - this is the I2C clock pin, connect to your microcontroller's I2C clock line.
- **SDA** - this is the I2C data pin, connect to your microcontroller's I2C data line.
- [**STEMMA QT**](https://learn.adafruit.com/introducing-adafruit-stemma-qt) **-** These connectors allow you to connect to development boards with **STEMMA QT** connectors, or to other things, with[various associated accessories](https://www.adafruit.com/?q=JST%20SH%204).

## Power LED and LED Jumper

- **Power LED** - In the upper right corner, above the STEMMA connector, on the front of the board, is the power LED, labeled **on**. It is a green LED.
- **LED jumper** - This jumper is located on the back of the board. Cut the trace on this jumper to cut power to the "on" LED.

![](https://cdn-learn.adafruit.com/assets/assets/000/075/680/medium800/adafruit_products_4162.png?1557864511)

# Adafruit VEML7700 Ambient Light Sensor

## Assembly

![](https://cdn-learn.adafruit.com/assets/assets/000/073/895/medium800/adafruit_products_image.png?1553892770)

## Prepare the header strip:

Cut the strip to length if necessary. It will be easier to solder if you insert it into a breadboard -&nbsp; **long pins down**

![adafruit_products_DSC_4206.jpg](https://cdn-learn.adafruit.com/assets/assets/000/073/896/medium640/adafruit_products_DSC_4206.jpg?1553892853)

![adafruit_products_DSC_4210.jpg](https://cdn-learn.adafruit.com/assets/assets/000/073/897/medium640/adafruit_products_DSC_4210.jpg?1553892966)

![adafruit_products_DSC_4212.jpg](https://cdn-learn.adafruit.com/assets/assets/000/073/899/medium640/adafruit_products_DSC_4212.jpg?1553893110)

## Add the breakout board:

Place the breakout board over the pins so that the short pins poke through the breakout pads

![adafruit_products_DSC_4211.jpg](https://cdn-learn.adafruit.com/assets/assets/000/073/904/medium640/adafruit_products_DSC_4211.jpg?1553894895)

## And Solder!

Be sure to solder all 5 pins for reliable electrical contact.  
  
_(For tips on soldering, be sure to check out our&nbsp;_[_Guide to Excellent Soldering_](http://learn.adafruit.com/adafruit-guide-excellent-soldering)_)._

![adafruit_products_DSC_4214.jpg](https://cdn-learn.adafruit.com/assets/assets/000/073/905/medium640/adafruit_products_DSC_4214.jpg?1553897084)

![adafruit_products_DSC_4216.jpg](https://cdn-learn.adafruit.com/assets/assets/000/073/906/medium640/adafruit_products_DSC_4216.jpg?1553895484)

![adafruit_products_DSC_4224.jpg](https://cdn-learn.adafruit.com/assets/assets/000/073/907/medium640/adafruit_products_DSC_4224.jpg?1553895580)

You're done! Check your solder joints visually and continue onto the next steps

![adafruit_products_DSC_4227.jpg](https://cdn-learn.adafruit.com/assets/assets/000/073/908/medium640/adafruit_products_DSC_4227.jpg?1553895906)

# Adafruit VEML7700 Ambient Light Sensor

## Arduino

# Wiring

Connecting the VEML7700 to your Feather or Arduino is easy:

- If you are running a Feather (3.3V), connect&nbsp; **Feather**  **3V** to **board** **VIN (red wire on STEMMA QT version)**  
- If you are running a 5V Arduino (Uno, etc.), connect **Arduino**  **5V** to&nbsp; **board** **VIN (red wire on STEMMA QT version)**  
- Connect **Feather or Arduino**  **GND** to **board** **GND (black wire on STEMMA QT version)**  
- Connect **Feather or Arduino**  **SCL** to **board SCL (yellow wire on STEMMA QT version)**  
- Connect **Feather or Arduino**  **SDA** to **board SDA (blue wire on STEMMA QT version)**  

![adafruit_products_VEML7700QR_Arduino_STEMMA_bb.jpg](https://cdn-learn.adafruit.com/assets/assets/000/109/042/medium640/adafruit_products_VEML7700QR_Arduino_STEMMA_bb.jpg?1645043892)

![adafruit_products_VEML7700QR_Arduino_breadboard_bb.jpg](https://cdn-learn.adafruit.com/assets/assets/000/109/043/medium640/adafruit_products_VEML7700QR_Arduino_breadboard_bb.jpg?1645043914)

![adafruit_products_VEML7700_arduino_original.jpg](https://cdn-learn.adafruit.com/assets/assets/000/109/044/medium640/adafruit_products_VEML7700_arduino_original.jpg?1645043931)

The final results should resemble the illustration above, showing an Adafruit Metro development board.

# Installation

You can install the **Adafruit VEML7700 Library** for Arduino using the Library Manager in the Arduino IDE:

![](https://cdn-learn.adafruit.com/assets/assets/000/073/887/medium800/adafruit_products_Arduino_Manage_Libraries.png?1553884536)

Click the&nbsp; **Manage Libraries ...** menu item, search for **Adafruit VEML7700** ,&nbsp;and select the&nbsp; **Adafruit VEML7700** library:

![](https://cdn-learn.adafruit.com/assets/assets/000/073/888/medium800/adafruit_products_Arduino_VEML7700_Library.png?1553884632)

Then follow the same process for the **Adafruit BusIO** library.

![](https://cdn-learn.adafruit.com/assets/assets/000/073/889/medium800/adafruit_products_Arduino_BusIO_Library.png?1553886036)

# Load Example

Open up&nbsp; **File -\> Examples -\> Adafruit VEML7700**  **-\> veml7700\_test** and upload to your Arduino wired up to the sensor.

Upload the sketch to your board and open up the Serial Monitor ( **Tools-\>Serial Monitor** ). You should see the the values for Lux, white light, and raw ambient light levels.

# Example Code

The following example code is part of the standard library, but illustrates how you can retrieve sensor data from the VEML7700 for the Lux, white light and raw ambient light values:

https://github.com/adafruit/Adafruit_VEML7700/blob/master/examples/veml7700_test/veml7700_test.ino

You should get something resembling the following output when you open the Serial Monitor at 115200 baud:

![](https://cdn-learn.adafruit.com/assets/assets/000/073/890/medium800/adafruit_products_VEML7700_Arduino_Serial_Output.png?1553886538)

# Adafruit VEML7700 Ambient Light Sensor

## Arduino Docs

# Adafruit VEML7700 Ambient Light Sensor

## Python & CircuitPython

It's easy to use the VEML7700 sensor with CircuitPython and the&nbsp;[Adafruit CircuitPython VEML7700](https://github.com/adafruit/Adafruit_CircuitPython_VEML7700)&nbsp;module.&nbsp; This module allows you to easily write Python code that reads the ambient light levels, including Lux, from the sensor.

You can use this sensor with any CircuitPython microcontroller board or with a computer that has GPIO and Python&nbsp;[thanks to Adafruit\_Blinka, our CircuitPython-for-Python compatibility library](https://learn.adafruit.com/circuitpython-on-raspberrypi-linux).

## CircuitPython Microcontroller Wiring

First wire up a VEML7700 to your board exactly as follows. Here is an example of the VEML7700 wired to a Feather using I2C:

- **Board 3V** &nbsp;to&nbsp;**sensor VIN (red wire on STEMMA QT version)**  
- **Board GND** &nbsp;to&nbsp;**sensor GND (black wire on STEMMA QT version)**  
- **Board SCL** &nbsp;to&nbsp;**sensor SCL (yellow wire on STEMMA QT version)**  
- **Board SDA** &nbsp;to&nbsp;**sensor SDA (blue wire on STEMMA QT version)**  

![adafruit_products_VEML7700QR_Feather_STEMMA_bb.jpg](https://cdn-learn.adafruit.com/assets/assets/000/109/045/medium640/adafruit_products_VEML7700QR_Feather_STEMMA_bb.jpg?1645044621)

![adafruit_products_VEML7700QR_Feather_breadboard_bb.jpg](https://cdn-learn.adafruit.com/assets/assets/000/109/046/medium640/adafruit_products_VEML7700QR_Feather_breadboard_bb.jpg?1645044639)

![adafruit_products_VEML7700_Feather_original.png](https://cdn-learn.adafruit.com/assets/assets/000/109/047/medium640/adafruit_products_VEML7700_Feather_original.png?1645044656)

Primary: 

## Python Computer Wiring

Since there's&nbsp;_dozens_&nbsp;of Linux computers/boards you can use we will show wiring for Raspberry Pi. For other platforms,&nbsp;[please visit the guide for CircuitPython on Linux to see whether your platform is supported](https://learn.adafruit.com/circuitpython-on-raspberrypi-linux).&nbsp;

Here's the Raspberry Pi wired with I2C:

- **Pi 3V3** &nbsp;to&nbsp;**sensor VIN (red wire on STEMMA QT version)**  
- **Pi GND** &nbsp;to&nbsp;**sensor GND (black wire on STEMMA QT version)**  
- **Pi SCL** &nbsp;to&nbsp;**sensor SCL (yellow wire on STEMMA QT version)**  
- **Pi SDA** &nbsp;to&nbsp;**sensor SDA (blue wire on STEMMA QT version)**  

![adafruit_products_VEML7700QR_RasPi_STEMMA_bb.jpg](https://cdn-learn.adafruit.com/assets/assets/000/109/048/medium640/adafruit_products_VEML7700QR_RasPi_STEMMA_bb.jpg?1645044712)

![adafruit_products_VEML7700QR_RasPi_breadboard_bb.jpg](https://cdn-learn.adafruit.com/assets/assets/000/109/049/medium640/adafruit_products_VEML7700QR_RasPi_breadboard_bb.jpg?1645044818)

![adafruit_products_VEML7700_RasPi_original.jpg](https://cdn-learn.adafruit.com/assets/assets/000/109/050/medium640/adafruit_products_VEML7700_RasPi_original.jpg?1645044837)

## CircuitPython Installation of VEML7700 Library

You'll need to install the&nbsp;[Adafruit CircuitPython VEML7700](https://github.com/adafruit/Adafruit_CircuitPython_VEML7700) library on your CircuitPython board.

First make sure you are running the&nbsp;[latest version of Adafruit CircuitPython](https://learn.adafruit.com/welcome-to-circuitpython/installing-circuitpython)&nbsp;for your board.

Next you'll need to install the necessary libraries&nbsp;to use the hardware--carefully follow the steps to find and install these libraries from&nbsp;[Adafruit's CircuitPython library bundle](https://github.com/adafruit/Adafruit_CircuitPython_Bundle/releases).&nbsp; Our CircuitPython starter guide has [a great page on how to install the library bundle](https://learn.adafruit.com/welcome-to-circuitpython/circuitpython-libraries).

For non-express boards like the Trinket M0 or Gemma M0, you'll need to manually install the necessary libraries from the bundle:

- **adafruit\_veml7700.mpy**
- **adafruit\_bus\_device**
- **adafruit\_register**

Before continuing make sure your board's lib folder or root filesystem has the&nbsp; **adafruit\_veml7700.mpy,**  **adafruit\_bus\_device** , and&nbsp; **adafruit\_register** files and folders **&nbsp;** copied over.

Next&nbsp;[connect to the board's serial REPL&nbsp;](https://learn.adafruit.com/welcome-to-circuitpython/the-repl)so you are at the CircuitPython&nbsp; **\>\>\>** &nbsp;prompt.

## Python Installation of VEML7700 Library

You'll need to install the **Adafruit\_Blinka** library that provides the CircuitPython support in Python. This may also require enabling I2C on your platform and verifying you are running Python 3.&nbsp;[Since each platform is a little different, and Linux changes often, please visit the CircuitPython on Linux guide to get your computer ready](https://learn.adafruit.com/circuitpython-on-raspberrypi-linux)!

Once that's done, from your command line run the following command:

- `sudo pip3 install adafruit-circuitpython-veml7700`

If your default Python is version 3 you may need to run 'pip' instead. Just make sure you aren't trying to use CircuitPython on Python 2.x, it isn't supported!

## CircuitPython & Python Usage

To demonstrate the usage of the sensor we'll initialize it and read the ambient light levels from the board's Python REPL.

Run the following code to import the necessary modules and initialize the I2C connection with the sensor:

```
import time
import board
import busio
import adafruit_veml7700

i2c = busio.I2C(board.SCL, board.SDA)
veml7700 = adafruit_veml7700.VEML7700(i2c)
```

Now you're ready to read values from the sensor using these properties:

- **light** - The ambient light data.
- **lux** - The light levels in Lux.

For example to print ambient light levels and lux values:

```
print("Ambient light:", veml7700.light)
print("Lux:", veml7700.lux)
```

![](https://cdn-learn.adafruit.com/assets/assets/000/073/774/medium800/adafruit_products_VEML7700REPLoutput.png?1553797248)

For more details, check out the [library documentation](https://circuitpython.readthedocs.io/projects/veml7700/en/latest/api.html).

That's all there is to using the VEML7700 sensor with CircuitPython!

## Full Example Code
https://github.com/adafruit/Adafruit_CircuitPython_VEML7700/blob/main/examples/veml7700_simpletest.py

# Adafruit VEML7700 Ambient Light Sensor

## Python Docs

# Adafruit VEML7700 Ambient Light Sensor

## WipperSnapper

![](https://cdn-learn.adafruit.com/assets/assets/000/128/408/medium800/adafruit_products_01_DeviceList.png?1709299216)

## What is WipperSnapper

WipperSnapper is a firmware designed to turn any WiFi-capable board into an Internet-of-Things device without programming a single line of code. WipperSnapper connects to [Adafruit IO](https://io.adafruit.com/), a web&nbsp;platform designed ([by Adafruit!](https://www.adafruit.com/about)) to&nbsp;_display_,&nbsp;_respond_, and&nbsp;_interact_&nbsp;with your project's data.

Simply load the WipperSnapper firmware onto your board, add credentials, and plug it into power. Your board will automatically register itself with your Adafruit IO account.

From there, you can add&nbsp;_components_&nbsp;to your board such as buttons, switches, potentiometers, sensors, and more! Components are&nbsp;_dynamically&nbsp;_added to hardware, so you can&nbsp;immediately start interacting, logging, and streaming the data your projects produce without writing code.

If you've never used WipperSnapper, click below to read through the quick start guide before continuing.

[Quickstart: Adafruit IO WipperSnapper](https://learn.adafruit.com/quickstart-adafruit-io-wippersnapper)
## Wiring
First, wire up an VEML7700 to your board exactly as follows. Here is an example of the VEML7700 wired to an&nbsp;[Adafruit ESP32 Feather V2](https://www.adafruit.com/product/5400)&nbsp;using I2C&nbsp;[with a STEMMA QT cable (no soldering required)](https://www.adafruit.com/product/4210)

- **Board 3V** &nbsp;to&nbsp;**sensor VIN (red wire on STEMMA QT)**  
- **Board GND** &nbsp;to&nbsp;**sensor GND (black wire on STEMMA QT)**  
- **Board SCL** &nbsp;to&nbsp;**sensor SCL (yellow wire on STEMMA QT)**  
- **Board SDA** &nbsp;to&nbsp;**sensor SDA (blue wire on STEMMA QT)**

![adafruit_products_featherV2_VEML7700_STEMMAQT_bb.png](https://cdn-learn.adafruit.com/assets/assets/000/128/401/medium640/adafruit_products_featherV2_VEML7700_STEMMAQT_bb.png?1709298935)

![adafruit_products_featherV2_VEML7700_Breadboard_bb.png](https://cdn-learn.adafruit.com/assets/assets/000/128/402/medium640/adafruit_products_featherV2_VEML7700_Breadboard_bb.png?1709298957)

## Usage

Connect your board to Adafruit IO Wippersnapper and **[navigate to the WipperSnapper board list](https://io.adafruit.com/wippersnapper).**

On this page, **select the WipperSnapper board you're using** to be brought to the board's interface page.

![](https://cdn-learn.adafruit.com/assets/assets/000/128/409/medium800/adafruit_products_02_DeviceSelection_croppped.png?1709299319)

If you do not see your board listed here - you need [to connect your board to Adafruit IO](https://learn.adafruit.com/quickstart-adafruit-io-wippersnapper) first.

On the device page, quickly&nbsp; **check that you're running the latest version of the WipperSnapper firmware**.

The device tile on the left indicates the version number of the firmware running on the connected board.

- **If the firmware version is green with a checkmark -** &nbsp;continue with this guide.
- **If the firmware version is red with an exclamation mark "!" -** &nbsp;[update to the latest WipperSnapper firmware](https://learn.adafruit.com/quickstart-adafruit-io-wippersnapper)&nbsp;on your board before continuing.

![adafruit_products_04_LatestVersion.png](https://cdn-learn.adafruit.com/assets/assets/000/128/410/medium640/adafruit_products_04_LatestVersion.png?1709299365)

![adafruit_products_04_UpdateRequired.png](https://cdn-learn.adafruit.com/assets/assets/000/128/411/medium640/adafruit_products_04_UpdateRequired.png?1709299380)

Next, make sure the sensor is plugged into your board and click the **&nbsp;I2C Scan&nbsp;** button.

![](https://cdn-learn.adafruit.com/assets/assets/000/113/177/medium800/sensor_page_crop_scan.png?1657724520)

You should see the VEML7700's default I2C address of&nbsp;`0x10`&nbsp;pop-up in the I2C scan list.

![](https://cdn-learn.adafruit.com/assets/assets/000/128/412/medium800/adafruit_products_Screenshot_2024-03-01_132743.png?1709299701)

###  I don't see the sensor's I2C address listed! 


First, double-check the connection and/or wiring between the sensor and the board.

Then, reset the board and let it re-connect to Adafruit IO WipperSnapper.

With the sensor detected in an I2C scan, you're ready to add the sensor to your board.

**Click the New Component button or the + button** to bring up the component picker.

![](https://cdn-learn.adafruit.com/assets/assets/000/127/931/medium800/sensor_page_temperature___humidity_06_AddComponent.png?1708631009)

Adafruit IO supports a large amount of components. To quickly find your sensor, type&nbsp;`VEML7700`&nbsp;into the search bar, then select the&nbsp; **VEML7700** &nbsp;component.

![](https://cdn-learn.adafruit.com/assets/assets/000/128/413/medium800/adafruit_products_7xuWFdhdFn.png?1709299734)

On the component configuration page, the VEML7700's sensor address should be listed along with the sensor's settings.

The&nbsp; **Send Every** &nbsp;option is specific to each sensor's measurements. This option will tell the Feather how often it should read from the VEML7700 sensor and send the data to Adafruit IO. Measurements can range from every 30 seconds to every 24 hours.

For this example, set the&nbsp; **Send Every&nbsp;** interval to every 30 seconds.

![](https://cdn-learn.adafruit.com/assets/assets/000/128/414/medium800/adafruit_products_Z2esG8rZaI.png?1709299772)

Your device interface should now show the sensor components you created. After the interval you configured elapses, WipperSnapper will automatically read values from the sensor(s) and send them to Adafruit IO.

![](https://cdn-learn.adafruit.com/assets/assets/000/128/415/medium800/adafruit_products_PBdti6A2nz.png?1709299858)

To view the data that has been logged from the sensor, click on the graph next to the sensor name.

![](https://cdn-learn.adafruit.com/assets/assets/000/128/416/medium800/adafruit_products_It3LyEtltf.png?1709299873)

Here you can see the feed history and edit things about the feed such as the name, privacy, webhooks associated with the feed and more. If you want to learn more about how feeds work, [check out this page](https://learn.adafruit.com/all-the-internet-of-things-episode-four-adafruit-io/advanced-feeds).

![](https://cdn-learn.adafruit.com/assets/assets/000/128/444/medium800/adafruit_products_pI6TeeWmbb.png?1709313110)

# Adafruit VEML7700 Ambient Light Sensor

## Adjusting for Different Light Levels

While the VEML7700 is capable of being used over a wide range of ambient lighting conditions, from dark room to direct sunlight, getting good readings will typically require making some adjustments.

There are two main adjustments:

- **gain** - how much the signal is amplified
- **integration time** - how long the signal is built up

This Application Note from Vishay, the manufacturer of the VEML7700, contains good information:

[Designing the VEML7700 Into an Application](https://www.vishay.com/docs/84323/designingveml7700.pdf)
This table summarizes the maximum illumination (in terms of lux) that can be measured for given combinations of gain ( **GAIN** ) and integration time ( **IT** ).

![](https://cdn-learn.adafruit.com/assets/assets/000/112/084/medium800/adafruit_products_it_and_gain.png?1653588780)

If the maximum illumination is known, then the gain and integration times can be manually set accordingly. In general, the raw ALS value (different than lux values in table) should be between 100 and 10000. Read the Application Note for details.

**NOTE:** The library defaults are **GAIN=1/8** and **IT=100ms**.

## Non-Linear Correction

For lower light levels, the VEML7700 behaves linearly, so lux can be computed simply from the raw ALS reading. For higher levels, the behavior becomes increasingly non-linear. For those conditions, the Application Note provides a non-linear correction that can be applied to the computed lux value.

The Application Note seems to indicate that If the raw ALS value is over 100 with a gain of 1/8 and integration time of 100ms, then the correction should be applied.

![](https://cdn-learn.adafruit.com/assets/assets/000/112/085/medium800/adafruit_products_nonlin.png?1653589911)

Although it's a little confusing as to what integration times this applies to.

## Automatic Adjustment

The Application Note linked above provides a flow chart (Fig. 24) that outlines a method to automatically adjust gain and integration time based on the raw sensor readings. Additionally, the non-linear correction is applied as needed.

Currently, only the Arduino library provides an implementation of this. See the example here:

[veml7700_autolux.ino](https://github.com/adafruit/Adafruit_VEML7700/blob/master/examples/veml7700_autolux/veml7700_autolux.ino)
However, one could implement the same thing in their own code. The libraries provide the necessary methods for setting gain and integration time and reading the raw ALS values.

# Adafruit VEML7700 Ambient Light Sensor

## Downloads

## Files

- [VEML7700 Datasheet](https://www.vishay.com/docs/84286/veml7700.pdf)
- [EagleCAD files on GitHub](https://github.com/adafruit/Adafruit-VEML7700-PCB)
- [3D Models of Right-Angled Sensor on GitHub](https://github.com/adafruit/Adafruit_CAD_Parts/tree/main/5378%20VEML7700%20Lux%20Sensor)
- [Fritzing object for STEMMA QT version in Adafruit Fritzing Library](https://github.com/adafruit/Fritzing-Library/blob/master/parts/Adafruit%20VEML7700%20STEMMA%20QT.fzpz)
- [Fritzing object for original version from Adafruit Fritzing Library](https://github.com/adafruit/Fritzing-Library/blob/master/parts/Adafruit%20VEML7700.fzpz)

# Schematic and Fab Print for STEMMA QT Version
![](https://cdn-learn.adafruit.com/assets/assets/000/108/946/medium800/adafruit_products_VEML7700Q_sch.png?1644622534)

![](https://cdn-learn.adafruit.com/assets/assets/000/108/947/medium800/adafruit_products_VEML7700Q_fab_print.png?1644622543)

# Schematic and Fab Print for Original Version
![](https://cdn-learn.adafruit.com/assets/assets/000/073/775/medium800/adafruit_products_Adafruit_VEML7700_Sch.png?1553798308)

![](https://cdn-learn.adafruit.com/assets/assets/000/073/776/medium800/adafruit_products_Adafruit_VEML7700_Fab_Print.png?1553798366)


## Primary Products

### Adafruit VEML7700 Lux Sensor - I2C Light Sensor

[Adafruit VEML7700 Lux Sensor - I2C Light Sensor](https://www.adafruit.com/product/4162)
Vishay has a lot of light sensors out there, and this is a nice simple lux sensor that's easy to add to any microcontroller. Most light sensors just give you a number for brighter/darker ambient lighting. The VEML7700 makes your life easier by calculating the lux, which is an SI unit for...

In Stock
[Buy Now](https://www.adafruit.com/product/4162)
[Related Guides to the Product](https://learn.adafruit.com/products/4162/guides)
### Adafruit Right Angle VEML7700 Lux Sensor - I2C Light Sensor

[Adafruit Right Angle VEML7700 Lux Sensor - I2C Light Sensor](https://www.adafruit.com/product/5378)
Vishay has a lot of light sensors out there, and this is a nice simple lux sensor that's easy to add to any microcontroller. Most light sensors just give you a number for brighter/darker ambient lighting. The VEML7700 makes your life easier by calculating the lux, which is an SI unit for...

In Stock
[Buy Now](https://www.adafruit.com/product/5378)
[Related Guides to the Product](https://learn.adafruit.com/products/5378/guides)

## Related Guides

- [No-Code Indoor Grow Monitor with PPFD and VPD Measurements](https://learn.adafruit.com/no-code-indoor-grow-monitor.md)
- [Adafruit TLV320DAC3100 I2S DAC](https://learn.adafruit.com/adafruit-tlv320dac3100-i2s-dac.md)
- [TIMESQUARE Watch Kit](https://learn.adafruit.com/timesquare-watch-kit.md)
- [Adafruit NeoPot](https://learn.adafruit.com/adafruit-neopot.md)
- [Adafruit ADG729 Dual 1-to-4 Analog Matrix Switch](https://learn.adafruit.com/adafruit-adg729-dual-1-to-4-analog-matrix-switch.md)
- [Adafruit EYESPI Breakout Board](https://learn.adafruit.com/adafruit-eyespi-breakout-board.md)
- [Halloween Scream Box](https://learn.adafruit.com/halloween-scream-box.md)
- [Adafruit DRV2605L Haptic Controller Breakout](https://learn.adafruit.com/adafruit-drv2605-haptic-controller-breakout.md)
- [Ambient Sound Machine](https://learn.adafruit.com/ambient-machine.md)
- [Adafruit Feather RP2040 ThinkInk](https://learn.adafruit.com/adafruit-rp2040-feather-thinkink.md)
- [Introducing ItsyBitsy M0 Express](https://learn.adafruit.com/introducing-itsy-bitsy-m0.md)
- [Adafruit KB2040](https://learn.adafruit.com/adafruit-kb2040.md)
- [Adafruit ADXL343 + ADT7410 Sensor FeatherWing](https://learn.adafruit.com/adxl343-adt7410-sensor-featherwing.md)
- [Adafruit ATECC608 Breakout](https://learn.adafruit.com/adafruit-atecc608-breakout.md)
- [Adafruit FONA](https://learn.adafruit.com/adafruit-fona-mini-gsm-gprs-cellular-phone-module.md)
