Hi all ,
I am trying for my project to get data like (kWH,Voltage etc) form an modbus based digital electric meter through RS232 >>>> arduino UNO serial communication . I have tried multiple codes available in internet (links mentioned bellow) . But no values are coming out of it . I need urgent help for the same problem with connection diagram and codes .Please help me . Please check the attachments for the components used .
http://forum.arduino.cc/index.php?topic=327795.0
arindam_das:
Hi all ,
I am trying for my project to get data like (kWH,Voltage etc) form an modbus based digital electric meter through RS232 >>>> arduino UNO serial communication . I have tried multiple codes available in internet (links mentioned bellow) . But no values are coming out of it . I need urgent help for the same problem with connection diagram and codes .Please help me . Please check the attachments for the components used .
Communication over Energy meter and Arduino UNO using MAX485 via Modbus Protocol - Project Guidance - Arduino Forum
GitHub - smakonin/APMR: Arduino Power Meter Reader (APMR): log readings from RS485/Modbus communicating meters.
GitHub - peninquen/Modbus-Energy-Monitor-Arduino: A class to collect data from a energy monitor that uses modbus protocol.
Show us your connection first.
Paul
Arduino UNO RX TX port to RS232 RX TX port and GND to GND
Then the RS232 module to meters rs232 port .
Check the image for reference.
I need some proper code with some connections .
Please help me out i am in a great problem
You have read enough postings on the forum to realize the Arduino serial communication pins are NOT RS-232, even though they are identified that way. Your break-out connector needs to be a real RS-232 to TTL adapter.
RS-232 is -3-25 volts to +3 to 25 volts. An adapter will output and accept +-8.3 volts, approximately and convert that to the 0-5 volts used on the Arduino pins.
Do you have the documentation for the messaging protocol used by the meter? Perhaps it needs to be commanded to send back data.
Paul
Connecting directly the Arduino serial port with ttl levels to the meter rs232. might have even damaged the arduino mcu