Page 1 of 1

ADS1115 - to use 3 channels?

Posted: 20 Sep 2022, 21:33
by aperoap
Hello, I am trying to measure analog values ​​with ADS1115. I need 3 channels. I can only use 1 channel so far. is there a possibility to use 3 channels?

Re: ADS1115 - to use 3 channels?

Posted: 20 Sep 2022, 21:55
by TD-er
Have you tried adding more tasks using the same plugin?
As far as I remember for this plugin, you need to set a port/address in the task, but it does all sampling in 1 run, so you should be able to have multiple tasks accessing the same chip but on different ports.

Re: ADS1115 - to use 3 channels?

Posted: 25 Sep 2022, 09:24
by aperoap
yes i tried that In the current firmware you don't have to select a port. a multitask does not work.

Re: ADS1115 - to use 3 channels?

Posted: 25 Sep 2022, 10:33
by TD-er
Hmm aparently the documentation is next to useless/non-existent for this plugin: https://espeasy.readthedocs.io/en/lates ... 15#ads1115

However, I did change the shown config about 2 years ago to something more readable in the config page of that plugin.
It used to be just a combination of the I2C address and some bitmap representing the gain and input port.
Now it is at least regarding the config a bit more readable.

It should show you an I2C address selector, some gain setting and Input Multiplexer.
Are you using it single-ended? (the pin combinations on differential seem a bit odd, so I have to check the datasheet to see if the mentioned pins are right)

Re: ADS1115 - to use 3 channels?

Posted: 25 Sep 2022, 10:38
by TD-er
OK, looked at the datasheet: https://cdn-shop.adafruit.com/datasheets/ads1115.pdf
Page 19 is about the bits for the MUX and the strange pin combinations for the differential setup seem to be correct.

Re: ADS1115 - to use 3 channels?

Posted: 25 Sep 2022, 13:47
by aperoap
Yes, I want to measure 3 singe signals. No differential measurement

Re: ADS1115 - to use 3 channels?

Posted: 25 Sep 2022, 14:07
by Ath
aperoap wrote: 25 Sep 2022, 09:24 yes i tried that In the current firmware you don't have to select a port. a multitask does not work.
What do use as 'current firmware' ?

Re: ADS1115 - to use 3 channels?

Posted: 25 Sep 2022, 14:23
by aperoap
I am currently using mega-20220809_57b0c0c version.

Re: ADS1115 - to use 3 channels?

Posted: 26 Sep 2022, 08:49
by TD-er
When trying to sample via different tasks, how did you configure them?
Like I said, each task should be able to run on the same I2C address, set to its own pin config.