Your wiring using I2C bus should be like this example:
1 Master (Esp8266) and several Slaves (BMP180 and BH1750) together with Pull-up resistors in your case.
Your wiring using I2C bus should be like this example:
1 Master (Esp8266) and several Slaves (BMP180 and BH1750) together with Pull-up resistors in your case.
Thanks. That was my mistakes:-)
yes, i make many mistakes and i call these āpracticeā
this interesting to hear with ESP8266 - i hardly ever have errors with code or library, it is usually hardwareā¦
see if it fixes your issue.
the whole point of using I2C sensors is that they can wall exist on the same pins, which is why i said:
when you asked:
Iāve found, that ESP doesnāt like to āwaitā outside loop(). I had to move functions requiring delays to loop(). The same with some network activities. I use TICKER lib for timing, and ESP quite often triggered reset. Hasnāt tried Simpletimer though.
Library⦠quite often small mods inside, where itās within my limited skills ofcourse.
So yes. That was mistake.I now use rezistors for pins D6 and D7. And BMP and BH are working togetherā¦
Thank you.
Well that would be 90% of your problems right thereā¦
Superb!
You can do more than you realise with I2c protocol
Are they so much different? Will need to check, but leave TICKER for counting runtime anyway. It seems to be very precise in terms of timing, but then again - Iām still learning
sorry, I have no idea, Blynk recommends to use simpleTimer, so thatās all i have ever usedā¦