• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

BME280 with ESP32

Q&A Forum › Category: ESP32 › BME280 with ESP32
0 Vote Up Vote Down
Ilyas Ewan asked 4 years ago

when i’m trying to folow the BME280 with ESP32 §Tutorial this the error i get when i’m pressing RST button:
ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:5008
ho 0 tail 12 room 4
load:0x40078000,len:10600
ho 0 tail 12 room 4
load:0x40080400,len:5684
entry 0x400806bc

[0;32mI (539) cpu_start: Pro cpu up.[0m
[0;32mI (539) cpu_start: Application information:[0m
[0;32mI (539) cpu_start: Compile time: Sep 2 2020 03:00:08[0m
[0;32mI (543) cpu_start: ELF file SHA256: 0000000000000000…[0m
[0;32mI (549) cpu_start: ESP-IDF: v3.3.2[0m
[0;32mI (553) cpu_start: Starting app cpu, entry point is 0x40082f30[0m
[0;32mI (0) cpu_start: App cpu up.[0m
[0;32mI (564) heap_init: Initializing. RAM available for dynamic allocation:[0m
[0;32mI (571) heap
_init: At 3FFAFF10 len 000000F0 (0 KiB): DRAM[0m
[0;32mI (577) heap_init: At 3FFB6388 len 00001C78 (7 KiB): DRAM[0m
[0;32mI (583) heap_init: At 3FFB9A20 len 00004108 (16 KiB): DRAM[0m
[0;32mI (589) heap_init: At 3FFBDB5C len 00000004 (0 KiB): DRAM[0m
[0;32mI (595) heap_init: At 3FFCA9E8 len 00015618 (85 KiB): DRAM[0m
[0;32mI (601) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM[0m
[0;32mI (608) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM[0m
[0;32mI (614) heap_init: At 4009DE28 len 000021D8 (8 KiB): IRAM[0m
[0;32mI (620) cpu_start: Pro cpu start user code[0m
[0;32mI (303) cpu_start: Starting scheduler on PRO CPU.[0m
[0;32mI (0) cpu_start: Starting scheduler on APP CPU.[0m

Traceback (most recent call last):
File “boot.py”, line 26, in <module>
File “BME280.py”, line 154, in __init__
File “BME280.py”, line 160, in _load_calibration
File “BME280.py”, line 120, in readU16LE
File “BME280.py”, line 103, in readU16
OSError: [Errno 19] ENODEV
MicroPython v1.13 on 2020-09-02; ESP32 module with ESP32
Type “help()” for more information.
>>>
 
 
Any suggestion Please?
Thanks

5 Answers
0 Vote Up Vote Down
Steve Mercer answered 4 years ago

The first part is the standard messages you get when starting (or resetting) an ESP32 and can be safely ignored. The second part (I’m guessing as I don’t use MicroPython) looks like standard startup messages. The last part with the traceback is an actual error. According to Stack Overflow “[Errno 19] ENODEV” means that the module couldn’t find the I2C sensor. Did you connect all 4 lines (VIN, GND, SCL and SDA)?

0 Vote Up Vote Down
Ilyas Ewan answered 4 years ago

 
After checking I think I damaged a tiny component of the sensor during soldering I will try with a new one and see if the error persist.
Thanks for your help Steve

0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi.
Steve is right.
That error is related with I2C. 
It may be the case that the sensor is faulty or it is not properly connected.
Regards,
Sara

0 Vote Up Vote Down
William Lucid answered 4 years ago

When using an I2C device it can be good to have an I2C Scanner; it can tell you if the device can be “seen” and  the device address:  Arduino_I2C-Scanner – i2c scanner for Arduino hardware, ESP8266, ESP32  For example not all use the “default” address of 0x76.  I have also seen 0x77 used for the BME280.
 
I2C address for BME280 GYBMEP 0x76 #15
 
This is a Github issue addressing I2C address and the Adafruit Library.
 
William

0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi William.
You are right. Thanks for pointing that out.
It may also be the case that the I2C address is different than ours.
Thanks for sharing that.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.