- This topic has 2 replies, 2 voices, and was last updated 2023-06-16 at 3:45 PM by .
- You must be logged in to reply to this topic.
Welcome to EnviroDIY, a community for do-it-yourself environmental science and monitoring. EnviroDIY is part of WikiWatershed, an initiative of Stroud Water Research Center designed to help people advance knowledge and stewardship of fresh water. Home › Forums › Miscellaneous › Compilation Error with Adafruit ADS1015 in Modular Sensors
Tagged: debugging, modular sensors, ModularSensors
I am currently trying to learn and understand how to properly use the modular sensors library for the Mayfly 1.1. I have downloaded the libraries through EnviroDIY, and I am using the Arduino IDE. When I go to compile code based on the modular sensors library, or I use an example such as simple_logging.ino, I get the following error:
c:\Users\Braedon Dority\Documents\Arduino\libraries\EnviroDIY_ModularSensors\src\sensors\ApogeeSQ212.cpp:15:10: fatal error: Adafruit_ADS1015.h: No such file or directory
I believe it is because the library for the Adafruit ADC is titled Adafruit_ADS1X15 and not Adafruit_1015. When I went into the ApogeeSQ212.cpp file and changed the included header to match what I have from downloading the libraries, my original code threw back the same error but this time for a different sensor when I compiled it again. I’m assuming that I am doing something wrong with the modular sensors library since all I did was compile the simple_logging.ino example file and it gave me this error. Any help would be great!
Were you able to figure this out? It sounds like your library folders may not be in the right spots.
I was! For some reason my Adafruit folder didn’t include the ADS1015.cpp and ADS1015.h files. I have my library up to date now though and it’s working great. Thanks!
We use cookies to improve your experience on our site. By using our site, you consent to cookies.
Websites store cookies to enhance functionality and personalize your experience. You can manage your preferences, but blocking some cookies may impact site performance and services
Essential cookies enable basic functions and are necessary for the proper function of the website.
CleanTalk offers effective spam protection and website security solutions to enhance user experience.
Service URL: cleantalk.org (opens in a new window)
CloudFlare provides web performance and security solutions, enhancing site speed and protecting against threats.
Service URL: developers.cloudflare.com (opens in a new window)
These cookies are needed for adding comments on this website.
These cookies are used for managing login functionality on this website.
WooCommerce is a customizable eCommerce platform for building online stores using WordPress.
Statistics cookies collect information anonymously. This information helps us understand how visitors use our website.
Google Analytics is a powerful tool that tracks and analyzes website traffic for informed marketing decisions.
Service URL: policies.google.com (opens in a new window)
SourceBuster is used by WooCommerce for order attribution based on user source.
You can find more information in our Cookie Policy and Privacy Policy.