Тёмный

Eastron SDM120 single phase modbus energy meter 

Csongor Varga
Подписаться 37 тыс.
Просмотров 69 тыс.
50% 1

Опубликовано:

 

25 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 121   
@randomstuff-pt8fx
@randomstuff-pt8fx 2 года назад
I was following your video to set up an SDM120 (firmware v0202.04) and found while trying to get in into set mode (long press on the button) that the Id Digits started to flash and a short press increased the value while a long press moves to the next digit. I managed to change Modbus ID, Data Rate and Parity to work with the rest of my system (2x SDM630s). If you need to change other settings then you will need to go through this video in full and work out the register addresses etc. Nevertheless I found this video to be the most useful out of all the ones i tried so well done and thank you.
@madeinbavaria
@madeinbavaria 2 года назад
the data word conversion in nodered function was very useful for me, thanks!
@MH-ie1sg
@MH-ie1sg 5 лет назад
Thanks for taking the time to explain all this in layman's terms. I'm a beginner with Raspberry Pi and node red so it's a bit of a learning curve for me. But your videos are very helpful so thanks for that. Much appreciated!
@reneradojcic
@reneradojcic 8 месяцев назад
Saved me a lot of time, thank you sir! Works also on SDM230 device.
@regiiphalange
@regiiphalange 5 лет назад
It's well structured and amazingly explained. Thank you so much.
@JeroenVissers
@JeroenVissers 4 года назад
Thank you for making this video and posting the flow. I got stuck on the conversions, and your video and flows helped me out
@csongorvarga
@csongorvarga 4 года назад
I used my very own flow in my friend's setup and it is not working. Must be a rookie oversight, I hope I get un-stuck soon :)
@DjTherano
@DjTherano 6 лет назад
I tried with the SDM230.. it works fine Thanks a lot for this helpful video
@gioraver
@gioraver 7 лет назад
thanks a lot for taking time to share this valuable info
@arvidgrenman8170
@arvidgrenman8170 3 года назад
Thank you for your effort making such a good educational video!
@erkivaba6748
@erkivaba6748 2 года назад
nice video! it was very helpful.
@chrismason4148
@chrismason4148 2 года назад
I'm trying to do exactly what you are showing, changing the baud rate, but I can't see what you are doing. Can you please give a test explanation of the steps after connection to the unit?
@hotswapster
@hotswapster 6 лет назад
Hey I've just made this work with the TE748 meter with a few tweaks. Thanks!
@brianhanrahan1980
@brianhanrahan1980 5 лет назад
Great post thanks so much for sharing your code, make it simple to learn this stuff.
@myreset7817
@myreset7817 5 лет назад
Really cool man! You saved my day!
@jdaniele
@jdaniele Год назад
WOW, fantastic tutorial! Thanks for sharing. Thumb up and subscribed! Just a question: how much is the minimum current that the SMD120 is able to detect?
@csongorvarga
@csongorvarga Год назад
It does not say. I think under 10W is goes not really detect anything, or unreliable. It has a 45A limit, and assuming a 12bit DAC that is 40mA resolution.
@jdaniele
@jdaniele Год назад
@@csongorvarga Ok, thanks a lot!👍
@5T3F4N_I
@5T3F4N_I 3 года назад
Excellent video, sorry if missed it, but does it have any kind of protection? in case of short circuit possibly?
@apichetnakbanlang1900
@apichetnakbanlang1900 3 года назад
Thank You Very Much.
@Whereswally606
@Whereswally606 4 года назад
I just got a node-red flow with a sonoff basic running tasmota with win10 and mosquitto as the mqtt broker/server. Was struggling for ages before realising two things one, my mqtt server was on a work computer with locked down firewall settings which prevented the sonoff talking to the mqtt server. when i moved the server to another (non work) win 10 box i still have the same error MQT: Connect failed to 192.168.1.***:1883, rc -2. Retry in 10 sec. This was because in the mqtt configuration on the sonoff tamota webpage i had put http:\\ in front of the ip which it didn't like. Anyway i have that working so now i can hopefully move onto getting my sdm120ct working on my main power of my house to measure the export of the solar and turn on the car charger and other loads when there is a big surplus. Wanted to say thanks for the video & the attached flow. very very helpful.
@darrenfong3171
@darrenfong3171 4 года назад
Hi there, great video. May I know are you using a normal cable for the RS485 connection?
@csongorvarga
@csongorvarga 4 года назад
Yes, I am using 2 wires from an ethernet (CAT5) cable. One of the color - color/white pair which are already twisted together in the network cable.
@fajarmuhammadnoorrozaqi3005
I am sorry, may I ask you question? Is this Eastron SDM120 using CT (Current Transformator) in this case?
@csongorvarga
@csongorvarga Год назад
Internally, it may be using that, but I am not sure. The unit has a live in and live out terminals, so there is no external CT required. It has to be wired into circuit.
@atvsteam
@atvsteam 7 лет назад
Great project Csongor! Is there anywhere available image of SD card for Raspberry Pi 3 with all the installations needed to run your project ?
@csongorvarga
@csongorvarga 7 лет назад
climbing and moutaineering Thanks, sorry but there is no such image.
@PaisitW
@PaisitW Год назад
To change baud rate to what I want, I tried to long press to enter setup mode, what I got is only to setup CT number. By the way I did not connect to anything yet, just standalone SDM120. Once I can set baud rate to 2400, I will hook up to EW11 (TCP RS485). What's wrong?
@csongorvarga
@csongorvarga Год назад
You can set the BAUD rate as well. Check the documentation, holding register 21 is the ID, and holding register 29 is the Baud rate. But 2400 is the default.
@JorgeFrater
@JorgeFrater 6 лет назад
Hi! I used this with an XTM35SC and the only difference is that current is on address 8, watts is on 18, Hz is on 54 and kWh is on 256
@csongorvarga
@csongorvarga 6 лет назад
Thanks for sharing!
@timos144
@timos144 5 лет назад
Can you share your code? On my xtm35sc only voltage and amp worked. timostempmail@gmail.com
@mariusrudolf8656
@mariusrudolf8656 3 года назад
excellent work! Everything is working fine also with a SDM230. But I have big troubles to save the data of the modbus in a csv file. Can you help me there? or show me a video where I can orientate? Best regards
@ChristianHolzer-l3p
@ChristianHolzer-l3p Год назад
how did you figure out to "convert" the 2 values from the array to get the actual i.e. voltage value? you absolutely safed my day with this!
@csongorvarga
@csongorvarga Год назад
In the documentation it was mentioned that it is IEEE float value (or something similar). I just Googled it and fortunately found a javascript example how to convert it :)
@ChristianHolzer-l3p
@ChristianHolzer-l3p Год назад
@@csongorvarga thx! my son suggested I should ask chatGTP what the code does, and I kid you not, it was actually helpful. I did not know that the low and high values are 2 16bit integers that have to be converted to a single 32 bit float. now it makes much more sense. :)
@csongorvarga
@csongorvarga Год назад
@@ChristianHolzer-l3p Oh yes. These are the two examples I have seen so far: 2 16 bit registers used to represent a float number, or the actual number is multiplied by 10 to 100 to represent a float number with 1 or 2 decimal places.
@Pauldeva
@Pauldeva 5 лет назад
HI there, I do Click by Click from your example, but there is no ModBUS output, (on windows all si OK), but on Node-Red Modbus connect and poll at 5 sec and read but don`t have any output. I Have a SMD120M EASTRON (ID30/9600) to TTL to RS485 HW0519 to CP2102 USB to RPi3+ Please advise what to do next or were to look TNX
@Pauldeva
@Pauldeva 5 лет назад
tnx anyway, i found a simple way for me >> SMD120 < ID1/9600> +TTL to RS485+ ESP8266 (D1mini) with Tasmota Version 6.4.0(sensors) to mqtt BUT YOUR VIDEO IS THE BEST TO SET UP SMD120
@csongorvarga
@csongorvarga 5 лет назад
Sorry for not seeing this before. Sometimes I also have similar issues with the modbus component in Node Red. What I have found that sometimes I need to change the modbus configuration for example set to buffered and back and re-deploy the flow and it starts working. I am not sure if this is an issue with the modbus or the serial node. But I did not know that Tasmota works with SDM120. That is very good to know!!!
@Pauldeva
@Pauldeva 5 лет назад
@@csongorvarga tnx for replay
@herbert7250
@herbert7250 5 лет назад
Great tutorial. I have purchased two of these also. Can you show how you connected the modbus wiring? Did you add your own 120ohm resistor to terminate the bus? I have not heard you mentioning this in your video?
@csongorvarga
@csongorvarga 5 лет назад
I did not use any termination. Just two simple wires and that is all. If the units dont communicate I just swap the wires.
@herbert7250
@herbert7250 5 лет назад
@@csongorvarga Ok, will try that. Perhaps the length of the bus connection does make me need to use a terminator resistor (at the last device of the bus). I'm planning to connect more Modbus enabled devices to the same bus with up to 50 meters of total bus length which makes the influence of reflections larger. This is probably not an issue with a desk setup.
@matthiasneuhaus4024
@matthiasneuhaus4024 Год назад
Thanks for the good tutorial! Is there also a possibility to set the initial total kWh?
@csongorvarga
@csongorvarga Год назад
I was trying to reset myself, but did not find that function either. So I am pretty sure you cannot set initial. Although it would be great when swapping meters.
@matthiasneuhaus4024
@matthiasneuhaus4024 Год назад
@@csongorvarga ok, that's sad. thanks a lot for your fast reply!
@scottlees5178
@scottlees5178 7 лет назад
Any info on the temperature/humidity module being used? I have looked all over and can't find a manual
@csongorvarga
@csongorvarga 7 лет назад
Yes, I do have a video on that as well: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-tgLTkWAz5Is.html
@andreashocke7313
@andreashocke7313 Год назад
Thanks!
@johantoday
@johantoday Год назад
I just found out that the new SDM120M meters that i bought with software version 202.04 can be editted on the device itself. For example: to change the slave id: hold the set button, go to the ID field, and hold again. The ID field can now be adjusted.
@mlchaia
@mlchaia 7 лет назад
Thank you for the explanation
@joerivankallo
@joerivankallo 7 лет назад
Very useful video! I'm starting my own project for displaying the active power generated by my PV. But I'm wondering what's the accuracy of the Energy data. Is it 1Wh accurate, or 10Wh? I searched the internet (not entirely off course) , but could not find the answer... The voltage looks very accurate (more than 5 decimals).
@csongorvarga
@csongorvarga 7 лет назад
Documentation says power and energy readings accuracy is 1% of range maximum
@joerivankallo
@joerivankallo 7 лет назад
Csongor Varga Thanks, but that was not what I meant. What I meant was the 'Long' value of Energy, how many decimals does it have? Meaning accurate in 0,001Wh or 0,01Wh or 0,1Wh?
@csongorvarga
@csongorvarga 7 лет назад
Uh, I have no idea to be honest. Check this if you can make a sense of it: en.wikipedia.org/wiki/Single-precision_floating-point_format
@joshpereira2130
@joshpereira2130 6 лет назад
Please visit our Eastron Europe Sales Office - www.eastroneurope.com/ or for prices please email josh.pereira@eastroneurope.com
@Minionlovergirl
@Minionlovergirl 2 года назад
where did u purchase the rs 485
@PierreScerri
@PierreScerri 5 лет назад
Excellent video. Watched it several times. Every time i notice something I've missed. I have set your flow up for 2 devices. SDM120 and SDM230. It's was working but I was getting 'FSM Reset On State INIT' and 'FSM Reset On State QUEUEING' in the debug pane on all Modbus Read Nodes all the time. I have set the poll rate to 15s. Sometimes , after making some modifications, it just refuses to kick off. The Modbus Read Nodes cycle 'Initialize - Reconnecting' over and over. When I click any one of these nodes I get 'FSM Not Ready To Read On State INIT' What am I missing?
@PierreScerri
@PierreScerri 5 лет назад
Restarted Hassio and Node-Red it is now working. Still getting 'FSM Reset On State QUEUEING' all the time though. Is this normal?
@csongorvarga
@csongorvarga 5 лет назад
I also get this from time to time. Seems like the modbus modul cannot initialize itself after certain changes. Try making some changes in the serial configuration. Change RTU to RTU-BUFFERED or back and deploy again. This is the only way I managed to get it working. Otherwise find this contrib-modbus on githuf and raise an issue there. I got a response within a few days when I initially had modbus issues in Node Red.
@PierreScerri
@PierreScerri 5 лет назад
Thank you for your reply. I'm happy with the result. At least my HA log is not being flooded with 'No response' errors from the Modbus component.
@TizianoWIFI
@TizianoWIFI 2 года назад
hi I noticed that it detects the active power not accurately. how do you know can calibrate poer well?
@csongorvarga
@csongorvarga 2 года назад
Sorry, I have no idea.
@flokyshah5877
@flokyshah5877 5 лет назад
Hi, the data you are are getting at 45:17 is free or is there some kind of subscription? sorry i am a layman.
@fm000184
@fm000184 6 лет назад
Following your video, I have tried to set my SDM120 to another meter ID to allow for more than 1 meter on the bus. I now get ID 000 on the display and am unable to talk to the unit. Any ideas to reset the meter ID to factory (or any other ID) when it says ID 000 ?
@csongorvarga
@csongorvarga 6 лет назад
First you need put one SDM120 on the modbus line and change the slave ID. You do this one by one. Set one of your SDM120 to slave 10 and the other to for example 11. I have covered this in the video. I was changing the slave ID around. Once you have both of them on a separate ID you can talk to them on the same bus.
@fm000184
@fm000184 6 лет назад
Once the ID of the SDM120 is 0 (due to input or comms error) the Modbus poll cannot communicate with it anymore as the software refuses ID 000 as a valid modbus ID. I had to download "Simply Modbus Master" tool - this tool will actually talk to any ID and I was able to reset the meter to another ID. But now everything is up & running. Thanks
@csongorvarga
@csongorvarga 6 лет назад
Great, I am glad you got it working.
@alexeys8650
@alexeys8650 6 лет назад
Great video! Could you explain how you connect sdm120 to raspberry pi. Did you use some converter? Which device from right side of sdm120? I try to connect sdm220 to raspberry pi which runs openhab by using of rs485 to usb converter from ali. So far no success.
@csongorvarga
@csongorvarga 6 лет назад
I have a USB to RS485 converter. I did not have an issue with it. I plugged it into the RPi, I could see the device in the usb device list. I got it ages ago, and quite frankly I forgot where I bought it. When i run "lsusb" on the PI I can see it as a USB device. Maybe yours is using a FTDI chip which does not have a driver preinstalled in linux? Sorry I am just guessing here.
@mlchaia
@mlchaia 7 лет назад
I have tried with easyLogic PM1200 but I didn't succeed.could you help me It shows this "msg : error "Error: Modbus exception 2""
@csongorvarga
@csongorvarga 7 лет назад
I don't have a PM1200, nor I have any information about it. I don't know how to communicate with that device.
@mlchaia
@mlchaia 7 лет назад
thank you for your respond maybe this could help! drive.google.com/file/d/0BxcP44hsRbQiVDZPa1BUNi1zVUE/view?usp=sharing drive.google.com/file/d/0BxcP44hsRbQiVVFtU3dsQ0VsdWs/view?usp=sharing
@mlchaia
@mlchaia 7 лет назад
now it is work but I getting wrong value drive.google.com/file/d/0BxcP44hsRbQiTWc2Rm1IQ29OTmM/view?usp=sharing
@elaatermohamed4961
@elaatermohamed4961 5 лет назад
@@mlchaia please can you share your code with me atirosmohamed@gmail.com
@lizyates9954
@lizyates9954 2 года назад
Does anyone know how to find the meter serial number for this?
@manishshah4040
@manishshah4040 4 года назад
HI, thanks a lot for this amazing video It has helped me a lot for making troublee shooting app in node red. But I have little trouble. When I am sending this data to azure Iot hub and stream analytics, it says some data format error. Can you update your flow and show us how online streaming works with azure stream analytics? Thanks in advance.
@apexLT
@apexLT 6 лет назад
Is it possible to reset to zero total consumption (kWh) ? Trying to find any 18mm wide meter which can be reset. 36mm - can be reset. How about this one?
@csongorvarga
@csongorvarga 6 лет назад
Very good question. I did not find it in the documentation. Maybe drop them an email, they seem to be very helpful.
@joshpereira2130
@joshpereira2130 6 лет назад
Hello if it is a MID meter it is not possible to change due to billing legalisation - Please visit our Eastron Europe Sales Office - www.eastroneurope.com/ or for prices please email josh.pereira@eastroneurope.com
@cypher10297
@cypher10297 5 лет назад
How can I set zero export in SDM630? How should I connect to my laptop? Please help!
@csongorvarga
@csongorvarga 5 лет назад
I don't think these units can be set to zero. They start counting the consumption and those counters are not resettable. You can connect to your laptop using a USB to RS485 converter.
@Luis-wf8cn
@Luis-wf8cn 6 лет назад
Hello, I'm trying to connect with a sdm120ct through the computer but when I do poll I got no responses. I'm using a MAX485 connected to the sdm120ct (B-9, A-10, GND-GND) and the max485 connected to the pc as well using a USB-TTL converter (DI of max485 to the TXD of the converter, and the DE and RE of max485 connected to VCC). Thats the way you did it? I'll be pleased if you can left some comments on this. Thank u.
@csongorvarga
@csongorvarga 6 лет назад
I used a USB-RS485 converter, so I did not have to deal with TTL-Max485 connection. My only issues is if I mix the A, B lines, so if it does not work, I swap them around. But I would not be able to tell if you have wired the MAX485 incorrectly.
@Luis-wf8cn
@Luis-wf8cn 6 лет назад
did you only connected the tx- to pin B of the sdm120 and tx+ to the A of the sdm120 with your converter and that was all?. Thanks for the reply :)
@csongorvarga
@csongorvarga 6 лет назад
Yes, there are only two wires between my USB-RS485 converter and the SDM120.
@Luis-wf8cn
@Luis-wf8cn 6 лет назад
thank you so much, great video. Thank you for share it.
@Luis-wf8cn
@Luis-wf8cn 6 лет назад
Have you used ESP-7 with the sdm120 as well?
@aguegu314
@aguegu314 7 лет назад
Does the meter require a transformer to work? I wish you can show us how the wire connected. It is not so clear in the video.
@csongorvarga
@csongorvarga 7 лет назад
Yes, I missed that. But it is really simple. You connect mains power live and neutral. The power supply is inside. There is a neutral connection and a live in and live out. That's all. And that you have two separate wires for modbus.
@aguegu314
@aguegu314 7 лет назад
Csongor Varga thanks, I have seen other applications and figured it out. I am curious about what socket #5/6/7 connect to. I have ordered two for myself. The sales told it should work with a transformer. I wonder maybe it is #5/6/7 all about. I have read through the manual. It mentions pulse 1 and 2 stuff. I do not know what it means and how it work. Maybe another usage case for the transformer too.
@csongorvarga
@csongorvarga 7 лет назад
Yes, those are for pulse 1 and 2 (plus common ground). Pulse 2 is fixed to give a pulse for every total KWh, pulse 1 can be configured for KWh or KVarh and 1, 0.1, 0.01 or 0.001 units.
@aguegu314
@aguegu314 7 лет назад
Thank you. So #5/6/7 are pulse 1/2 and can output its data in an old way. I see what my problem is. There are two models of sdm120. one can connect to core directly: detail.1688.com/offer/40026832563.html one works with a transformer detail.1688.com/offer/40012049159.html the transformer looks like: www.eastron.com.cn/product/60465050756-218696762/EASTRON_ESCT_TU36_Split_Coil_Current_Transformer_20A_600A_Input_333mV_and_100mV_Output.html?spm=a2700.8304367.prewdfa4cf.103.6961ddf1IXxQzv I think what i need is the direct one. But maybe I just ordered the first one shown up. And the sales issued a double check.
@joshpereira2130
@joshpereira2130 6 лет назад
@@aguegu314 Hello we have a CT version of this Please visit our Eastron Europe Sales Office - www.eastroneurope.com/ or for prices please email josh.pereira@eastroneurope.com
@atvsteam
@atvsteam 7 лет назад
How to add 2nd SDM120 (one for PV, one for Grid) plus few DS1820 sensors on to the same web page?
@csongorvarga
@csongorvarga 7 лет назад
When you add a new UI element on the dashboard you specify the group the element goes into. The group than refers to the tab on which it appears. Just make sure the group points to the same tab and they will appear on the same page.
@atvsteam
@atvsteam 7 лет назад
Thanks for your kind help, these are my first steps in Node-red. What node do you use for DS1820? Any example code?
@csongorvarga
@csongorvarga 7 лет назад
Sorry, I don't know. If the DS1820 are also modbus, you need yet another Modbus Read node to read the DS1820 sensor. I am assuming you have set them to different station ID. Just read it with another modbus read node.
@atvsteam
@atvsteam 7 лет назад
There is one show at 45:12 min on your video. DS1820 temperature sensors uses 1-Wire protocol and have own unique ID number (that must be found out). I'm not sure if I could connect them directly on to Raspberry Pi I/O bus ? datasheets.maximintegrated.com/en/ds/DS18S20.pdf
@csongorvarga
@csongorvarga 7 лет назад
If you are using raspberry pi you must have the Raspberry PI node group in your node red. In that group, there is a "rpi ds18b20" node. That node will give you all your DS18B20 sensor values in an array. Just use one of the guides on the internet how to wire them to the pi.
@elaatermohamed4961
@elaatermohamed4961 5 лет назад
Hello bro thanks for your video, it was very very helpful to me, thank you so much, i'm actually working on a similar project and i have a small problem as u know the energy is accumulated in a single register and i want to specify how much energy is consumed in a spécifique day, i wish if you could help me with this please !!
@csongorvarga
@csongorvarga 5 лет назад
Well, you can't do it on the device. You can build a flow in node-red to store the consumption at midnight and that calculate the difference with each update.
@elaatermohamed4961
@elaatermohamed4961 5 лет назад
@@csongorvarga thank you sir for your precious information, but i'm just a beginner with node red and i don't know how to work with time conditions I've spent about 2 weeks looking for a way to do that, i don't know if you can an exemple of this function please !
@myozone
@myozone 6 лет назад
Do you of a Modbus to MQTT using a ESP8266 as a gateway ?
@csongorvarga
@csongorvarga 6 лет назад
In this case, I am reading the modbus directly in PI over the serial line. But I have an application in mind for the MQTT gateway.
@myozone
@myozone 6 лет назад
Great, I'll look forward to it !
@martinverbaas
@martinverbaas 4 года назад
Did anyone try get this working with Solaredge HD inverter?
Далее
А вы знали что металл тонет?
00:32
UFC 308: Пресс-конференция
35:18
Просмотров 489 тыс.
Playing with: DDS238-2 Zigbee Smart Meter
23:15
Просмотров 13 тыс.
Wifi Energy Meter DDS238 - Stripdown and First Use
19:10
An Introductory QGIS Workshop for Beginners
3:49:41
Просмотров 551 тыс.
Measuring conducted emissions with LISN
19:44
Просмотров 1,1 млн
How to use a multimeter like a pro! The Ultimate guide
28:43