From 5afac0494668d72903647122417b7a5506f7677f Mon Sep 17 00:00:00 2001 From: Libor Gabaj Date: Tue, 16 Apr 2019 23:00:53 +0200 Subject: [PATCH] ROHM BH1750FVI: Added dumps for digital ambient light sensor. --- i2c/rohm_bh1750/README | 58 +++++++++++++++++++++ i2c/rohm_bh1750/bh1750_h2resolutionmode.sr | Bin 0 -> 12141 bytes i2c/rohm_bh1750/bh1750_hresolutionmode.sr | Bin 0 -> 2973 bytes 3 files changed, 58 insertions(+) create mode 100644 i2c/rohm_bh1750/README create mode 100644 i2c/rohm_bh1750/bh1750_h2resolutionmode.sr create mode 100644 i2c/rohm_bh1750/bh1750_hresolutionmode.sr 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 + +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 + +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 new file mode 100644 index 0000000000000000000000000000000000000000..44df97ae13c3d67740262c9b4a078d9cf52f97cf GIT binary patch literal 12141 zcmbu_eN0t#7{Kwvo4j2C@gk%pAdM`+?mh3PO;bsTECU%^LoG2tArvK&{vZ*{85@Nz ztq^HaD5&`dW;W*w;!7iuf~KOfs9}`VKx&m13jL0BInTMu-F^1JE?l_x%RSGz9~k@n zZps2L?*LAJi}KvGaQumjlRemV{o>0m>#_@9%`I5Xr?7ijIZw{-?!EelTAJQqw{Bq< zKXzG_U6h%XS(F*yY7aVPv&`xEuD->mA++w9xTzr)Oa4RqgI3$NUJOY}zFJ%F>(Le2 z9hq>Us>eHhUdP$|CHq#+>-ww4D74YfMn5@M&_!_L`37Ddt0**zm*PM0RK;?D+iI z=lp^dxi81t=%4g&$>nyzJzGoylt_`IYQ0yi~9_$vR`-^!IXq zO6+c%bu2I@G|(&T5`ZWOI#Y-#)c#Xm3HVFT0iF2J+04jnztoRwlFxp;Za3hHUj;tWkM3N^GaZ zI$g|DY&vX#5@T_h9vQ346k~arVyrJyj0I+jDZ+S)FrFferwHRI!gz`>o+6B=2;(Wj zc#1HdB21tN6DYz2iZFp9OrQu8D8dAaFo7aWpa>Hv!bFNNks?f_2oov7M2awxB21(R z6Dh((iZGEPOri*rD8eL)Fo_~eq6m{H!X%0?i6Ts*2$LwnWQs7EB21Ydl_E@|2-7ISG>S0I9bs3$=n0#xFQl^7RJgpOiG3Z70bG>d{Ep$_ zpG)2keY?H=LdZ?aH*qaMM42bS>FAbKbNtGB37g;mFuF zjy~APG2U;-!pLTUOmNPew*!o<3uL1ES-7WhkdpgZ8pve#vr3RD?q{taQ{B&ey^Ps3 zSJ{ZSk#l*tECFP8oBQ1c*xB9hj>GOADDW9KALqZYb1B8#DeQO9;nMDsin%L-ol7g` zt`T-Fv6#Dl*tyhV?q>La`CM`_cPn9s@Uk0pJi<#4>=0fe#~JhS2ro-uhwxGbJA{`@ zutRv6$hN;7K6!+f6xboWyaPLgmvgW~c=2VM)QjbM1+?;utRvc20Mh8DE5z?V?Gh# zWhv|sUUt9^;iVIH2rpI(m=ED46?OV2AKh4?BdHA7O{^5*-5O zLwI=+b_g%kutRvc3_FCEunAy3gqKCILwKnKor3Uk9(D*X{-MTv3c^bw>=0hwgdM`m zN!TI0+<_g!%M=0fK!4Bc&chIQ_FEiN^o?|{0;pG+BA-pue4&kL2 zb_g%i*lR*Z=RFOw#L`4C>xK&K(RY=IrZOB?JEUIN06`Luhy zI4?vSD|Jb*LwGp=JA{{CVTbVYNCcP<;Ux=p2rsp;yT^<33bJuNyFq8SF)%)C;eq3F O*n0wdYON3GU;PKiBz=Vd literal 0 HcmV?d00001 diff --git a/i2c/rohm_bh1750/bh1750_hresolutionmode.sr b/i2c/rohm_bh1750/bh1750_hresolutionmode.sr new file mode 100644 index 0000000000000000000000000000000000000000..10c715d862bc828ea412e43ad0523a5a211c5138 GIT binary patch literal 2973 zcmWIWW@h1H0D;>Kt$w`wu1YZi*&xgg#AT^P#hLkeMgc%oA`DCn9AH)N{+-xg3zVGz z#2i4Jn_7~Xl30?cd)koikO7aw#k-cZb$vloM@OOP+xFiOQ6Zl7iUEM z171#57SHP0yESd++j_@NJMO3-LG6d1{yVMAcini6XVlcW7Y|CKI?=!=_yIT2X)l-= z7&w7+PJVi3vaX@7;qU+TB0Wuk26q@4P<8kU@Os4nRi?6`>M(j6;K+ACf#di8`QZ^c zX9T1-r^KCc;uqCm72P4lFk`3nVufoi3IDlGCx4w{cK*Qgy^o(f^%7z)d3@>AEDoEu z7Z=%I3f!>A>&ug{#Ht@(B%R)T=RGo|SwB)kq^=Ro(MNvj%7_A;z#xL^1mm{{8F_)i zhZg)>na|G-lx1M}kcH}eTzX9?&}&M8UNZ{xnp2?Hf&#skBcxQxMt!wnNx7+rLrn0RfwkhGZ)uk9O>HdErY88IOoX-2%ZJS1)A#A{oHq|JhOZO@RjS>n?MNpFxS z*w&~7EP!AUU}!+RzIbGPhQ#ZegRBp4LP2%sO=Nu-DFwagMIM!@vK3Mx<;B!JKeXksXs2LSi#r(FO5 literal 0 HcmV?d00001 -- 2.30.2