VMA341
V. 01 – 05/02/2019
3
©Velleman nv
5.
Overview
The VMA341 (BH1750) is a digital ambient light sensor for I2C bus interface. This module is the most suitable
to obtain ambient light data for adjusting LCD and the keypad backlight power of mobile phones.
supply voltage ............................................................................................................... 5 V
voltage .................................................................................................................. 3.3 VCC
operating temperature ................................................................................. -40 °C - +85 °C
SDA sink current ........................................................................................................ 7 mA
power dissipation.................................................................................................... 260 mW
dimensions ....................................................................................................... 20 x 30 mm
6.
Connections
VMA100
VMA341
GND
G
3.3 or 5V
V
A4
SDA
A5
SCL
7.
Software Example
Load the code into the Arduino
®
IDE, compile and upload. By using the serial monitor, you can see following
results. The code and data sheet is available from our website.
8.
Code
#include <Wire.h>
#include <math.h>
int BH1750address = 0x23; //i2c address
byte buff[2];
void setup()
{
Wire.begin();
Serial.begin(9600);
}
void loop()
{