You are here

Need a component for Bosh BME280 humidity sensor | Cypress Semiconductor

Need a component for Bosh BME280 humidity sensor

Summary: 5 Replies, Latest post by patrickh1978 on 29 Apr 2017 05:57 AM PDT
Verified Answers: 2
Last post
Log in to post new comments.
Joseph Ellsworth's picture
User
1 post

Need a component for Bosh BME280 humidity sensor.   Has anybody already written it?    There is a Bosh driver in C that requires a few methods to implement the I2C interface.  The Bosh code does some pretty complex math to apply calibration values so I think the component should use it.    

Also has anybody tried using a low side switch to activate and deactivate the BME280 when in circuit so you can have more than one BME280 on the same I2C bus?  The user guide says you can not use a high side switch due to the way they implemented the blocking diodes but it does not say you couldn't use a low side switch.   I may just switch over to SPI but then will have to buy new breakout boards for the BME280.

user_1377889's picture
User
10440 posts

Welcome in the forum, Joseph!

For the I2C access to the BME280 there is an address bit on pin 5 which allows you to select between two devices on the same bus. Could be easier than your low-side switch.

 

Bob

ionascu.marianemanuel_1654946's picture
User
40 posts

Hello Joseph,

I am currently trying to make the c library work with Psoc 4 i2c component. We already ported the library and use it with a stm32 microprocessor from ST. There we had more flexibility in implementing the i2c read and write functions to assign them to the bme280 structure inside the library, but the Psoc 4 functions does not use the concept of register alongside with the address.  If I will succeed  with this I will let you know, firstly I need to make the i2c functions work properly. 

ionascu.marianemanuel_1654946's picture
User
40 posts
Hello Joseph,
 
We manage to work with the sensor. I will attach our solution. I do not know why I cannot paste the text in the attachment .txt file here.
Best regards!
A.janulis_1412546's picture
User
2 posts

Dear Marian-Emanuel Ionascu.

Thank for your code for BME280 - I am going to try it tonight. Maybe you have moved a bit forward and already have full implementation of BME280 taking in account all calibration values? I am building Actuator for ventilation windows and gone use BME280 in conjunction with IAQ core P to acquire all necessary measurements. Initially build everything around ESP8266 but due to IAQ sensor requirement for I2C clock stretching (not supported by ESP8266) decided to assign measurement tasks to CY8CKIT. By the way BME280 module works without any issues on ESP8266 (nodemcu lua).

Please update your achievements with BME280.

 

Regards,

Aidas

patrickh1978's picture
User
20 posts

Hi

would you mind sharing your psoc creator project file for this?

thank you in advance

Log in to post new comments.