Skip to content
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 Alphasense CO2 Sensors; Redirect ADS1X15 dependency to Adafruit #457

Merged
merged 4 commits into from
Sep 27, 2024

Conversation

aufdenkampe
Copy link
Member

@aufdenkampe aufdenkampe commented Nov 27, 2023

This PR is primarily to add the Alphasense IRC-A1 Nondispersive Infrared (NDIR) Carbon Dioxide (CO2) sensor to the list of supported sensors.

It also paves the way for other Alphasense gas sensors to be implemented.

Last, bundled into this PR is a code fix to support the following change in the dependency for the Mayfly's Analog-to-Digital Converter (ADC):

This PR is not yet 100% ready, as some testing is first required to confirm that everything is working on sensors that use the ADS1X15. I also need to complete documentation for the Alphasense sensor, primarily via adding a block to the menu-a-la-carte.ino example.

This PR begins such review.

Addresses #456, including changing all uses of ADS1X15 to be compatible with breaking changes introduced with Adafruit's v2.x releases. Everything compiles!
Haven't yet tried to compile!
because Adafruit's v2 library does it in two steps, with `ads.readADC_SingleEnded()` returning a raw ADC count integer, which then needs to be comverted into an ADC voltage float.
@aufdenkampe
Copy link
Member Author

@bellahenkel, can you confirm that the Alphasense CO2 sensor is working using this sketch:
https://github.com/bellahenkel/Soil-Sensing-Device/tree/triple_logger/examples/AlphasenseCO2_simple_logging

@bellahenkel
Copy link

@aufdenkampe Everything appears to be working on my end!

@aufdenkampe
Copy link
Member Author

@SRGDamia1, is this something you might be able to review and merge sooner than later?

I think this feature branch adds important new capabilities and ease-of-use benefits (i.e. all recent tutorials use Adafruit's v2 for ADS1X15) that are outlined in:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants