ESP8266 to monitor your electricity with SDM meters

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 มิ.ย. 2024
  • Build of ESP8266 to monitor your electricity with Modbus meters like SDM630 or 120
    -- More information below! --
    More information to be found on my webpage:
    diytechandrepairs.nu/esp8266-t...
    There you find the drawing including the list to get
    Easy checkout ebay: (Aff linked)
    ESP8266 ebay.to/2CWIbxD
    TTL to RS485 converter ebay.to/2Pbq9gY
    SDM630 or 120 ebay.to/2OBMLI0 ebay....
    5 V din rail PSU ebay.to/2q573Ld
    Silicone wires ebay.to/2q4oHyY
    -------------------------------
    Do you want to support my channel? Below links cost you nothing to use:
    Complete list of recommended stuff: diytechandrepairs.nu/complete-...
    Ebay: goo.gl/PwRR68
    Amazon: goo.gl/VSU4YH
    Amazon store www.amazon.com/shop/influence...
    Banggood goo.gl/fcCjJ5
    Gearbest: goo.gl/tay4J6
    Patreon and Paypal:
    / diytech
    paypal@romer.se / www.paypal.me/diytechandrepairs
    Become a Patreon?
    / bqxpyp
    Manage your youtube videos like I do? Use below
    www.tubebuddy.com/DiyTechandr...
    ---------------------------------------
    Links to my site and current solar layout:
    diytechandrepairs.nu/current-s...
    / diytechandrepairs
    www.diypowerwalls.com/t-Espery...
    Steemit if you want to read more!
    steemit.com/@diytechandrepair
    DIY powerwall forum: goo.gl/Hfr529
    --------------------------------------------------------------
  • แนวปฏิบัติและการใช้ชีวิต

