Hi this might be a simple one for someone. I've an Arduino Mega and a MAX485 Module RS-485 TTL to RS485 Converter Module. I basically need the code to set it up with a baud rate of 2800 and then the line of code to instruct it to send a hexidecimal code (the Pelco D protocol) when a button is activated. Currently we have a simple system where the Arduino is activating relays upon the button being pressed. We need to add the command to send the hexidecmal code (the code is FF 01 00 07 00 01 ) as well. I've no idea, anyone like to suggest?
What I have tried:
Nothing yet, it's taken us this long just to get the hexidecimal code..