Hello,
I am very new to using Arduino and this is my first project. I am attempting to create an Input/Output relay using an Arduino Uno over RS485.
The end result should look something like this:
- Input ON (continuously receive RS485) which causes an Output to send over RS485 momentarily when the input is initially received
- Input OFF (RS485 input disconnects) which causes an Output to send over RS485 momentarily when the input disconnects its stream
I could not locate any examples of this sort of project and I am still in the learning process.
Any help or tips on where to begin would be much appreciated.
What is the problem? Read an input, button or relay, and send, or don't send according to the input.
By the way, what brought You into this situation?
Do you use the RS-485 modules for Serial (UART) transmission or simply as digital line drivers?
Railroader:
What is the problem? Read an input, button or relay, and send, or don't send according to the input.
By the way, what brought You into this situation?
Well in the day that has passed, the scope of the project changed into something else entirely. But initially though, we were going to use RS485 to communicate with an intercom/paging system to make it behave as a switch, kind of like an ON/OFF sequence. This would occur when a node that isn't directly communicating with said paging/intercom system is used (ie a phone that isn't part of the network but has a local connection). This Arduino was going to act as a sort of buffer that monitors the incoming status of a paging system and reacts by enabling another system that feeds analog audio coming through another hardware device and then to shut it off once the signal is closed.
DrDiettrich:
Do you use the RS-485 modules for Serial (UART) transmission or simply as digital line drivers?
I believe in our case it would have had to been a Serial transmission - unfortunately, in the day that has passed, the use of the Arduino changed into something unrelated to RS485
IoT_hobbyist:
Do you use Modbus RTU ?
No, but I was looking at that to potentially order it.
Thank you all for your responses and tips, I really wish I could have dived deeper into a project like this but the project we are working on now is having the Arduino control a roll-up gate.
A good method for testing the send/no-send, would be using a simple button. When that works You can start developing the RS484-method.
To assemble the total project at once and start testing. All experienced people test each module first and when it works, incoporate it in the proj.