]> sigrok.org Git - sigrok-dumps.git/blame - i2c/rohm_bh1750/README
ROHM BH1750FVI: Added dumps for digital ambient light sensor.
[sigrok-dumps.git] / i2c / rohm_bh1750 / README
CommitLineData
5afac049
LG
1-------------------------------------------------------------------------------
2ROHM BH1750FVI Digital Ambient Light Sensor
3-------------------------------------------------------------------------------
4
5This is a capture of data output from a ROHM BH1750FVI digital ambient
6light sensor.
7
8Details:
9https://www.mouser.com/ds/2/348/bh1750fvi-e-186247.pdf
10
11
12Logic analyzer setup
13--------------------
14
15The logic analyzer used is a Saleae Logic clone (at 500kHz):
16
17 Probe BH1750FVI pin
18 ----------------------------
19 D0 (CH1) SCL
20 D1 (CH2) SDA
21
22
23bh1750_hresolutionmode.sr
24-------------------------
25
26The sigrok 0.7.1 command line used:
27
28sigrok-cli --driver fx2lafw --channels D0=SCL,D1=SDA \
29 --config samplerate=500khz:captureratio=1 --samples 100000 \
30 --triggers SCL=1,SDA=f --output-file <filename>
31
32The file provides recommended setup of the sensor in One Time H-Resolution Mode
33with default value 69 (0x45) of the measurement time bits in measurement time
34registers (sensor sensitivity adjusting) with standard resolution 0.83 lux per
35count.
36The sensor has ADDR pin grounded (ADDR = 'L'), which results to the slave
37address 35 (0x23).
38The long time period between communication bursts represents sensor's
39conversion period for configured resolution.
40
41
42bh1750_h2resolutionmode.sr
43--------------------------
44
45The sigrok 0.7.1 command line used:
46
47sigrok-cli --driver fx2lafw --channels D0=SCL,D1=SDA \
48 --config samplerate=500khz:captureratio=1 --samples 500000 \
49 --triggers SCL=1,SDA=f --output-file <filename>
50
51The file provides setup of the sensor in One Time H-Resolution Mode2 with
52value 254 (0xFE) of the measurement time bits in measurement time
53registers (sensor sensitivity adjusting) with the lowest resolution 0.11 lux
54per count (the highest sensitivity).
55The sensor has ADDR pin grounded (ADDR = 'L'), which results to the slave
56address 35 (0x23).
57The long time period between communication bursts represents sensor's
58conversion period for configured resolution.