kokalz:
Hey all,I'm trying to implement a RS485 communication with ARDUINO and am using MAX485 to connect from PC to ARDUINO. The problem is that whenever I set the DE-RE pins to low I get 0 byte outputted to my debug serial monitor (Serial2).
Even simply doing
digitalWrite(pinIO, HIGH);
delay(1000);
digitalWrite(pinIO, LOW);
will output a 00 byte
More info is needed.
Please post a schematic of the RS485 connections.
If pinIO controls the T/!R of the MAX485, and you have the 'A' and 'B' wires reversed and you have DI connected to TX1, and you are not sending any Data out when you enable the Transmit function of the MAX485.
With the 'A', 'B' wires reversed, the Serial1() idle level(high) becomes (low) followed byte the continuous LOW with is interpreted as a 0x0.
That is my explanation, BUT it is an ASSUMPTION with no BASIS in KNOWN FACTS. Since you did not post any FACTS.
Chuck.