iancohee / gas_sensor_fap

A sensor application for the FlipperZero that uses a BME680 sensor and a SGP30 sensor.
Other
4 stars 0 forks source link

I can't seem to get it to talk to my flipper #1

Open Nhscan opened 5 months ago

Nhscan commented 5 months ago

BME680 what is the pin out to connect it to the flipper zero?

iancohee commented 5 months ago

@Nhscan Data (SDA) should be connected to F0 pin 15 (PC1) and Clock (SCL) should be connected to pin 16 (PC0).

Additionally, you need SDO and CS connected to VIN for this code to work.

I will draw up a diagram so this information can be included.

Nhscan commented 5 months ago

The sensor has no trouble working in temperature mode in the temperature app. However I had 10 15 and 16 connected correctly I did what you said sd-0 in CS also connected to the Vin and still nothing I just get on the app here and gas measurements at the top and no data down below just blink does it have to be sitting for so long for it to start reading any kind of gas settings or air quality?

iancohee commented 5 months ago

Do you also have an SGP-30 connected via i2c?

Maybe it isn't updating the view because it can't get data from one of the sensors. This would be a bug.

Nhscan commented 5 months ago

I am using a BME680 not the sgp-30

Nhscan commented 5 months ago

Here is the one I have HiLetgo BME680 Digital Temperature Humidity Sensor Module(Temperature/Humidity/Pressure/VOC Gas) 4 in 1 Sensor High Precision Environmental Monitoring Sensor with SPI IIC DC 5V https://a.co/d/aqnew9j

I know the address has to be 0x77 if that helps

iancohee commented 5 months ago

I wired a BME680 up without the SGP30 and the application does not render any text. I'll consider this a bug and work to fix it, but it may take some time.

PRs are welcome also :)

spitfire commented 4 months ago

SGP30 alone also does not work for me. I'm waiting for BME680 to arrive, right now I do have BMP280 connected to the board which does use the same address the BME680 would