I'm developing a project that will control the actuator DA 15-N of Volz with the RS485 bus. I have got the arduino UNO click SHIELD of Microelektronics and their RS485 click.
They have libraries for the RS485 click, but they aren't free.
I tried with other libraries. The problem is, that the actuator has its own frame.
It is like this:
Byte # Communication type
1 Command code
2 Actuator ID
3 Argument 1
4 Argument 2
5 CRC High-Byte
6 CRC Low-Byte
With a command like 0xDD 0x01 0x0C 0x5A 0x8D 0xC8 the actuator schould turn to -22°.
I also tried to send the commmand with UART to the shield, controlling the R/T pin of the module, but it does not work.
I'm developing a project that will control the actuator DA 15-N of Volz with the RS485 bus. I have got the arduino UNO click SHIELD of Microelektronics and their RS485 click.
It's the same as with almost every post: Where are the links to the used hardware? You have to provide the information, don't expect us to search for it, just to find the wrong data.
The naming of that pin is wrong. If you put it HIGH the click is in sending state, if it is LOW the click is receiving.
Remove the delay() lines. You must not have the MAX485 in send mode longer than necessary as otherwise you might miss the answer. At 115200 you transmit more than 50 bytes in 5ms!