5v Analog Signal noise

Hello guys,
I have 20 soil moisture capacitive sensors, an Arduino Mega board and a Multiplexer.
I took an old phone's power supply (5V), i took 20 cables and i plugged everything together.
Usb power supply > 40 wires > plugged to each sensors.
So just the signal wires goes to arduino

Problem:
i'm getting very very noisy reads from the sensors but
But
If i plug all of them to the board on the +5v Gnd pins it works perfectly with 0 interference.
How can i fix this? Probably linking all the wires together generate a magnetic field or i dunno
But i would like a solution that is not to buy 20 usb power supplies :rofl:

Ps: i'm not here to discuss the Multiplexer but just the noise part, thanks in advanced.

Always show us a good schematic of your proposed circuit.
Show us a good image of your ‘actual’ wiring.
Give links to components.

Hard to tell from your description(schematic, even pen-on-wall, photo, would do), but do you have a common ground reference between the phone charger (-) and the Arduino GND? If not, provide one. If you do, then it may be that you have a 'cheap' charger which doesn't regulate properly. If the latter is the case, just swapping to another phone charger of a different brand may be adequate.

1 Like

Man that fixed everything from what i see now, the only reason i didn't post more is because i unplugged everything after having spend 4 days in a row on it :rofl:
@LarryD this post was linked to this Soil Moisture Sensor + Multiplexing - #28 by kgray9

My problem was solved for the moment, tomorrow i will plug everythings back and i will update the thread.
Thank you so much

2 Likes

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.