-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sonoff Basic with BH1750-Sensor #314
Comments
did you do a full poweroff (wait several seconds), restart sequence after the
config change?
|
did you connect ADDR pin to GND? in my using experience, direct solder will much more stable, without connect mostly failure |
I2C need pull-up resistors on both SDA and SCL - I don't see it on your picture |
Hi there, thanks a lot to all of you for answering so fast!!! You're really great! @davidelang Yes I did a long (over night) break before testing again... @hamwong I've red that the ADDR could be left unconnected ... If I can't do any damage when I bridge the GND and the ADDR I'm more than willing to try this... @ionciubotaru I thought that it is possible to connect it directly. Which pull-up resistors (any Link, or description) do I have to take than? Or is it ok to take a 10k Ohm (like arendst posted) on both SDA- & SCL-connector? @arendst I did not find a clearly description where to find GPIO 03 / 04 / 01 on the board... There are a lot of Pins (5 vertically and 9 horizontally). So what I've found on the net was that I can take a GPIO 03 instead of an GPIO 04 (whereever this pin is to be found) AND that the GPIO 03 is the same as the RX-Pin on the 5er-pin-row. As you call it "Serial In" in your firmware I guess that the GPIO 01 / "Serial Out" ist the TX-pin???? Am I right? Though I don't want to cause any damage to the board I want to be sure before trying. At least my favorite solution would be the one, given be arendst, because it seem to come along wihtout any resistors. Regards |
Details about I2C pull-up resistors http://electronics.stackexchange.com/questions/102611/what-happens-if-i-omit-the-pullup-resistors-on-i2c-lines |
As you found out yourself gpio1 is just fine. The gy 302 module is already equiped with i2c termination. |
I think GY-302 not that easy to get damage, I was reverse plug the VCC and GND for few minutes until I found it's not running and PCB get hot, but it's still run fine when plug back to where it should be. I didn't put resistors, but before I solder the cable, it somehow not very stable, sometimes work, sometimes not, until I solder a cable from ADDR to GND and it works every time I turn on / restart ESP. now I got 3 ESP with GY-302 and all working reliable without resistors |
Yeah! Great .... Connecting the sensor to the GPIO 03 / (TX on the board) instead of using GPIO 14 worked fine, just wihtout a brigde between GND and ADDR on the sensor board! |
works fine on sonoff th16, the only problem is the german language. In german the readings name is "Beleuchtungsintensität", node-red have problems with "ä", the json extract node is marked with error |
See #1473 |
Hi,
I just tried to connect a BH1750 amient light sensor to the Sonoff Basic module, but when reading the status 10 I just get the current time ....
OUTPUT:
STATUS10 = {"StatusSNS":{"Time":"2017-03-31T19:30:21"}}
I've connected the
BH1750 Sonoff
VCC 3V
GND GND
SCL GPIO14
SDA RX (GPIO3)
like shown in the picture and contigured it like shown in the screenshot ...
Would be great if somebody can help me out!
Thanks in Advance
Joe
The text was updated successfully, but these errors were encountered: