-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add BME280 SPI/I2C sensor support #2
Comments
I implemented BME280 support here, https://github.com/Ebiroll/RAK811_BreakBoard/tree/master/lib/obme280 |
@Ebiroll Thanks a lot, I will take a closer look at it when at home. I saw in your commits that you tested a sleep mode... Is there a way to make it to sleep a given time, and then make another measurement, and send values? Currently performance is pretty bad on the battery side, so I'm really looking at such a mode to make the board usable for me.
…----- Mail original -----
De: "Ebiroll" <[email protected]>
À: "RAKWireless/RAK811_BreakBoard" <[email protected]>
Cc: "Nicolas Derive" <[email protected]>, "Author" <[email protected]>
Envoyé: Mardi 13 Février 2018 01:35:52
Objet: Re: [RAKWireless/RAK811_BreakBoard] add BME280 SPI/I2C sensor support (#2)
I implemented BME280 support here, https://github.com/Ebiroll/RAK811_BreakBoard/tree/master/lib/obme280
Use like this
i2c_bme280_begin();
temp=i2c_bme280_read_temp();
pressure=i2c_bme280_read_pressure();
rh=i2c_bme280_read_rh();
int itemp=temp;
int irh=rh;
printf("RH %2f Temp %2f , pressure %2f\r\n",rh,temp,pressure);
printf("RH %d Temp %d \r\n",irh,itemp);
It also uses forced mode that will save some power,
Use i2c_bme280_force_readings( void ); to force new readings and put BME280 to sleep again.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub , or mute the thread .
|
Yes, sleepmode is still work in progress and the bme280 code needs more testing. We will see what we can do with sleepmode. Feedback is welcome. Here is another interesting board http://badgerboard.io but I am hoping that RAK will make a board that is optimized for battery operations. |
Please add BME280 temperature/humidity/pressure sensor support, using both SPI or I2C (or I2C only).
That would be very nice to support this very common sensor and add an example to use it as a demo of I2C sensor interfacing.
The text was updated successfully, but these errors were encountered: