]>
Commit | Line | Data |
---|---|---|
5afac049 LG |
1 | ------------------------------------------------------------------------------- |
2 | ROHM BH1750FVI Digital Ambient Light Sensor | |
3 | ------------------------------------------------------------------------------- | |
4 | ||
5 | This is a capture of data output from a ROHM BH1750FVI digital ambient | |
6 | light sensor. | |
7 | ||
8 | Details: | |
9 | https://www.mouser.com/ds/2/348/bh1750fvi-e-186247.pdf | |
10 | ||
11 | ||
12 | Logic analyzer setup | |
13 | -------------------- | |
14 | ||
15 | The 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 | ||
23 | bh1750_hresolutionmode.sr | |
24 | ------------------------- | |
25 | ||
26 | The sigrok 0.7.1 command line used: | |
27 | ||
28 | sigrok-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 | ||
32 | The file provides recommended setup of the sensor in One Time H-Resolution Mode | |
33 | with default value 69 (0x45) of the measurement time bits in measurement time | |
34 | registers (sensor sensitivity adjusting) with standard resolution 0.83 lux per | |
35 | count. | |
36 | The sensor has ADDR pin grounded (ADDR = 'L'), which results to the slave | |
37 | address 35 (0x23). | |
38 | The long time period between communication bursts represents sensor's | |
39 | conversion period for configured resolution. | |
40 | ||
41 | ||
42 | bh1750_h2resolutionmode.sr | |
43 | -------------------------- | |
44 | ||
45 | The sigrok 0.7.1 command line used: | |
46 | ||
47 | sigrok-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 | ||
51 | The file provides setup of the sensor in One Time H-Resolution Mode2 with | |
52 | value 254 (0xFE) of the measurement time bits in measurement time | |
53 | registers (sensor sensitivity adjusting) with the lowest resolution 0.11 lux | |
54 | per count (the highest sensitivity). | |
55 | The sensor has ADDR pin grounded (ADDR = 'L'), which results to the slave | |
56 | address 35 (0x23). | |
57 | The long time period between communication bursts represents sensor's | |
58 | conversion period for configured resolution. |