Needed the ads1118.begin() in setup. I looks like it is in the library and I assumed it would be called when a read ADC read function was called but it isn't.
I have two programs, one for a modbus master and the other to read the TI ADS1118 ADC each one works as expected. I combined the programs together into a single program and the ADC part seems to fail on SPI but, again independently they both...
Ok i changed the buffer size and the prints are quite fast but the program is slow in the ADC function i guess...
Can you see anything that would be slowing it down to about 1 second for the function to run?
// Function to read pressures and...
I'm doing a lot of serial writes to USB and three other real ports and it seem to slug down my program. What are good settings for buffer, size? What are the min and max?
this program compiled and ran just fine and now it won't and is giving these errors:
D:\ChuckW\Arduino\Projects\Ads1118\Ads1118.ino:19:19: error: no matching function for call to 'ADS1118::ADS1118(int)'
19 | ADS1118 ads1118(CS);
|...
ok, thanks. I had to uninstall and reinstall it to be able to compile, it was stuck and lost all of the boards in the manager.
Thanks for all of the help!
ok thanks i'll do that. So i shut down arduino and restarted it. Did a reload and it said it was compiling and uploading in the message line but there were no compiler messages and it acted like it was hung. I did a user abort, shut down arduino...
Aw damm, somehow the board got changed to Arduino SAM under tools/board. I never work with that or any arduino board (only teensy 3.2 or 4.1) and it always is set to Teensy 4.1. I'm starting to think 2.3.3 is still buggy. Sometimes the settings...
Thanks Joe! yeah I saw that, I am using teensy. So just now I added #define CORE_TEENSY in the ADS1118.h to see what happens and now it compiles again. Is the SAMD reference a problem? Like I said, nothing changed that i know of in the lib...
Hi @joepasquariello and/or all.
I used the ADS1118 lib last year and it worked with the changes Joe helped me with in this post. But now i'm writing a new program and it is not compiling so I went back to the basic example that also worked and...