Browse our Blog. You will find multiple applications, solutions, code examples. Navigate using the tag cloud or search using specific criteria
M-Duino with MAX485 Module
In this post will be shown how to connect our M-Duino PLC with the MAX485 module.
On-board MAX485 chip is a low-power and slew-rate-limited transceiver used for RS485 communication. Adopting half-duplex communication to implement the function of converting TTL level info into RS485 level, it can achieve a maximum transmission rate of 2.5 Mbps.
Dependig on RE and DE connection the module works as receiver or transmitter. Connected to VCC transmits data and connected to GND receives data.
It is a cheap module. You can find lots of 5 unit for less than one euro.
In this case, for send and receive data we use Serial1 (RX1 and TX1), but it's possible to use other Serial. However, Serial2 is used by for RS-232 and Serial3 for RS-485, so it's nonsense use Serial3. That means we we have three options: Serial0, Serial1 or Serial2 (losing RS-232 communication). To enable the transmision or reception tipically use Pin 2 and Pin3.
Here you have the connections diagram. Obviously, using one MAX485 module, it's not possible to send and receive at the same time. For that you have to connect two MAX485 modules, one to transmit and one to receive.
Send or Receive Connections
Send and Receive Connections