I think I misunderstood. You warned about not using as single phase meter but you are using it as a single phase meter. To answer the question you could use phase 1 for grid, phase 2 for mains out from inverter 1 and phase 3 on inverter 2. However you MUST have a configuration where the neutral is common to all mains devices. If there is any voltage when you measure from the grid neutral and the inverter neutral you MUST NOT USE IT IN THIS WAY. On grid meters the RS485 output is isolated so you could use 3 single phase meters if the neutral is not common.
There is no standard for the AB markings which can cause some confusion where you can have multiple devices on the same bus with different polarity on the AB terminals. You rarely have to terminate the rs485 unless you have more than a hundred meters of bus with a lot of devices or if you have some extreme interference nearby (rs485 is quite resilliant). Only thing you should keep in mind is the only god topology of the bus is to connect the devices in a daisy chain.
I know this is off-topic, but have you been able to hook into the MPP Solar inverter serial port for monitoring with a Pi/MQTT? Wondering about the serial protocol and I'm a n00b at decoding those things. You seem like you've had some luck. :)
Small edit: (not a debian or python fun here) With my current version of your raspv8.rar (debian_version=8.0 & python:armhf/jessie 2.7.9-1) I needed to make a small change in mat.py: Replace endian=Endian.Big with byteorder=Endian.Big,wordorder=Endian.Big or an error for "unexpected argument 'endian' " is thrown Thank you, great video!
I am not sure if you could guide me with this or not. What is the difference between M-bus and Modbus? Is there any example on how to use mbus on raspberry pi? Thanks for the video anyway
DIY Tech & Repairs nice one. I have a Secure Liberty 100 meter installed at my property but I don't see any RJ11 or RJ45 or any sort of terminals to read it from. Have you ever come across it before?
hi , I am current working on the same . However I am not good in python programming can you give me some input point for it . So I can make my communication through.
Hi, great series. Checking through all your vids. Question, do you know how fast your modbus setup is polling your meter? I.e how many measurements do you get per given time unit?
Im polling 2 times a second. I can change it to whatever i want kind of. Depending on speed of bus and length. Some values on it is said to update every 6th second while others more often than 1 second. Im not sure how often though. 2times per second works for my purpose. Im avg those values so i do changes every 3 seconds based on it.
1. The polarity of a single phase connection is irrelevant. Try flipping the Schuko plug ;-) 2. The RS485 cable must have 120Ω impedance, be shielded, and have the shield connected, both ends. An excellent cable is a pair from a normal Ethernet network cable. Cheap and easy to find. 3. Termination being supplied in both ends is not optional. Fully agree on the need to check whether devices have built-in termination -- RTFM is essential. 4. Make certain your Pi has a good ground connection, or there might be fire.
i can pull voltage, current, power, etc from 3 phase power meter. but the data is different with the displayed data. anybody knows how to calculate exactly
Great stuff, I'm currently looking for a way to read modbus over TCP IP for testing purposes. I currently use a PC and Windows, but I'm hoping it will be an easy enough job to use a Pie. Thanks again.
You need a script that polls the device and then write into a delimited file. You can find example code on internet for fetching the data. If any exist that do what you want i dont know
yep thats what I thought, I cant even load up debian on the crap, it will only load android 5.1 molly from the onboard chip and ignores the op system on the sd card. It took me 3 hrs to change it from chinese to english and then I couldn't get into the settings again. Maybe I should sit a hammer next to it...lol
i am coming across a problem. when i run command python mat.py it gives me following error file ''mat.py'' , line 7, in import paho.mqqt.cliet as mqqt please help me how to get it right. and also i cant connect to the wifi... :(
I am using ISO you provided on your website. I downloaded it from there. I am using Extra LCD screen and keyboard and mouse for the raspberry pi. I have raspberry pi model 3.
I have all the same hardware for this to work but I´m certatinly not a programmer so I would like a video that is a bit more easy on how to set things up so that it works, right now I just get a bunch of error messages when i try: cannot send to mqtt deamon, problem with graphite... Otherwise its fun to follow you videos! Thanks for putting them out!
Yes I´m using your iso! It´s when I start the python mat.py, all the data from the sdm630 shows up on count 2 but it stops right away and says: cannot send to mqtt deamon and problem with graphite. Obviously I´m doing something wrong in the setup, but I can´t figure out what since I´m a complete noob!
Im not sure whats wrong. If you used the ISO it should work if the guide is followed. A new version will be released 22nd. With alot of improvments. You can also pm me if you want me to take a look at the script for ya
Now I have it running! I had by mistake typed a single s in the script where it should not be! Now it´s just the grafana part left to learn for me! Looking forward to see the new version, appreciate your work, thank you!
@@DIYTechRepairs cause im working on a project that I want to show the energy readings from Modbus rtu Iec62053-21on a GUI. its like a mini motherboard
great work mate..
I think I misunderstood. You warned about not using as single phase meter but you are using it as a single phase meter. To answer the question you could use phase 1 for grid, phase 2 for mains out from inverter 1 and phase 3 on inverter 2. However you MUST have a configuration where the neutral is common to all mains devices. If there is any voltage when you measure from the grid neutral and the inverter neutral you MUST NOT USE IT IN THIS WAY.
On grid meters the RS485 output is isolated so you could use 3 single phase meters if the neutral is not common.
There is no standard for the AB markings which can cause some confusion where you can have multiple devices on the same bus with different polarity on the AB terminals. You rarely have to terminate the rs485 unless you have more than a hundred meters of bus with a lot of devices or if you have some extreme interference nearby (rs485 is quite resilliant). Only thing you should keep in mind is the only god topology of the bus is to connect the devices in a daisy chain.
Maaniic i got 100meter and do need the end resistor. but yes normally not always needed. most devices have it built in.
Could you also read out the grid frequency using this setup?
I have not succeeded in making it work. I read the posts that there is an ISO. Where can I download it?
9:20 I need those undetectable lamps to lit my room
can u post the .py indented pls?
I know this is off-topic, but have you been able to hook into the MPP Solar inverter serial port for monitoring with a Pi/MQTT? Wondering about the serial protocol and I'm a n00b at decoding those things. You seem like you've had some luck. :)
Yes. Check out My other videos and solar-sis
Doesn't the gateway (via USB) and the meter still have to be connected to ground?
Small edit: (not a debian or python fun here)
With my current version of your raspv8.rar (debian_version=8.0 & python:armhf/jessie 2.7.9-1) I needed to make a small change in mat.py:
Replace
endian=Endian.Big
with
byteorder=Endian.Big,wordorder=Endian.Big
or an error for "unexpected argument 'endian' " is thrown
Thank you, great video!
I am not sure if you could guide me with this or not. What is the difference between M-bus and Modbus? Is there any example on how to use mbus on raspberry pi? Thanks for the video anyway
You can read more about m-bus vs modbus here: meters.co.uk/m-bus-vs-modbus-difference/
DIY Tech & Repairs nice one. I have a Secure Liberty 100 meter installed at my property but I don't see any RJ11 or RJ45 or any sort of terminals to read it from. Have you ever come across it before?
there is error in the line 21 "SELIAL = 'dev/ttyUSB0' while my device connected with pi board and showing in the terminal. what will be reason ??
Really interesting! And great work, man!
hi , I am current working on the same . However I am not good in python programming can you give me some input point for it . So I can make my communication through.
Can you give the Python Code file .It will be very helpful fr me to learn the coding part.
I assume you''d be pushing this to influxdb or something. I would also put flask module so you can query it remotely if needed
Phizicks u can push it to whatever you want :) i run it in graphite and influx depending on system
Hi, great series. Checking through all your vids. Question, do you know how fast your modbus setup is polling your meter? I.e how many measurements do you get per given time unit?
Im polling 2 times a second. I can change it to whatever i want kind of. Depending on speed of bus and length. Some values on it is said to update every 6th second while others more often than 1 second. Im not sure how often though. 2times per second works for my purpose. Im avg those values so i do changes every 3 seconds based on it.
@@DIYTechRepairs hi, can I have your email address, I need to ask you a couple of questions. Tnks.
@@synclaire7489 Contact details can be found on My about page on youtube
You have lcd connected to RPi. What HW did you use for it?
hi, can it be operated with the sdm230-modbus?
1. The polarity of a single phase connection is irrelevant. Try flipping the Schuko plug ;-)
2. The RS485 cable must have 120Ω impedance, be shielded, and have the shield connected, both ends. An excellent cable is a pair from a normal Ethernet network cable. Cheap and easy to find.
3. Termination being supplied in both ends is not optional. Fully agree on the need to check whether devices have built-in termination -- RTFM is essential.
4. Make certain your Pi has a good ground connection, or there might be fire.
Thanks for showing
Great Video. Is it possible to monitor a 3 phase supply using SDM530?
yes
nice video....Is it enough to run your code in the raspberry pi or should i import some other things too?
It is enough I think. If not you get errors stating whats missing :)
@@DIYTechRepairs how do I get in touch with you?...cause I'm pretty interested in this and am planning to set it up in my home.
@@syedabrar3728 Contact details on RUclips about page.
You can plug this into a wall socket? Where did you get the plug? Also where did you get the lamp?
Thanks for making this video :)
Eugene Xie this device for din mount in electrical central
Do I have to install a driver or something like that to use RS485-USB with Pi? If yes please suggest
me ?
No driver since it just ends up as a usb unit.
Is it possible to use single phase energy meter?
Sdm120 yes it is. :)
i can pull voltage, current, power, etc from 3 phase power meter. but the data is different with the displayed data.
anybody knows how to calculate exactly
Different in what way? Mine is the same....
Great stuff, I'm currently looking for a way to read modbus over TCP IP for testing purposes. I currently use a PC and Windows, but I'm hoping it will be an easy enough job to use a Pie. Thanks again.
Can multiple devices be read from a single Modbus to USB converter?
Yes
@@DIYTechRepairsThanks for the reply, can you link me some documentation on how to connect and read them. First time learning about Modbus.
@@arapozor its open on internet. Just google sdm630 modbus and you should find it :)
can we measure the "amperes data" by using this energy meter SDM630?
Yes
@@DIYTechRepairs Thank You!
How to extract meter readings data into csv on raspberry pi local storage? please help me out..
You need a script that polls the device and then write into a delimited file. You can find example code on internet for fetching the data. If any exist that do what you want i dont know
Question: is there a way to simulate a modbus signal? Thanks!!
Yang Cao Most likely.
nice job!!!
nice video. can you give the python code with just print statement which can just print the result and save them in text or csv files?
Nice video !
Someone have ISO immage for raspberry? the link in linked page doesn't work
Hi, how much power could pass trhu this meter ?
The limit for SDM630 is 100A per phase.
Great Video. Is it possible to write it into a text/csv file? How can I buy your source code?
contact me, i will give you source code and can give you training.
gday deromer, can u run the image file on orange pi zero h5?
OffGrid Aussie Prepper™ no. it wont work on orange pie. they use different stuff im afraid
yep thats what I thought, I cant even load up debian on the crap, it will only load android 5.1 molly from the onboard chip and ignores the op system on the sd card. It took me 3 hrs to change it from chinese to english and then I couldn't get into the settings again. Maybe I should sit a hammer next to it...lol
i am coming across a problem. when i run command
python mat.py
it gives me following error
file ''mat.py'' , line 7, in
import paho.mqqt.cliet as mqqt
please help me how to get it right.
and also i cant connect to the wifi... :(
Yeah it is due to that the last ISO is missing that upgrade of some reason. Run this: sudo pip install paho-mqtt; sudo pip install pymodbus;
Thanks alot for your reply. But I cannot connect to wifi also . I dont know why. So if i dont have wifi how i can install it?
Using raspberry PI 3? Latest ISO? Have you wired connection and or a screen/keyboard and followed Raspberry PI normal setup procedure?
I am using ISO you provided on your website. I downloaded it from there. I am using Extra LCD screen and keyboard and mouse for the raspberry pi. I have raspberry pi model 3.
If you cant reach the Wireless im not sure whats wrong. It works fine for me and others. Did you follow the Video for it? And got latest version?
can setup samline rate at 20kHz?
Doubt it. 20000 Times per second is Hard to do here but i Guess the datasheet Will tell.
I have all the same hardware for this to work but I´m certatinly not a programmer so I would like a video that is a bit more easy on how to set things up so that it works, right now I just get a bunch of error messages when i try: cannot send to mqtt deamon, problem with graphite... Otherwise its fun to follow you videos! Thanks for putting them out!
Im not sure in what part you get errors? Are you using my Iso?
Yes I´m using your iso! It´s when I start the python mat.py, all the data from the sdm630 shows up on count 2 but it stops right away and says: cannot send to mqtt deamon and problem with graphite. Obviously I´m doing something wrong in the setup, but I can´t figure out what since I´m a complete noob!
Im not sure whats wrong. If you used the ISO it should work if the guide is followed. A new version will be released 22nd. With alot of improvments. You can also pm me if you want me to take a look at the script for ya
Now I have it running! I had by mistake typed a single s in the script where it should not be! Now it´s just the grafana part left to learn for me! Looking forward to see the new version, appreciate your work, thank you!
Filip5025 I am using standard ISO and using your code but when I use cd /energy-logger
It is giving me error
No such file or directory
does this work for lattepanda?
What is that?
@@DIYTechRepairs cause im working on a project that I want to show the energy readings from Modbus rtu Iec62053-21on a GUI. its like a mini motherboard
great great
Translate?
İsmail DOĞAN what?
Hello there. There were subtitles in other videos, but these videos do not exist and I do not understand what they say. :)
I havent added subtitles to any video though :) I have enabled so users can add if they want. Not sure how RUclips subtitles work...
I think auto subtitles are being added. I will wait and watch again.
please sketch em python
No thanks. I dont know enough Python