Thanks for the diagram. That's very helpful. The grounding arrangement looks fine to me.
I notice that on the MAX485 at the left side of the top breadboard, pin 3, the transmit enable input, is not connected to anything. This is a high-impedance input and it may pick up noise if it's not...