JCA34F:
Each relay coil draws about 75mA from your 5V supply, how many are turned on at the same time? The LCD backlight draws upwards of 50mA depending on brightness. What is the 5V supply voltage when everything is powered?
Thanks JCA34F, only 1 relay will be on at a time. 5V supply voltage with everything turned on is 4.988V.
MarkT:
Remember wires are just low-value resistors, any current flowing will drop some voltage across a wire, and for thin wires and large currents it can be very significant.
You should run sensors supply/ground separate to any high current devices, so that these voltage drops don't get superimposed on the sensor readings.
Thanks Mark, i hope i've understood you, i attached another stepdown converter to the bench supply in addition to the first one and tried running just the sensor from that but same result. The 3.3V supply from the converter was 3.289V, these capacitive soil moisture sensors can run on anything from 3.3V to 5.5V.
wvmarle:
I suppose this sensor you're talking about is connected to a separate regulated 3.3V supply.
The change in analog valueand the dimming of the display are signs of inadequate power supply. However I'd expect the 3.3V reading to go UP rather than down, as the reference voltage (Vcc) of the Arduino's ADC is going down. Now I can't help to wonder why you use an analog mux for just a single input...? Maybe that mux is misbehaving with too low voltage? It does need a decoupling cap (100 nF ceramic), but if it's a breakout board that's probably in place already.
A solderless breadboard can handle up to about 500 mA. Internal resistance can cause voltage drops.
Using a 74HC4067 mux for the relay module appears totally inappropriate. I'd use an MCP23017 port extender for that (connects conveniently to the I2C bus so no need for extra pins for it), though again you do have sufficient pins on the Arduino to do without and make your circuit simpler.
Thanks wvmarle, in my original post setup the sensor was running from the stepdown converter that was powering everything (the converter uses AMS117s for the 3.3V and 5.5V outputs, the 12V output is straight through), i then attached another converter to the bench supply and ran only the sensor from that but the sensor output is still low.
Regarding inadequate power, the 5V and 12V readings are fine but you're right about the 3.3V, it reads 3.773.
Regarding the mux, it will have all channels used in the final setup, i'm just developing it in a modular fashion for simplicity and ease of testing and it can operate on 2 to 10 volts so has enough supply. The datasheet doesn't mention a decoupling cap but yes it is a breakout board.
Thanks for the port extender suggestion i'd not heard of those.
Thanks all for your help, Gary.