Hi!
I've recently purchased this module, that uses RS485 to communicate. The module has a variable output of 4-20 mA. Module PDF
To achieve this, I also purchased a couple of MAX485 IC's.
But I have run into some issues. I cannot figure out my mistake, that is causing the module to not properly set an output. The mini breadboard in this case is supposed to be the module.
I see several problems. Start by downloading the MAX485 datasheet if you do not have it. When RE\ is low (that little circle indicates active low) you enable the receiver. RO is the receiver output. DI is the data input. As you have it drawn it will not send anything, it will receive what is on the bus and dump it into the bit bucket so you will never see what you got. When you get that then we can work on the code. Assuming you posted all of the code It is missing a lot. Are you planning on using software serial to receive data? If it is not a cash crunch switch to the Mega, it has 4 serial ports which can be used without blocking software.
To send with the MAX485 DI and !RE must be high. What is correct in the schematic. DI is the data in from the MAX485. What is correct on the schematic. From the datasheet.
Hi!
RE/ and DE, is connected to 5V directly, thereby setting the IC to transmit data. I do plan to recieve data from the module, as it has other functions, but for now I just want to figure out why the module isn't outputing the desired current. I do not have a Mega on hand.
I assume the code is adequate, as I need to send just the one command.
I don't know much to be honest, but I assume it's 8-bit ASCII, since sending hexadecimal bytes prints as their corresponding ASCII character on the serial monitor.
Hi everyone, thank you for all the help.
Someone once told me that often small mistakes have the biggest impact.
My issue was that I reversed the polarity of the RS485 connection. Connecting DATA+ to B and DATA- to A.
Here is the end schematic in case someone will need it in the future.