Ribbit-Network / ribbit-network-frog-hardware

The sensor for the world's largest crowdsourced network of open-source, low-cost, GHG Gas Detection Sensors.
https://www.ribbitnetwork.org/
MIT License
96 stars 26 forks source link

ESP32 Frog: Find & Integrate Sensor Libraries into ESP-IDF Framework #158

Closed keenanjohnson closed 2 years ago

keenanjohnson commented 2 years ago

As part of the effort to create an EPS32 based Golioth Frog Sensor Ribbit-Network/ribbit-network-frog-hardware#126 , we need to find and integrate drivers for the Frog Sensors into the ESP-IDF framework stared in this branch: (https://github.com/Ribbit-Network/ribbit-network-frog-sensor/tree/esp32_golioth)

Sensors

beriberikix commented 2 years ago

There's a common set of sensor drivers UncleRus/esp-idf-lib which has support for the SCD-30.

esp-idf-lib currently doesn't support the DPS310 but I just filed UncleRus/esp-idf-lib#456. It's a simple I2C so hopefully we can get some support there.

GPS in general is usually standard NMEA, so something like https://github.com/jacketizer/libnmea should work.

I don't have the sensors on hand but I'm going to order them and see if I can help with the validation :)

keenanjohnson commented 2 years ago

Thanks @beriberikix for pointing out those libraries! Hopefully it shouldn't be too difficult to add those into my branch I have! I will try to work on it soon as I have all the sensors here I can validate with.

keenanjohnson commented 2 years ago

I have linked the UncleRus/esp-idf-lib library into my golioth project and imported the scd30 module. I should be able to verify the functionality shortly.

https://github.com/Ribbit-Network/ribbit-network-frog-sensor/actions/runs/3208759367

keenanjohnson commented 2 years ago

I've created three separate Github issues for each of our sensors to track and divide this work as part of the milestone: https://github.com/Ribbit-Network/ribbit-network-frog-sensor/milestone/4

Ribbit-Network/ribbit-network-frog-hardware#173 Ribbit-Network/ribbit-network-frog-software#16 Ribbit-Network/ribbit-network-frog-hardware#175