Skip to content
If this is your first visit, please click here to learn about shipping and delivery.
If this is your first visit, please touch here to learn about shipping and delivery.
Two-channel relay module with RS485 and TTL control interfaces

Adding RS485 Relays to an Existing Bus: Protocol, Addressing and Channel Verification

An RS485 relay module is not automatically compatible with an RS485 sensor network. The electrical interface may match while the baud rate, message format or addressing scheme differs. Connecting the board before checking those details can disrupt a bus that was working correctly.

A better integration process establishes the relay module on its own, records its command behaviour, then adds it to the existing network with a controlled test.

Start with the command protocol, not the terminal labels

PMD Way's two-channel RS485/TTL relay module is listed for a 12 V DC supply and includes instructions. The product description identifies RS485 and TTL interfaces but does not publish a complete protocol specification. Obtain the supplied instructions before assuming it supports Modbus RTU or any particular command bytes.

RS485 describes the differential electrical link. It does not define relay numbers, device addresses, checksums or the meaning of a reply. Two boards can both have A and B terminals and still speak different languages.

Write down the protocol name or documented proprietary format, baud rate, data bits, parity and stop bits. Include how the module's address is changed and whether the new setting survives a restart.

Check whether the existing bus can accommodate it

List the current controller and every existing device, with their addresses and serial settings. Confirm that the controller software can communicate with the new module's protocol without confusing other devices. A common baud rate alone is not enough.

If the relay module needs a different protocol or serial configuration, a separate interface may be simpler and more reliable than mixing incompatible traffic. Do not assume the existing controller can change settings between devices without affecting them.

Keep one controller responsible for initiating traffic unless the protocol explicitly supports another arrangement. Adding a laptop test adapter as a second active transmitter can create collisions even when its individual commands are valid.

Commission the new module separately

Disconnect the real load circuits and use a short, controlled test link. Supply the module through its specified input and verify polarity before applying power. A USB-to-RS485 adapter provides the bus interface; a USB-to-TTL adapter does not connect directly to the RS485 terminals.

If using the module's separate TTL interface, confirm its logic voltage, pinout and relationship to the RS485 interface. The name “TTL” does not establish that a particular 3.3 V controller is protected from higher signal levels, or that both interfaces can be driven simultaneously.

Test one documented command and its response before building a script that cycles relays. Preserve the exact transmitted and received bytes with timestamps. This creates a known working record for later comparison on the shared bus.

Treat Modbus as a conditional case

If the supplied documentation explicitly specifies Modbus, use its register or coil map alongside the Modbus Application Protocol Specification. A relay labelled channel 1 does not necessarily use protocol address 1; Modbus data addresses start at zero, while product manuals may display human-friendly numbering.

For a device that implements standard function 05, Write Single Coil, the ON value is hexadecimal FF00 and OFF is 0000. That is an example of why a generic “send 1” assumption fails. It is not a command recipe for the linked module until its actual support and coil address have been confirmed.

Use a library that constructs and validates the complete frame for the selected protocol. Check error responses and checksum failures rather than treating any received bytes as success.

Assign a unique address before joining the network

Configure the module while it is the only relevant device on the test link. This avoids changing several devices that share a factory-default address. After changing the address, verify communication at the new address and repeat after a power cycle.

Record the address on the enclosure or terminal label as well as in software. Reserve it in the network's device list. If the board does not support the addressing required by the existing bus, recognise that limitation before connecting it.

A useful acceptance step is to command only the new device and confirm that every existing device remains unchanged. Perform that test with harmless loads or monitored outputs, not an active process.

Review termination and references as part of the whole bus

Check whether the new module contains termination or bias resistors, including any jumpers. Adding a board with an enabled terminator in the middle of an existing cable can change bus loading. Do not automatically fit another resistor at every device.

TI's RS485 design guide explains termination at the cable ends and matching the cable impedance. Analog Devices' wiring guide discusses twisted-pair routing and avoiding problematic branches. Apply the guidance to the actual cable, signalling rate and topology.

Verify signal-reference and isolation requirements from the device documentation. A catalogue claim of optoisolation around relay circuitry is not proof that the RS485 port and its power supply are galvanically isolated.

Prove the relay mapping at the contacts

Acceptance checks for the new relay module
Test Evidence to keep
Channel 1 command Response and measured change at the intended contact pair.
Channel 2 command Correct independent operation without changing channel 1 unexpectedly.
Status request, if supported Documented relationship between response and channel state.
Communication interruption Whether contacts hold, release or follow another documented rule.
Power restoration Address persistence and initial contact state.

Measure continuity only on contacts isolated from external voltage. A command acknowledgement can confirm protocol handling without proving the load itself operates. Keep those two results distinct.

Add the real load as a separate engineering step

Check the complete board, terminals and relay contacts against the actual load voltage, current and switching characteristics. A headline current is not a universal rating for motors, solenoids or capacitive loads. Use suitable protection and low-voltage loads for the initial project; exposed prototype boards are not a complete mains installation.

Save the device settings, channel map and successful bus test together. When comparing RS485 relay boards, a documented protocol and predictable integration process are as important as the number of relays.

Previous article Battery Power for Arduino Projects: Voltage Range, Runtime and Regulator Heat