I have a PCB where the A2 pin is already connected to one of the 8 pins of a RJ-45 module.
Now I want to re-purpose that pin for another work. I want to connect one of the 2-wire outputs, B, to be specific, from the MAX-485 module (modbus communication ) to this pin.
Thus, practically I am connecting the B pin of the RS485 to A2. This is an undesired connection as I have no purpose of reading the analog voltage level of RS 485 output pins. However, I cant eliminate this connection, since it is through a PCB. The attached picture explains the configurations. The exact model of Arduino does not matter.
My question is: will this configuration somehow destroy my A2 pin or the whole Arduino? Since i am only supplying VCC (5V) to the rs 485 module, the maximum analog voltage level at output pin B can be 5V, which should not damage the A2 pin. Right?
The modbus communication is unaffected by connecting B pin to A2. I already checked that.
RS485 bus wires A and B are allowed to vary (common mode) by +/-7V or so by many IC drivers - this means differences in ground potential in different parts of a building or in different buildings can be tolerated. Your A2 pin will not tolerate that sort of voltage.
But if your RS485 wiring is local and such ground potential variation isn't present you wouldn't need to worry about this.
Still cutting the track is easy and brings peace of mind.
BTW I see no ground wire in your bus, RS485 is normally A,B and gnd.