water flow read from meter through max 485

Hi, I want to read the water flow from meter basically which is water meter and has a rs 485 on meter backside which i have connected to arduino mega 2560 through another MAX485.

The positive pin of meter's rs 485 is connected to the max 485 pin A.
The negative pin of meter's rs485 is connected to the MAx485 pin B.

On other side of max485 D1 pin is connected to arduino pin tx1 and max485 R0 pin is connected to arduino pin Rx1.

Pins DE and RE are connected to arduino pin 3 for transmitting and receiving.All and other connections are also made perfectly like grounding and 5v to max485 from arduino.

But i can find why the code can't read the value and print on serial monitor instead of that it displays "err" message on serial monitor which means no response from meter.

Please help out to solve this problem i am stuck at this from very long.

Thanks

sakurasanta86:
Hi, I want to read the water flow from meter basically which is water meter and has a rs 485 on meter backside which i have connected to arduino mega 2560 through another MAX485.

The positive pin of meter's rs 485 is connected to the max 485 pin A.
The negative pin of meter's rs485 is connected to the MAx485 pin B.

On other side of max485 D1 pin is connected to arduino pin tx1 and max485 R0 pin is connected to arduino pin Rx1.

Pins DE and RE are connected to arduino pin 3 for transmitting and receiving.All and other connections are also made perfectly like grounding and 5v to max485 from arduino.

But i can find why the code can't read the value and print on serial monitor instead of that it displays "err" message on serial monitor which means no response from meter.

Please help out to solve this problem i am stuck at this from very long.

Thanks

The I guess we are ALL stuck the same way. We can't find out why your code doesn't work either. Perhaps there is an error. Who knows????

Paul