martp9 / MicroPython-BMP280

Do not work.... WHY?? RUN on ESP32 Dev 1 Board
1 stars 0 forks source link

No data in the BMP280 register #1

Open martp9 opened 5 years ago

martp9 commented 5 years ago

debugg

I try to debug with the I2C module there should be a value which move, but nothing happens. other register like status are empty.

BMP280 datasheat --> https://cdn-learn.adafruit.com/downloads/pdf/adafruit-bmp280-barometric-pressure-plus-temperature-sensor-breakout.pdf https://cdn-shop.adafruit.com/datasheets/BST-BMP280-DS001-11.pdf

I tested three sensors, but no one of this works

martp9 commented 5 years ago

current code

The current code (see git reppo) throws this exeption

fritol commented 5 years ago

indeed

fritol commented 5 years ago

this one works https://github.com/Dafvid/micropython-bmp280

the lib test

from machine import I2C
from bmp280 import BMP280

bus = machine.I2C(sda=machine.Pin(21),scl=machine.Pin(22))
bmp = BMP280(bus)

print(bmp.temperature)
print(bmp.pressure)