Comments on: MicroPython: BME280 with ESP32 and ESP8266 (Pressure, Temperature, Humidity) https://randomnerdtutorials.com/micropython-bme280-esp32-esp8266/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Thu, 09 Jan 2025 03:10:18 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: jeff https://randomnerdtutorials.com/micropython-bme280-esp32-esp8266/#comment-998463 Thu, 09 Jan 2025 03:10:18 +0000 https://randomnerdtutorials.com/?p=86432#comment-998463 In reply to Jeff.

OSError: Wifi Internal Error went away when I reset the ESP32

]]>
By: Jeff https://randomnerdtutorials.com/micropython-bme280-esp32-esp8266/#comment-998461 Thu, 09 Jan 2025 02:59:52 +0000 https://randomnerdtutorials.com/?p=86432#comment-998461 In reply to Jeff.

forgot to mention I get a “OSError: Wifi Internal Error”. I looked it up but didn’t really understand it.

]]>
By: Jeff https://randomnerdtutorials.com/micropython-bme280-esp32-esp8266/#comment-998460 Thu, 09 Jan 2025 02:57:28 +0000 https://randomnerdtutorials.com/?p=86432#comment-998460 Hi Sara, great tutorial, first time with Micro Py. I have everything working. BME is reading, I have my IP address (192.168.0.65) and I can ping it. Says “Connection is successful”. I can’t get the web page to come up for some reason. It just times out. Anything else to try? Thanks!

]]>
By: Hanspeter https://randomnerdtutorials.com/micropython-bme280-esp32-esp8266/#comment-904987 Wed, 10 Apr 2024 20:39:33 +0000 https://randomnerdtutorials.com/?p=86432#comment-904987 Hi, thank you for the tutorial.

I would like to extand the script to estimate the altitude.

from
github.com/robert-hh/BME680-Micropython/blob/master/bme680.py

I add to Library BME280.py

import math

self.sea_level_pressure = 1013.25

@property
def altitude(self):
pressure = self.pressure
return 44330 * (1.0 – math.pow(pressure / self.sea_level_pressure, 0.1903))

add to the main.py script

while True:
alt = bme.altitude
print(‘Altitude: ‘, alt)

But now I get the Error:

MPY: soft reboo
Traceback (most recent call last):
File “”, line 28, in
File “BME280.py”, line 294, in altitude
TypeError: unsupported types for truediv: ‘str’, ‘float’

How can I solve this issue?

Thanks a lot!
Regards,
Hanspeter

]]>
By: Sara Santos https://randomnerdtutorials.com/micropython-bme280-esp32-esp8266/#comment-898353 Thu, 14 Mar 2024 10:38:03 +0000 https://randomnerdtutorials.com/?p=86432#comment-898353 In reply to Gerard.

Hi.
I’m glad everything is working fine.
Usually those errors mean that the I2C connection is not properly establish, which is probably caused by bad wiring.
Regards,
Sara

]]>
By: Gerard https://randomnerdtutorials.com/micropython-bme280-esp32-esp8266/#comment-898206 Thu, 14 Mar 2024 00:40:58 +0000 https://randomnerdtutorials.com/?p=86432#comment-898206 Hi Sara,
It is working well now after shifting the GND wire jumper (from the one near “3v3” on the board to the one near “vin” on the board.

Thank you and regards

]]>
By: Gerard https://randomnerdtutorials.com/micropython-bme280-esp32-esp8266/#comment-898201 Wed, 13 Mar 2024 23:58:03 +0000 https://randomnerdtutorials.com/?p=86432#comment-898201 In reply to Sara Santos.

Hi Sara,

Thank you.
The “SCL” jumper wire” did not conduct.
After replacing, I get the same message, but the last line become :
OSError: [Errno 19] ENODEV

Thank you and best regards

]]>
By: Sara Santos https://randomnerdtutorials.com/micropython-bme280-esp32-esp8266/#comment-898142 Wed, 13 Mar 2024 15:52:19 +0000 https://randomnerdtutorials.com/?p=86432#comment-898142 In reply to Gerard.

Hi.
Check your I2C connections.
Regards,
Sara

]]>
By: Gerard https://randomnerdtutorials.com/micropython-bme280-esp32-esp8266/#comment-898100 Wed, 13 Mar 2024 08:26:05 +0000 https://randomnerdtutorials.com/?p=86432#comment-898100 Hi,

Thanks for this tutorial.
Unfortunately, after uploading BME280.py code and main.py code to my ESP8266 board and press the RST button to run the code, I get the following message :

Traceback (most recent call last):
File “”, line 11, in
File “BME280.py”, line 153, in init
File “BME280.py”, line 159 in load calibration
File “BME280.py”, line119, in readU16LE
File “BME280.py”, line 102, in readU16
OSError : [Erno 110] ETIMEDOUT

I just start programming with MicroPython and don’t know how to fix it

Thank you and best regards

Gerard

]]>
By: Carl Haun https://randomnerdtutorials.com/micropython-bme280-esp32-esp8266/#comment-756431 Wed, 08 Jun 2022 19:01:22 +0000 https://randomnerdtutorials.com/?p=86432#comment-756431 In reply to Stefano Rossetto.

Yeup. …Solved my problem. I am learning that you have to check out these driver scripts !

I2C scan showed a 119 (ie: 0X77)… I shoulda known to read the driver code to check if the i2c assignment was the same as the i2c scan value.

Many Thanks !

]]>