@@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.
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
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]
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?
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.
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?
@@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.
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
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.
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
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
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.
@@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
Thank you so much sir! Hope to see many more bright videos from you. Wishing you all the best !
I am creating an ESP8266 (nodeMCU) version as well. Will share the video soon.
@@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.
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
@@vinayaksudalai9114 Send me a mail to debrajdeb123_AT_GMAIL_DOT_COM
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
Hi Debraj, How did you convert IEEE 754 hex representation of (voltage/freq) in to decimal representation in your script ? Please answer
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]
More details on the website link added to description.
hi debraj ji ehich compileryou are using for programming pls help
Arduino IDE for nodeMCU
@@Debraj1978 thank you sir ji
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?
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.
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?
@@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.
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
Yes, it may need. You will get a pop up in your computer for driver installtion.
@@Debraj1978 thank u debraj ji
can u do the same with em6436h energy eter schnider
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.
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
still helpful good video Thank you
Sir which software it for reading the data from python code
Python code does everything. Refer to description to my website link and take code from there.
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
Sorry. Arduino is boring.
@@Debraj1978 I'm use arduino pls...help
@@sanjay0109 I will try out on arduino ide after 1 month or so.
@@Debraj1978 sir i use arduino and comunication ok
But serial print unsigned velue displays how I can display floating velue
#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);
}
very useful information
Ye device mene purchase kiya hu.
Is Device ko kwh reset kese kare? Factory reset. Sir
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.
please share the python Code you used in the project , thanks (please ad link of code in discription)
More details on the website link added to description. It has the python code as well.
send full code of this project
Send me a mail to debrajdeb123_AT_GMAIL_DOT_COM
Sir, kya ye zero export Device ka kaam karti hai.
Yeh "zero export" kya hai?
@@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
@@SubodhN88 ok. Yeh 1-direction meter hai. Jaise ki, usual energy meter. Only ghar ka consumption jaan sakte hain.
@@Debraj1978 There are parameters like 'export active energy' available and on amazon it is listed as bi-directional. Maybe it can be used?
good job
Out put conection not
ok
such a pain to watch video, i think there is reason that mobile/camera stand exists and video editors to remove "ummm" and "ammmm".
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.