All Projects → yanbe → bme280-esp-idf-i2c

yanbe / bme280-esp-idf-i2c

Licence: Apache-2.0 license
Sample code for reading values from a BME280 temperature-humidity-pressure sensor, via ESP-IDF's I2C master driver, supports both normal mode and forced mode described in the datasheet. https://ae-bst.resource.bosch.com/media/_tech/media/datasheets/BST-BME280_DS001-11.pdf

Programming Languages

c
50402 projects - #5 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to bme280-esp-idf-i2c

ssd1306-esp-idf-i2c
Sample code for driving 128x64 OLED display (SSD1306 driver) via ESP-IDF's I2C master driver
Stars: ✭ 93 (+144.74%)
Mutual labels:  i2c, esp-idf
arduino-bme280
💧 Arduino library for Bosch Sensortec BME280 – combined temperature, pressure, humidity sensor. The library allows using the sensor over I2C or SPI on any board that supports Arduino.
Stars: ✭ 25 (-34.21%)
Mutual labels:  i2c, bme280
Periph
Go·Hardware·Lean
Stars: ✭ 1,700 (+4373.68%)
Mutual labels:  i2c, bme280
gfx demo
GFX Demo for Arduino and the ESP-IDF
Stars: ✭ 63 (+65.79%)
Mutual labels:  i2c, esp-idf
Ofxgpio
Library C++ for raspberrypi and orangepi, GPIO interfaces compatible with openframeworks.
Stars: ✭ 155 (+307.89%)
Mutual labels:  i2c
Powershell Iot
Interact with I2C, SPI & GPIO devices using PowerShell Core!
Stars: ✭ 106 (+178.95%)
Mutual labels:  i2c
Msp430 usi i2c
I2C for the MSP430 using the USI module. ➡️
Stars: ✭ 83 (+118.42%)
Mutual labels:  i2c
Mraa
Linux Library for low speed IO Communication in C with bindings for C++, Python, Node.js & Java. Supports generic io platforms, as well as Intel Edison, Intel Joule, Raspberry Pi and many more.
Stars: ✭ 1,220 (+3110.53%)
Mutual labels:  i2c
Sniffrom
A tool for passive data capture and reconnaissance of serial flash chips. It is used in conjunction with a Saleae logic analyzer to reconstruct flash memory contents and extract contextual information about device operations.
Stars: ✭ 234 (+515.79%)
Mutual labels:  i2c
Johnny Five
JavaScript Robotics and IoT programming framework, developed at Bocoup.
Stars: ✭ 12,498 (+32789.47%)
Mutual labels:  i2c
Liquidmenu
Menu creation Arduino library for LCDs, wraps LiquidCrystal.
Stars: ✭ 141 (+271.05%)
Mutual labels:  i2c
Rpi Examples
Raspberry Pi examples
Stars: ✭ 107 (+181.58%)
Mutual labels:  i2c
Piscope
Turn your Raspberry Pi into an Oscilloscope/XY Plotter with Python
Stars: ✭ 155 (+307.89%)
Mutual labels:  i2c
Esp8266 Oled Ssd1306
Driver for the SSD1306 and SH1106 based 128x64, 128x32, 64x48 pixel OLED display running on ESP8266/ESP32
Stars: ✭ 1,590 (+4084.21%)
Mutual labels:  i2c
I2c Moisture Sensor
I2C based soil moisture sensor
Stars: ✭ 194 (+410.53%)
Mutual labels:  i2c
Gopi
Raspberry Pi Go Language Interface
Stars: ✭ 82 (+115.79%)
Mutual labels:  i2c
Diozero
Java Device I/O library that is portable across Single Board Computers. Tested with Raspberry Pi, Odroid C2, BeagleBone Black, Next Thing CHIP, Asus Tinker Board and Arduinos. Supports GPIO, I2C, SPI as well as Serial communication. Also known to work with Udoo Quad.
Stars: ✭ 167 (+339.47%)
Mutual labels:  i2c
Arduino
C# .NET - Arduino library supporting simultaneous serial ASCII, Firmata and I2C communication
Stars: ✭ 130 (+242.11%)
Mutual labels:  i2c
Rust I2cdev
Rust library for interfacing with i2c devices under Linux
Stars: ✭ 119 (+213.16%)
Mutual labels:  i2c
Ha4iot
Open Source Home Automation system for .NET
Stars: ✭ 146 (+284.21%)
Mutual labels:  i2c

Sample code for reading values from a BME280 via ESP-IDF's I2C master driver

See main code main.c.

About

This sample code implement procedures to read values from BME280 sensor (pressure, temperature, humidity) via ESP-IDF's I2C master driver. It supports both normal mode and forced mode described in Bosch's BME280 datasheet, Section 3.3 Sensor modes, Page 12.

For local setup

For your local setup, connect SDI pin to GPIO 15 pin and the SCK to GPIO 2 pin as they are default ports (I2C_SDA, I2C_SCL) for I2C master according to ESP32 datasheet, C.4. IO_MUX, Page 49.

Don't forget to connect SDO to Vio too. It maps device address to 0x77 (not 0x76). This is default setup for BME280 I2C as described in Bosch's BME280 datasheet, Section 6.2 I2C Interface, Page 31.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].