Wemos d1 mini and bmp180


#1

Hi,
I’m using Wemos D1 Mini V2.2.0 WIFI ESP8266 with BMP180
Sample bmp180 app keep throwing those:
‘’’
[HardwareInitializationError @[001C:001B:0025:002C:0000:0020:0000:0000]](javascript:window.except(’@[001C:001B:0025:002C:0000:0020:0000:0000]’,'HardwareInitializationError '))

start…
‘’’
How exactly can I debug this error?


#2

Could you post the used code here?


#3

It’s from examples:

################################################################################

Get Temperature, Pressure, and Altitude Example

Created: 2017-02-28 16:44:15.135468

################################################################################

from bosch.bmp180 import bmp180
import streams

streams.serial()

Setup sensor

This setup is referred to bmp180 mounted on 10DOF Click in slot A of a Flip n Click device

bmp = bmp180.BMP180(I2C0)
print(“start…”)
bmp.start()
print(“init…”)
bmp.init()
print(“Ready!”)
print("--------------------------------------------------------")

while True:
rt = bmp.get_raw_temp() # Read raw temperature
print("Raw Temperature: ", rt)
rp = bmp.get_raw_pres() # Read raw pressure
print("Raw Pressure: ", rp)
temp = bmp.get_temp() # Read temperature
print("Temperature: ", temp, “C”)
pres = bmp.get_pres() # Read pressure
print("Pressure: ", pres, “Pa”)
temp, pres = bmp.get_temp_pres() # Read both (temperature and pressure)
print("Temp: ", temp, “C and Pres:”, pres, “Pa”)
altitude = bmp.get_altitude() # Read altitude
print("Altitude: ", altitude, “m”)
slp = bmp.get_sea_level_pres(altitude_m=altitude) # Read pressure at level sea
print(“Pressure at level sea: “, slp, “Pa”)
print(”--------------------------------------------------------”)
sleep(5000)

I checked same hardware with arduino code and it worked perfectly. Also I checked this bmp180 shield on esp32 dev kit and worked as expected too.

It doesn’t work on this:
https://kamami.pl/esp8266/573897-plytka-d1-mini-v220-wifi-esp8266.html?search_query=wemos&results=7