ADS1115 - to use 3 channels?

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
aperoap
New user
Posts: 4
Joined: 20 Sep 2022, 21:25

ADS1115 - to use 3 channels?

#1 Post by aperoap » 20 Sep 2022, 21:33

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?

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: ADS1115 - to use 3 channels?

#2 Post by TD-er » 20 Sep 2022, 21:55

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.

aperoap
New user
Posts: 4
Joined: 20 Sep 2022, 21:25

Re: ADS1115 - to use 3 channels?

#3 Post by aperoap » 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.

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: ADS1115 - to use 3 channels?

#4 Post by TD-er » 25 Sep 2022, 10:33

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)

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: ADS1115 - to use 3 channels?

#5 Post by TD-er » 25 Sep 2022, 10:38

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.

aperoap
New user
Posts: 4
Joined: 20 Sep 2022, 21:25

Re: ADS1115 - to use 3 channels?

#6 Post by aperoap » 25 Sep 2022, 13:47

Yes, I want to measure 3 singe signals. No differential measurement

User avatar
Ath
Normal user
Posts: 3416
Joined: 10 Jun 2018, 12:06
Location: NL

Re: ADS1115 - to use 3 channels?

#7 Post by Ath » 25 Sep 2022, 14:07

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' ?
/Ton (PayPal.me)

aperoap
New user
Posts: 4
Joined: 20 Sep 2022, 21:25

Re: ADS1115 - to use 3 channels?

#8 Post by aperoap » 25 Sep 2022, 14:23

I am currently using mega-20220809_57b0c0c version.

TD-er
Core team member
Posts: 8643
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: ADS1115 - to use 3 channels?

#9 Post by TD-er » 26 Sep 2022, 08:49

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.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 34 guests