BME688 ESP32 ESP8266 Rasberry PI AVR

Post here to discuss any new features, components, chips, etc, that you would like to see in Flowcode.
SpeedPIC32
Posts: 251
http://meble-kuchenne.info.pl
Joined: Thu Dec 10, 2020 2:35 pm
Has thanked: 36 times
Been thanked: 17 times

BME688 ESP32 ESP8266 Rasberry PI AVR

Post by SpeedPIC32 »

Hello Team

I have found something very interesting and would like to ask you to implement it in FC9.
With kind regards
SpeedPic32


BME688

Environmental sensing with Artificial Intelligence

The BME688 is the first gas sensor with Artificial Intelligence (AI) and integrated high-linearity and high-accuracy pressure, humidity and temperature sensors. It is housed in a robust yet compact 3.0 x 3.0 x 0.9 mm³ package and especially developed for mobile & connected applications where size and low power consumption are critical requirements. The gas sensor can detect Volatile Organic Compounds (VOCs), volatile sulfur compounds (VSCs) and other gases such as carbon monoxide and hydrogen in the part per billion (ppb) range.

Additionally to all features of the BME680, the BME688 has a gas scanner function. In standard configuration, the presence of VSCs is being detected as indicator for e.g. bacteria growth. And the gas scanner can be customized with respect to sensitivity, selectivity, data rate and power consumption as well. The BME AI-Studio tool enables customers to train the BME688 gas scanner on their specific application, like in home appliances, IoT products or Smart Home.


https://github.com/BoschSensortec/Bosch-BSEC2-Library
https://shop.watterott.com/BME688-Break ... uetesensor 17€

stefan.erni
Valued Contributor
Posts: 738
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 170 times

Re: BME688 ESP32 ESP8266 Rasberry PI AVR

Post by stefan.erni »

Hi SpeedPIC32

Interesting component, I've looked at that too. This sensor should measure the air quality in rooms with many people

Major direct outputs: Index for Air Quality (IAQ), bVOC-& CO₂-equivalents (ppm), Gas scan result (%) & many more (all listed in datasheet in Table 20: BSEC outputs)


https://www.bosch-sensortec.com/media/b ... -ds000.pdf

regards

Stefan

SpeedPIC32
Posts: 251
Joined: Thu Dec 10, 2020 2:35 pm
Has thanked: 36 times
Been thanked: 17 times

Re: BME688 ESP32 ESP8266 Rasberry PI AVR

Post by SpeedPIC32 »

Hello Stefan Hello Ben

Can the sensor be integrated?
Environmental measurement technology is generally interesting.
The sensor is also quite cheap to get.

I would be happy if that would work.

SpeedPic32

BenR
Matrix Staff
Posts: 1707
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 435 times
Been thanked: 598 times

Re: BME688 ESP32 ESP8266 Rasberry PI AVR

Post by BenR »

Hello,

I've ordered a module so I can have a play with it. Hopefully should arrive soon.

SpeedPIC32
Posts: 251
Joined: Thu Dec 10, 2020 2:35 pm
Has thanked: 36 times
Been thanked: 17 times

Re: BME688 ESP32 ESP8266 Rasberry PI AVR

Post by SpeedPIC32 »

Hello Ben,

I think that's good. I'm curious about the sensor and the possibilities.

Greetings SpeedPic32

BenR
Matrix Staff
Posts: 1707
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 435 times
Been thanked: 598 times

Re: BME688 ESP32 ESP8266 Rasberry PI AVR

Post by BenR »

Hello,

I've started work on a component to go with this module and here is the code I have so far based on the code from the datasheet. I thought it best to share the source and then you can adjust it to your requirements and hopefully together we can build in the functionality and iron out any bugs.

I'm using one of my interface boards to allow me to communicate to the module directly from within the FC simulation saves compiling and programming for every change and addition.

https://www.instructables.com/Universal ... ace-Board/

You could use another API SLAVE target to do the same by replacing the component for another API component e.g. the Arduino Uno. Don't forget the I2C pull up resistors.

https://www.flowcode.co.uk/wiki/index.p ... ve_Devices

You could of course simply compile the code for a MCU as usual instead. It might be interesting to see how the various floating point calculations handle on the various embedded platforms.

I've currently only done temperature, pressure and humidity sensing macros but they seem to be giving sensible values.

Have a look and see what you think.
BME688 AirQualitySensor.fcfx
(57.83 KiB) Downloaded 116 times

BenR
Matrix Staff
Posts: 1707
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 435 times
Been thanked: 598 times

Re: BME688 ESP32 ESP8266 Rasberry PI AVR

Post by BenR »

Hello,

Right I've gotten the component a bit further now so it can now set the temperature of the hot plate and do a gas resistence reading. I've exported the component and pushed it to the update system.

Let mw know how you get on if you have a go.

stefan.erni
Valued Contributor
Posts: 738
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 170 times

Re: BME688 ESP32 ESP8266 Rasberry PI AVR

Post by stefan.erni »

Hi Ben

I have your interface boards since a long time ready.
Unfortunately, the sensor has a long delay and will arrive next week.
I'm still trying with the interface boards, but I'll also test the component on a PIC32 and an ESP32

regards

Stefan

BenR
Matrix Staff
Posts: 1707
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 435 times
Been thanked: 598 times

Re: BME688 ESP32 ESP8266 Rasberry PI AVR

Post by BenR »

Great thanks Stefan,

What's still not clear to me is how to set the temperature of the hot plate and use that to test for a specific gas and from that work out the air pollution level. This isn't in the datasheet so might need some playing with to get some good results.

I wonder if we can integrate with their tool too as it seems they draw additional conclusions from the various data such as liklihood of mould growth etc.

stefan.erni
Valued Contributor
Posts: 738
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 170 times

Re: BME688 ESP32 ESP8266 Rasberry PI AVR

Post by stefan.erni »

Hi Ben

The Sensor came today. I have already made the wire connections and added the component to one of my ESP32 program. Unfortunately I can no longer compile error free with the component added.

regards

Stefan
Demodata_ESP32_bme688.fcfx
(105.26 KiB) Downloaded 91 times
bme_2022-06-02_15-06-25.jpg
bme_2022-06-02_15-06-25.jpg (21.28 KiB) Viewed 2980 times

Post Reply