andrea1388 / ArduinoModBusHomeAssistant

Arduino sketch for modbus implementation of sensor, switch and thermostat to use with Home Assistant
7 stars 5 forks source link

tx rx pin #1

Open greedily8276 opened 1 year ago

greedily8276 commented 1 year ago

Hi, i can't figure out how to declare pin for tx and rx, i can find only the DE/RE pin Can you explain?

Thanks! Alessandro

andrea1388 commented 1 year ago

Connect DE and RE pin together with the rs485 control pin of the microcontroler (PIN485TXEN). I have used a library for modbus: https://github.com/smarmengol/Modbus-Master-Slave-for-Arduino It uses the standard tx/rx pin of arduino. Ciao, Andrea