Page 2 of 2

Re: Problems Arduino Nano V3 and MAX485 no clear connection

Posted: Jul 9th, 2020, 2:44 pm
by asesorplaza1
Buenas tardes
Yo también tengo esos problemas, los códigos de TechMonkey, solo sirven para los sensores que utiliza en su código, en el momento que se realiza cualquier cambio, el programa ya no funciona igual, y el Arduino, parece que se vuelve loco, y no te hace caso a nada de lo que le mandes desde el programa, por muchas líneas que modifiques.
Por lo que yo estoy viendo, te pasa lo mismo que a mí, que tu no encuentras un ejemplo en el que alguien explique cómo utilizar el RS485 entre dos Arduinos para leer y enviar los datos de varios sensores, solo encuentras como comunicar dos o más Arduinos con un solo sensor. Te pongo otro enlace donde el creador de la librería para el RS485 explica cómo usarlo, espero que te sirva de ayuda, un saludo.

Good afternoon
I also have those problems, TechMonkey codes, only serve for the sensors that it uses in its code, at the time any changes are made, the program no longer works the same, and the Arduino, seems to go crazy, and does not listen to anything you send from the program, for many lines that you modify.
From what I'm seeing, it happens to you the same thing as me, that you can't find an example in which someone explains how to use the RS485 between two Arduinos to read and send data from various sensors, you only find how to communicate two or more Arduinos with a single sensor. I put another link where the creator of the library for the RS485 explains how to use it, I hope it will help you, a greeting.

https://www.gammon.com.au/forum/?id=11428

Re: Problems Arduino Nano V3 and MAX485 no clear connection

Posted: Jul 10th, 2020, 6:27 pm
by bigbadbob
Hi!
I use techmonkey based code modified for my own needs, easy transfer protocol, and RS485 boards that don't need control lines for the tx/rx switching. I had no end of problems with the cheap rs485 boards and went for slightly more expensive boards that detect when you TX and do the switching for you. I've not had any rs485 problems since changing to the better boards.

Re: Problems Arduino Nano V3 and MAX485 no clear connection

Posted: Jul 12th, 2020, 3:26 pm
by Matt87
bigbadbob wrote:Hi!
I use techmonkey based code modified for my own needs, easy transfer protocol, and RS485 boards that don't need control lines for the tx/rx switching. I had no end of problems with the cheap rs485 boards and went for slightly more expensive boards that detect when you TX and do the switching for you. I've not had any rs485 problems since changing to the better boards.
Wich RS485 Boards are you using now?

Re: Problems Arduino Nano V3 and MAX485 no clear connection

Posted: Jul 16th, 2020, 3:00 pm
by Matt87
I have maybe stupid question. I using the MAX485 Bords and I power those boards and both arduinos with a seperate power source.
So the only connection between the two systems is the wires A and B.
Is it necessary to connect the GND together. GND from arduino Master to GND Arduino Slafe?
http://www.techmonkeybusiness.com/rov-c ... ition.html
Techmonkey connect Master an Slave over one GND wire. I think I have to do the same?

Re: Problems Arduino Nano V3 and MAX485 no clear connection

Posted: Jul 16th, 2020, 3:45 pm
by asesorplaza1
Buenas tardes.
La respuesta es SI, debes unir las masas o GND de todo el circuito.
Un saludo.

Good afternoon.
The answer is YES, you must join the masses or GND of the entire circuit.
Greetings.

Re: Problems Arduino Nano V3 and MAX485 no clear connection

Posted: Jul 16th, 2020, 5:34 pm
by Matt87
asesorplaza1 wrote:Buenas tardes.
La respuesta es SI, debes unir las masas o GND de todo el circuito.
Un saludo.

Good afternoon.
The answer is YES, you must join the masses or GND of the entire circuit.
Greetings.

Good afternoon :-)
Ok, Thank you ;)

Re: Problems Arduino Nano V3 and MAX485 no clear connection

Posted: Jul 19th, 2020, 4:18 am
by Bennachie
asesorplaza1 wrote:Buenas tardes.
La respuesta es SI, debes unir las masas o GND de todo el circuito.
Un saludo.

Good afternoon.
The answer is YES, you must join the masses or GND of the entire circuit.
Greetings.
No, this is incorrect. With RS485 you do not need to connect the grounds between the two modules, especially if the distance between the modules is short (<1km). Under certain circumstances you can end up with a high potential difference across both ends and then you need the ground, but normally just the twisted pair is all that is required.

Re: Problems Arduino Nano V3 and MAX485 no clear connection

Posted: Feb 21st, 2021, 6:27 am
by bigbadbob
sorry for the late reply.
these are the ones that gave me endless problems-

Image

and these are the good ones-

Image

Re: Problems Arduino Nano V3 and MAX485 no clear connection

Posted: Feb 23rd, 2021, 4:18 pm
by Matt87
Thank you.
I'm almost done with my Rover Projekt.
The Full Duplex Communication working good. Only the Live View is a little bit noise.