mongoose-os-apps / example-arduino-adafruit-bme280-js

Other
2 stars 3 forks source link

ESP8266 NodeMCU V3 Lolin - mjs - BME280 sensor NOT found #2

Open bigoper opened 4 years ago

bigoper commented 4 years ago

Hi Mongoose-os-apps team, I could really use your help here.

ISSUE

Unable to connect to the sensor

SYSTEM

[May 13 17:49:45.237] esp_main.c:172          app1 1.0 (20200514-003229)
[May 13 17:49:45.242] esp_main.c:174          Mongoose OS 2.17.0 (20200514-003228/2.17.0-gc31a745)
[May 13 17:49:45.248] esp_main.c:178          CPU: ESP8266EX, 160 MHz, RAM: 51448 total, 48884 free
[May 13 17:49:45.256] esp_main.c:180          SDK 2.2.1(1247cc5); flash: 4M
TRUNCATED...
[May 13 17:49:45.479] mgos_sys_config.c:232   Loading conf9.json
TRUNCATED...
[May 13 17:49:45.515] mgos_deps_init.c:234    init i2c...
[May 13 17:49:45.518] mgos_i2c_gpio_maste:250 I2C GPIO init ok (SDA: 0, SCL: 4, freq: 100000)

ERROR

[May 13 17:49:48.030] mgos_i2c_gpio_maste:196 write 1 to 119, stop? 1
[May 13 17:49:48.036] mgos_i2c_gpio_master:72  addr 0x77, mode W => ab 0xee
[May 13 17:49:48.039] mgos_i2c_gpio_maste:128  sent 0xee, recd NAK
[May 13 17:49:48.044] mgos_i2c_gpio_master:99  stop
[May 13 17:49:48.047] mgos_i2c_gpio_maste:169 read 1 from 119, start? 1, stop? 1
[May 13 17:49:48.050] mgos_i2c_gpio_master:72  addr 0x77, mode R => ab 0xef
[May 13 17:49:48.056] mgos_i2c_gpio_maste:128  sent 0xef, recd ACK
[May 13 17:49:48.061] mgos_i2c_gpio_maste:156  recd 0x00, sent NAK
[May 13 17:49:48.064] mgos_i2c_gpio_master:99  stop
[May 13 17:49:48.074] BME280 sensor NOT found! ------------------------------------- 
[May 13 17:49:48.081] Cant find a sensor 
[May 13 17:49:48.087] --------------------- ------------------------------------- 

WIRING

VCC -> PIN 3v GND -> GND SDA -> GPIO4 SCL -> GPIO0

TROUBLESHOOTING

QUESTION

bigoper commented 4 years ago

ADDITIONAL TROUBLESHOOTING

$ mos call i2c.Scan
[
  119
]
Command completed.

119 -> 0x77