diff options
author | Libor Gabaj <libor.gabaj@gmail.com> | 2019-04-16 23:00:53 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2019-04-17 20:04:10 +0200 |
commit | 5afac0494668d72903647122417b7a5506f7677f (patch) | |
tree | 2c486f4a31316c7bf9d1c6ee0a6235891ec0b570 /i2c/rohm_bh1750 | |
parent | 9b05e5def7ad0445d571aa32b2a12921e3cec762 (diff) | |
download | sigrok-dumps-5afac0494668d72903647122417b7a5506f7677f.tar.gz sigrok-dumps-5afac0494668d72903647122417b7a5506f7677f.zip |
ROHM BH1750FVI: Added dumps for digital ambient light sensor.
Diffstat (limited to 'i2c/rohm_bh1750')
-rw-r--r-- | i2c/rohm_bh1750/README | 58 | ||||
-rw-r--r-- | i2c/rohm_bh1750/bh1750_h2resolutionmode.sr | bin | 0 -> 12141 bytes | |||
-rw-r--r-- | i2c/rohm_bh1750/bh1750_hresolutionmode.sr | bin | 0 -> 2973 bytes |
3 files changed, 58 insertions, 0 deletions
diff --git a/i2c/rohm_bh1750/README b/i2c/rohm_bh1750/README new file mode 100644 index 0000000..ab54346 --- /dev/null +++ b/i2c/rohm_bh1750/README @@ -0,0 +1,58 @@ +------------------------------------------------------------------------------- +ROHM BH1750FVI Digital Ambient Light Sensor +------------------------------------------------------------------------------- + +This is a capture of data output from a ROHM BH1750FVI digital ambient +light sensor. + +Details: +https://www.mouser.com/ds/2/348/bh1750fvi-e-186247.pdf + + +Logic analyzer setup +-------------------- + +The logic analyzer used is a Saleae Logic clone (at 500kHz): + + Probe BH1750FVI pin + ---------------------------- + D0 (CH1) SCL + D1 (CH2) SDA + + +bh1750_hresolutionmode.sr +------------------------- + +The sigrok 0.7.1 command line used: + +sigrok-cli --driver fx2lafw --channels D0=SCL,D1=SDA \ + --config samplerate=500khz:captureratio=1 --samples 100000 \ + --triggers SCL=1,SDA=f --output-file <filename> + +The file provides recommended setup of the sensor in One Time H-Resolution Mode +with default value 69 (0x45) of the measurement time bits in measurement time +registers (sensor sensitivity adjusting) with standard resolution 0.83 lux per +count. +The sensor has ADDR pin grounded (ADDR = 'L'), which results to the slave +address 35 (0x23). +The long time period between communication bursts represents sensor's +conversion period for configured resolution. + + +bh1750_h2resolutionmode.sr +-------------------------- + +The sigrok 0.7.1 command line used: + +sigrok-cli --driver fx2lafw --channels D0=SCL,D1=SDA \ + --config samplerate=500khz:captureratio=1 --samples 500000 \ + --triggers SCL=1,SDA=f --output-file <filename> + +The file provides setup of the sensor in One Time H-Resolution Mode2 with +value 254 (0xFE) of the measurement time bits in measurement time +registers (sensor sensitivity adjusting) with the lowest resolution 0.11 lux +per count (the highest sensitivity). +The sensor has ADDR pin grounded (ADDR = 'L'), which results to the slave +address 35 (0x23). +The long time period between communication bursts represents sensor's +conversion period for configured resolution. diff --git a/i2c/rohm_bh1750/bh1750_h2resolutionmode.sr b/i2c/rohm_bh1750/bh1750_h2resolutionmode.sr Binary files differnew file mode 100644 index 0000000..44df97a --- /dev/null +++ b/i2c/rohm_bh1750/bh1750_h2resolutionmode.sr diff --git a/i2c/rohm_bh1750/bh1750_hresolutionmode.sr b/i2c/rohm_bh1750/bh1750_hresolutionmode.sr Binary files differnew file mode 100644 index 0000000..10c715d --- /dev/null +++ b/i2c/rohm_bh1750/bh1750_hresolutionmode.sr |