Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Modbus RTU sensor, MAX485, Controllino MAXI(Arduino Mega 2560 PLC)

Status
Not open for further replies.

Nur_Alya

Newbie
Joined
Oct 18, 2021
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
28
Hi. I was given a task to do a school project using Controllino MAXI/Arduino Mega 2560 with MAX485 and a Modbus RTU sensor where the objective is to get some reading from the sensor.

Here I am struggling with coding and connection for it. I wanted to ask for advice, opinion on the things I've done with it at the moment. As I am lost with on how to use the one MAX485 as transmitter/receiver in getting values from the sensor to the Controllino.

At the moment;
Sensor: Brown -> External power supply, B -> B MAX485, A -> A MAX485, Black -> GND Controllino
MAX485: DE & RE -> GND, DI -> TX3 Controllino, RO -> RX Controllino, VCC -> 5V RS485 Controllino, GND -> GND Controllino
Controllino : No connection at the moment

Is it true? Or fine with what I am doing at the moment?
 

KlausST

Super Moderator
Staff member
Joined
Apr 17, 2014
Messages
23,015
Helped
4,715
Reputation
9,446
Reaction score
5,085
Trophy points
1,393
Activity points
152,474
Hi,

you need a schematic.
and you need to read modbus specification and go through some tutorials. There are even videos.

Klaus
 

FvM

Super Moderator
Staff member
Joined
Jan 22, 2008
Messages
50,780
Helped
14,600
Reputation
29,475
Reaction score
13,677
Trophy points
1,393
Location
Bochum, Germany
Activity points
290,819
I expect that existing Arduino MODBUS RTU client examples bring all what you want, as a starting point see
 

prakashvenugopal

Advanced Member level 1
Joined
Jun 1, 2011
Messages
459
Helped
15
Reputation
30
Reaction score
15
Trophy points
1,298
Activity points
4,863
Hi,

Short the RE and DE pin in the MAXRS-485 IC and give to one Controller pin to control the Receive/Transmit

If that pin High --> Transmit
If that pin Low --> Receive

Regards,
V. Prakash
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top