IoT -- Home power monitor via MODBUS + MQTT over R-pi.

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 พ.ย. 2024

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

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

    Thank you so much sir! Hope to see many more bright videos from you. Wishing you all the best !

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

      I am creating an ESP8266 (nodeMCU) version as well. Will share the video soon.

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

      @@Debraj1978 Dear sir, thank you so much for your response, I am facing difficulty in running the code on my raspberry pi 4b, when I pun the python command, nothing happens, please sir, I humbly seek your kind guidance.

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

      Sir, could you please share the code which runs on the raspberry please sir? I desperately need it for my project.
      May god bless you sir

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

      @@vinayaksudalai9114 Send me a mail to debrajdeb123_AT_GMAIL_DOT_COM

  • @molality
    @molality หลายเดือนก่อน

    its not running for me. I have the same equipments and even the comport name in device manager is 7 still the code runs without any error but shows no OUTPUT

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

    Hi Debraj, How did you convert IEEE 754 hex representation of (voltage/freq) in to decimal representation in your script ? Please answer

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

      When voltage is queries from meter, it responds with the following protocol format -- slave addr, function, byte count, 4-bytes of data in float format..
      The 4 bytes are collected in python and converter from 4 bytes to float using following python code --
      response = ser.read(9)
      voltageByte = response[3:7]
      voltageFloatTuple = struct.unpack('>f', voltageByte) #big endian
      voltage = voltageFloatTuple[0]

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

      More details on the website link added to description.

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

    hi debraj ji ehich compileryou are using for programming pls help

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

      Arduino IDE for nodeMCU

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

      @@Debraj1978 thank you sir ji

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

    Hey debraj! Your video was really helpful. I have a doubt here if you can solve it. How do you check the serial communication settings in the energy meter? I am using the same one as you are. I tried to go through the manual and followed the instructions. I am unable to see them. Could yoh please guide me?

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

      I am using the default values, as in factory setting and also same as user guide. There are commands to change the serial communication setting, but I never tried it. You should search in the 1 page user guide that comes along with the meter.

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

      So far I am using that page only. But it says press both buttons together for 3 seconds. Upon doing that, it shows "P(some character) 0000". To change page I press enter but it changes value in the text I mentioned.. Could you please try it once and let me know if it works for you?

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

      @@sanketagrawal7918 Cannot try it now, as I am at a different place and the meters are somewhere else. But for changing the settings, do not use push button, but send command from MODBUS.

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

    Sorry to bother you again I have connected energybmeter with USB to rs485 hardware as shown in your vedio does it need any driver software to install for serial port communication

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

      Yes, it may need. You will get a pop up in your computer for driver installtion.

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

      @@Debraj1978 thank u debraj ji

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

    can u do the same with em6436h energy eter schnider

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

      Not sure, I have never worked on this meter. But if this meter has MODBUS connection, then all these parameters can be measured. If you have a user manual for the meter, it will help.

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

      Also, if you need a lower cost version for communication, instead of R-pi, look into my other video, where I used NodeMCU = th-cam.com/video/FfvIN-nZf-Q/w-d-xo.html

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

    still helpful good video Thank you

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

    Sir which software it for reading the data from python code

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

      Python code does everything. Refer to description to my website link and take code from there.

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

    Sir, I had the same energy meter Selec EM2M but sir I don't have R-Pi sir can you help me to write the code for Arduino. I want to read the data from this meter using the rs-485 module. you can help me

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

      Sorry. Arduino is boring.

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

      @@Debraj1978 I'm use arduino pls...help

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

      @@sanjay0109 I will try out on arduino ide after 1 month or so.

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

      @@Debraj1978 sir i use arduino and comunication ok
      But serial print unsigned velue displays how I can display floating velue

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

      #include
      #include
      SoftwareSerial mySerial(11, 10); // RX, TX
      #define MODBUS_DATA_TRANSACTION_PIN 13
      ModbusMaster node;
      void preTransmission()
      {
      digitalWrite(MODBUS_DATA_TRANSACTION_PIN,1);
      }
      void postTransmission()
      {
      digitalWrite(MODBUS_DATA_TRANSACTION_PIN,0);
      }
      void setup() {
      pinMode(MODBUS_DATA_TRANSACTION_PIN,OUTPUT);
      // Init in receive mode
      digitalWrite(MODBUS_DATA_TRANSACTION_PIN,0);
      Serial.begin(9600);
      // Modbus communication runs at 9600 baud
      mySerial.begin(9600);
      // Modbus slave ID 1
      node.begin(1,mySerial);
      // Callbacks allow us to configure the RS485 transceiver correctly
      node.preTransmission(preTransmission);
      node.postTransmission(postTransmission);
      Serial.println("selec Tc id :");
      }
      void loop() {
      node.readInputRegisters(21, 1);
      Serial.print("VOLT ");
      float prosess_value = node.getResponseBuffer(0);
      Serial.println(prosess_value/10.0);
      node.clearResponseBuffer();
      delay(500);
      node.readHoldingRegisters(23,1);
      Serial.print("AMP ");
      Serial.println(node.getResponseBuffer(0)/10.0);
      node.clearResponseBuffer();
      delay(500);
      }

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

    very useful information

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

    Ye device mene purchase kiya hu.
    Is Device ko kwh reset kese kare? Factory reset. Sir

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

      Function code = 0x10 and register = 0x28. Send MODBUS write command. I have not tried this, but I tried backlight on/ off from same set of registers and it works for me.

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

    please share the python Code you used in the project , thanks (please ad link of code in discription)

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

      More details on the website link added to description. It has the python code as well.

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

    send full code of this project

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

      Send me a mail to debrajdeb123_AT_GMAIL_DOT_COM

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

    Sir, kya ye zero export Device ka kaam karti hai.

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

      Yeh "zero export" kya hai?

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

      @@Debraj1978 Enphase IQ7 ongrid micro Inverter jab ghar ka load kam ho aur ongrid inverter jyada electricity bnayenga to wo electricity meter mai export karenga jisse electricity bill jyada aayena. Usko rokne ke liye use hota hai zero export Device Sir

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

      @@SubodhN88 ok. Yeh 1-direction meter hai. Jaise ki, usual energy meter. Only ghar ka consumption jaan sakte hain.

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

      ​@@Debraj1978 There are parameters like 'export active energy' available and on amazon it is listed as bi-directional. Maybe it can be used?

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

    good job

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

    Out put conection not

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

    ok

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

    such a pain to watch video, i think there is reason that mobile/camera stand exists and video editors to remove "ummm" and "ammmm".

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

      Thanks for your inputs. I do not have suffiicient time to edit the videos completely. Please manage with what I put or else look somewhere else.