ความคิดเห็น • 95

  • @conradfuller6697
    @conradfuller6697 5 ปีที่แล้ว +1

    Thank you Daniel, very interesting.

  • @electronic7979
    @electronic7979 5 ปีที่แล้ว +2

    Excellent project 👍

  • @MauroSedrani
    @MauroSedrani 5 ปีที่แล้ว +1

    Great job!

  • @jordibarenys3981
    @jordibarenys3981 5 ปีที่แล้ว +1

    Thanks a lot.

  • @throttlenerd
    @throttlenerd 5 ปีที่แล้ว

    Brilliant!!

  • @oldtimeengineer26
    @oldtimeengineer26 5 ปีที่แล้ว +1

    Thanks

  • @batterydiy7297
    @batterydiy7297 5 ปีที่แล้ว

    Excellent, like always thanks a lot. Really useful, I was thinking to buy the emonPi but the number of sensors are limited by two and even with the EmonTx is limited to 6 and thats all ... Grafana will present data really well at the end

  • @sajjad3
    @sajjad3 5 ปีที่แล้ว

    very useful

  • @adriansierramartinez7516
    @adriansierramartinez7516 2 ปีที่แล้ว

    Genius!!!

  • @chia_se_moi_thu
    @chia_se_moi_thu 3 ปีที่แล้ว

    I like your theme, wish you could help me make an interface like this !!!

  • @frankz1125
    @frankz1125 5 ปีที่แล้ว

    Hey D hows the solar system doing? Can you give us an update?

  • @locle5227
    @locle5227 3 ปีที่แล้ว

    Hi, I have a power meter but it does not mentioned the protocol on the manual user, only RS485 port. How can I read data from device ? Could suggest me the idea

  • @SalvatoreDePascali
    @SalvatoreDePascali 2 ปีที่แล้ว +1

    Hi I learning a lot of staff from you. I try the code that you mention on Arduino and for me is not working any advice? thank you

  • @bowlingc69
    @bowlingc69 5 ปีที่แล้ว

    Excellent videos... learning a lot of staff from you.The InfluxDB, is that a IOT Platform or a Dashboard? Is where you can see the monitoring of the meters or you visualise them in another platform?Thanks

    • @DIYTechRepairs
      @DIYTechRepairs  5 ปีที่แล้ว +1

      Thanks, InfluxDB is a database that store Time series data. I use that to store data for visualization. To visualize the data I use merely Grafana or other tools from the Tickstack.

    • @bowlingc69
      @bowlingc69 5 ปีที่แล้ว

      So Grafana does not store data, is just visualisation for dashboards?On my system I will be using the ESP8266 with MQTT that will trigger an SSR for the heater. I would like now to visualise my system over the cloud but at the same moment also keep historical data. Thought to link the Thingboard to the ESP82 ? Is that a good set up?Thanks

  • @MIKE-il6mu
    @MIKE-il6mu 4 ปีที่แล้ว

    Thank for your time and effort. I have a few questions. On your video you tested the sdm with one phase only. Did you go on to test the single phase with a higher current draw and did all the parameters have readings?
    Also where I am is 110/220 50 Hz. Split phase. If I connect just two phases and neutral would the meter work ok.
    Lastly can the sdm 630 work with ct.
    Thanks again

    • @DIYTechRepairs
      @DIYTechRepairs  4 ปีที่แล้ว +1

      The sdm dont dont do Ct. No it need neutral and yes it works. In My videos you can see that i use 4 of Them. Thanks

  • @CesarDanielLopez
    @CesarDanielLopez 5 ปีที่แล้ว +1

    Successfully sdm230, thanks Daniel

    •  4 ปีที่แล้ว

      Did you use a 120 Ohm Resistor for terminating the modbus?

    • @LordGeva
      @LordGeva 4 ปีที่แล้ว

      Is it needed when using only one SDM230?

    • @CesarDanielLopez
      @CesarDanielLopez 4 ปีที่แล้ว

      @ yes

  • @josephtanner248
    @josephtanner248 3 ปีที่แล้ว

    Very interesting! I would like to read also my powermeter from my solarcells. Could I get the sketch you used for Serial Modbus RTU to get data out of the SDM meters? I bought the TTL to RS485 converter because I had problems with the USB converter.

    • @DIYTechRepairs
      @DIYTechRepairs  3 ปีที่แล้ว

      You can find it on Github via the links. Or if you only have 1 meter its easier to run tasmota!

    • @josephtanner248
      @josephtanner248 3 ปีที่แล้ว

      @@DIYTechRepairs Thank you, I found the link to daromer2/SmartHome. There are alot of lib's. I want to read out 4 modbus RTU powermeter by rs485. Finally the data will be sent by mqtt. My first goal would be to be able to read the modbusPowermeter. Would ESP8266CO2PM25.ino would be the one?

    • @DIYTechRepairs
      @DIYTechRepairs  3 ปีที่แล้ว

      @@josephtanner248 THe code i used use alot of old libraries so its a big mess to get going. I tried recompile it with newer but never got it working im afraid

  • @myozone
    @myozone 5 ปีที่แล้ว +1

    Here in the UK we're not allowed to do anything in the fuse box (consumer unit) unless you are qualified - that's the official line ... ;-)

    • @ursodermatt8809
      @ursodermatt8809 5 ปีที่แล้ว

      same in australia

    • @DIYTechRepairs
      @DIYTechRepairs  5 ปีที่แล้ว

      Its same here. Unless you have approval you are not allowed to do any changes without someone approving it! So as always stay legal :)

    • @DIYTechRepairs
      @DIYTechRepairs  4 ปีที่แล้ว

      @Mircea your not approved to open the box here and add anything . Yes Clamp on outside is ok but sdm is not a Clamp.....

  • @chia_se_moi_thu
    @chia_se_moi_thu 3 ปีที่แล้ว

    Yes, I mean a power meter, my inverter doesn't have a power measuring LCD screen and calibration buttons like some other inverters, but it has a WiFi adapter that plugs into the RS485 port, however the This parameter updates every 5 minutes, so I see you doing this or I plan to replace what is

    • @DIYTechRepairs
      @DIYTechRepairs  3 ปีที่แล้ว

      Ok. The sdm type meters can be polled very very often. It updates many Times per second.

  • @keithcovington5420
    @keithcovington5420 5 ปีที่แล้ว

    I want to know where to buy the switches you talk about in your video on ATS???

  • @talle2029
    @talle2029 5 ปีที่แล้ว

    Hello DIY I've been watching you for years love your knowledge! Quick question I got a hold of your valence 12v batteries 4 of them! I only charge them to 13.2 volts they don't seem to like anything higher? I took 1 apart like you did in your video and each individual cell reads lishen valence 3.2v is this the maximum charge each cell can handle if so I would only be able to charge to 12.8 volts max because these batteries are in 4s right? They look identical to the black valence batteries you have. Please help me out with some advice I don't want to ruin the batteries, I just want to know is it ok to charge each cell past 3.2v if so what do you recommend? They are old batteries but they work fine so far! They say 14.6 volts max on top of the actual battery does this mean I can charge them to 14.6 that would be nice but I'm afraid to go past 13.2 I don't want to blow them up please help

    • @DIYTechRepairs
      @DIYTechRepairs  5 ปีที่แล้ว

      3.3v is nominal. Max Charge is 3.6 or 3.65v. i Charge max to 3.5

  • @guidodevrieze4301
    @guidodevrieze4301 2 ปีที่แล้ว

    Hi! Very interesting video! But the TTL => RS485 converter you use is not isolated. Are the modbus terminals of the SDM630 galvanically separated from the mains? Is that safe enough to trust? I can't find any safety data in this on the internet. So if anything goes wrong......will everything be connected to the mains which is hooked up to your ESP32?

    • @DIYTechRepairs
      @DIYTechRepairs  2 ปีที่แล้ว +1

      I got 4*630 connected on same modbus so i would Guess they are isolated.

    • @guidodevrieze4301
      @guidodevrieze4301 2 ปีที่แล้ว

      @@DIYTechRepairs sounds reasonable!

  • @edcarlosmeirelesdeoliveira4941
    @edcarlosmeirelesdeoliveira4941 3 ปีที่แล้ว

    Sketch Sorry, thank you

  • @chia_se_moi_thu
    @chia_se_moi_thu 3 ปีที่แล้ว

    Oh, thank you for the reply, unfortunately, I want to get the inverter's data out for monitoring whenever needed.

    • @DIYTechRepairs
      @DIYTechRepairs  3 ปีที่แล้ว

      This is not about inverter data but electricity meters ;)

  • @movax20h
    @movax20h 5 ปีที่แล้ว

    Just a question. Why modbus? Why not Ethernet? Would it a lot of cost to have Ethernet on ESP32 for example? Or is it more about worry of having extra bulkier cables and switches, where modbus can be done with a lot less cables and no switches, and just some bigbanging?
    Edit: Never mind, sdm230 already supports modbus / rs485, so it was obvious choice.

    • @DIYTechRepairs
      @DIYTechRepairs  5 ปีที่แล้ว

      The sdm dont do ethernet. They do modbus. And wifi i have everywhere

  • @ssl2928
    @ssl2928 5 ปีที่แล้ว

    Nice work! What's the refresh rate of the data you get from SDM?

    • @DIYTechRepairs
      @DIYTechRepairs  5 ปีที่แล้ว

      I poll every 2 seconds.

    • @ssl2928
      @ssl2928 5 ปีที่แล้ว

      @@DIYTechRepairs what's the highest possible sampling rate? every half second?

    • @DIYTechRepairs
      @DIYTechRepairs  5 ปีที่แล้ว

      @@ssl2928 dont know but the answer is in the manual. Its high... Many many Times per second

  • @whatevah666
    @whatevah666 5 ปีที่แล้ว

    HEya, is modbus the same as IEC 62053-1 (S0) ? I'de like to connect this solution to a ABB OD4165 to measure but i'm not sure if it will work with it. symmetron.gr/uploads/ABB_ODIN4165_ODIN4110.pdf

  • @nilobualoy117
    @nilobualoy117 5 ปีที่แล้ว

    Any MPP you can recomend for lithium ion battery with wifi monitoring?

    • @DIYTechRepairs
      @DIYTechRepairs  5 ปีที่แล้ว

      Dont know of any thta do that nativly

  • @bjarkegth9774
    @bjarkegth9774 5 ปีที่แล้ว +2

    Daniel, du styrer for vildt

  • @jamest.5001
    @jamest.5001 5 ปีที่แล้ว

    I need to find a cheap easy way to monitor remotely the electron harvesting. from my 2 charge controllers . and batt voltage , current, and basically what's going on. Batt temp would be nice. The actual cell temp. Since I'm using lithium ion. I have them arranged in 100 cell packs. I'd like to have a couple temp sensors in each pack. In case of a bad cell or just hot or cold weather. It does get 100 degees F here and below zero! I'd like keeping up with them. They aren't cheap. Have a idea of how I could do this easily??

    • @DIYTechRepairs
      @DIYTechRepairs  5 ปีที่แล้ว

      Batrium is One way. Or build with Arduino or esp

  • @NasVistas
    @NasVistas 3 ปีที่แล้ว

    Can i use the with M-Bus? or do i need to convert from M-BUS to Mod-Bus first?

    • @DIYTechRepairs
      @DIYTechRepairs  3 ปีที่แล้ว +1

      Not sure. M bus and modbus are different things as im aware but never worked with M-Bus myself. I was under impression Mbus is for meters in generall meanwhile Modbus is more like industrial PLC and meters like the SDM series

  • @gibsonmb1
    @gibsonmb1 4 ปีที่แล้ว

    Hi, your website does not appear to be responding. I wanted to go there to get more details on the code for this project. I’m new to this, have the SDM installed in an ev charger system and wanted to record charging data to monitor the costs of charging over time.

  • @chia_se_moi_thu
    @chia_se_moi_thu 3 ปีที่แล้ว

    Hi, I compiled a lot of errors with the arduino IDE, although I have inserted all the necessary libraries, can you help me compile it to a .bin file?

    • @DIYTechRepairs
      @DIYTechRepairs  3 ปีที่แล้ว

      They have changed alot of libs and therefore the code i have up doesnt work very well any more. I had same issues first time i compiled it. Some day... when i have time... i will revisit it and sort it but dont have that time today im afraid

  • @tonykuiper9127
    @tonykuiper9127 5 ปีที่แล้ว

    How do you get the code from the github link onto the esp8266?

  • @vladimirdvorak9262
    @vladimirdvorak9262 4 ปีที่แล้ว

    Hi, you're my inspiration. But I am not able to flash my esp8266 nodemcu. Arduino IDE returns many bugs. Missing files etc. Could you be so kind and share some instructions on how to do it? Thanks.

    • @DIYTechRepairs
      @DIYTechRepairs  4 ปีที่แล้ว +1

      That version is difficullt to get to work. I need to redo the code 100% im afraid

    • @vladimirdvorak9262
      @vladimirdvorak9262 4 ปีที่แล้ว

      @@DIYTechRepairs Thanks, Daniel. I will looking forward.

  • @gasd6542
    @gasd6542 5 ปีที่แล้ว

    Did you sell the locost?

  • @derwiemers228
    @derwiemers228 4 ปีที่แล้ว

    I've tried to flash your eastron sourcecode on my esp8266 nodemcu but theres just shown last seen date, mac adress and so on.
    How can i import the registers in my iobroker ?
    My rs485 modul is not blinking on tx or rx.
    Do i have to modyfi some files to show the registers ?
    Ive try that for 3 days, but i can't find some solutions :(
    I have 2 sdm360 meters
    One of that have the adress 001 and the other have 002.
    120ohm resistor is on the last SDM.

    • @DIYTechRepairs
      @DIYTechRepairs  4 ปีที่แล้ว

      You need to have a working connection. Do you have that? Have you configured wifi?

    • @derwiemers228
      @derwiemers228 4 ปีที่แล้ว

      @@DIYTechRepairs yes wifi is configured and connected, both leds on D5 and D6 are on.
      The blue led on the nodemcu is blinking.

  • @CrAzYDr1veR
    @CrAzYDr1veR 5 ปีที่แล้ว

    those modbus are really expensive can you do the same with sonoff?

    • @DIYTechRepairs
      @DIYTechRepairs  5 ปีที่แล้ว +1

      Yes but not realy for mains nor that accurate. I have videos about sonoff too

    • @CrAzYDr1veR
      @CrAzYDr1veR 5 ปีที่แล้ว

      have you ever tested cheap chinese ones from ebay for? AC Power Meter Energy Meter RS485 Modbus 220V

    • @DIYTechRepairs
      @DIYTechRepairs  5 ปีที่แล้ว

      @@CrAzYDr1veR One phase cost fraction of 3phase. Check sdm120

    • @DIYTechRepairs
      @DIYTechRepairs  5 ปีที่แล้ว

      CrAzYDr1veR Btw do you got a link for one you have in mind?

  • @myozone
    @myozone 5 ปีที่แล้ว +1

    Your example node-red flow won't import

    • @DIYTechRepairs
      @DIYTechRepairs  5 ปีที่แล้ว

      Had to link it in instead. It didnt work to have it on the webpage....

    • @myozone
      @myozone 5 ปีที่แล้ว

      Thanks Daniel

  • @arhitektche
    @arhitektche 4 ปีที่แล้ว

    Is this going to work with esp32?

    • @DIYTechRepairs
      @DIYTechRepairs  4 ปีที่แล้ว

      If you rebuiöd the software yes

  • @kigan80
    @kigan80 5 ปีที่แล้ว

    Awg for the silicon wires?

    • @DIYTechRepairs
      @DIYTechRepairs  5 ปีที่แล้ว

      Which ones? Choose wires accordingly to max current.

    • @kigan80
      @kigan80 5 ปีที่แล้ว

      @@DIYTechRepairs for power 5v to ESP8266

    • @DIYTechRepairs
      @DIYTechRepairs  5 ปีที่แล้ว +1

      @@kigan80 perhaps 0.25mm2

  • @emilkrivan1240
    @emilkrivan1240 4 ปีที่แล้ว

    Please help,
    link does not work.
    i need to connect esp 8266+ sdm630 + domoticz

    • @DIYTechRepairs
      @DIYTechRepairs  4 ปีที่แล้ว +1

      Webserver is dead due to drive issues. Working on it and will be up later today.

    • @DIYTechRepairs
      @DIYTechRepairs  4 ปีที่แล้ว +1

      Its fixed

    • @emilkrivan1240
      @emilkrivan1240 4 ปีที่แล้ว

      Ok dekuji.

  • @edcarlosmeirelesdeoliveira4941
    @edcarlosmeirelesdeoliveira4941 4 ปีที่แล้ว

    sorry sketch, thanks

  • @barajend
    @barajend 4 ปีที่แล้ว

    How to get code for esp8266

  • @emilkrivan1240
    @emilkrivan1240 4 ปีที่แล้ว

    Please do not install the installation instructions on the esp 8266. Thank you very much

  •  ปีที่แล้ว

    How to get code for esp8266

    • @DIYTechRepairs
      @DIYTechRepairs  ปีที่แล้ว

      Use esp home instead. It's easier

    •  ปีที่แล้ว

      @@DIYTechRepairs for my own app actually, not to work with any other app