Adrino and Pi4 loses connection to ADS1115 at random

New here, bare with me. :smiley:

With my ADS wired up I can get can call the status when needed. However at random I'll loose my i2c connection to the paired boards (48,49). Sometimes I Can flash the i2c call and get it back but often I cant.
I tride changing the baudrate but doesn't seem to have an effect.
I am running it on a Pi4 as well with the exact same results.
Note it's 50' from device.

EDIT / ADD:
I need to read from 8 sources and then send back 6 separate signals. I'd rather not run a ton of wiring and am using the ADS to read the 8 signals.
If there's a better means of such a distance, I'd be happy to learn. :smiley:

Basic Setup.

Hi @strikershad ,

Welcome to the forum..

If those i2c lines are 50 feet then that's the issue..
i2c was meant for short bus, like intra-board..
maybe you can get a few feet using really good cable..

google max cable length i2c..

sorry, good luck.. ~q

1 Like

@PerryBebbington has some instructions to get it working over longer distance; I guess your mileage will vary.

1 Like

The weather has turned chilly here, so I'd rather not, thanks.

Please explain what this means.

The baud rate is for the communications between the Arduino and the PC, not the ADC and the Arduino, they are not related.

Please explain what this means. Are you using 2x ADS1115?

Half of it. There is no Arduino in your diagram.

What are the 4x symbols at the bottom of the diagram? They seem to be connected between the Vcc and ADC input pins, but not to ground. Is this the correct way to connect them?

Yes, much too far for ordinary i2c. Adafruit sell some modules to extend i2c range, check those out to see if they might help you.

Thanks. I have 3 others working fine so this caught me off gaurd. Thanks for letting me know. I'll have to figure out why the others work more then this issue.

Great refferance. I'll look into doing something similar.

Lol Thanks.
Flash - For flash I can do a subprocees call "i2cdetect -u 1" and it'll refresh the call to the board. Tends to work well.
2x - I am using 2 of them as I monitor 8 connections status.
Basic setup - The adrino is up top. I can be more spacific on each connection if you want.
4x connections - So the signal ties off the path through when they ore connected "T" and the board messures the useage. When reading the ADS I'm really just looking for any voltage over 1.5 as on and really what all I'm looking for.
50' - I have a few others working just fine at the same distance. But it seems to be more luck then function for what others have mentioned.

I can't understand you well enough to help, sorry. I realise spelling is not your Mastermind subject, but it's not that I'm struggling with. Good luck.

Longer busses require lower pull-ups.
Try adding a 10K pull-up. With the 10K on the ADS module it will lower the total pull-up to 5K.

Pull-ups that are too strong/low will also prevent the bus from working. If you have 2x ADS boards with built-in pull-ups, plus the Arduino internal pull-ups and you add external pull-ups, they will combine to make stronger pull-ups, maybe too strong.

i'd expect that the capacitance of the cable assemblies differ..
lower is better..

~q

So I use the same Cat-6 cabeling and setup for each on. Using the same pairs for the same uses. However there could be other things i'm not considering that could be a factor.

could you reverse it..
move the adc close and extend the signals??
or lose the adc and put a nano there and use serial..

or like some point out, maybe other ways to still use i2c..

could be how the cable is routed..
could be bad cable..
did you measure the voltage on the end, the 5vdc??
might be a voltage drop, use a poe injector and splitter to get reliable 5vdc..
could be environmental..

if there's a power source at the end, maybe could do wireless??

good luck.. ~q

Great Q's.
Moving the ADC isn't going to be an option at this setup.
Thought about putting a nano there but will still run into the same issue as the network isn't reliable and the NIC on the board is already in use.
It could be a bad cable, I have swapped out cabeling on another setup once cause of that, but generally the signs are different. But still an option for sure.
Getting 5.1V regullarly.
There is a power source at the end. A posted link by @sterretje from another closed post suggested a slightly different setup. I just need to visualize the suggestion in that.

no was more thinking..

slower baud than i2c might be able to get that to work reliably..

~q

Pull-up value.

Other then a faulty one, it should be exactly the same as the other setups I have curently unaffected.
But worth testing.

Nothing is ever exaclty the same.
What pull-up values are you using?

1.8k on the i2c pi side
and
1.8K on the ADS1115 side as well