ESP8266 Modbus RTU communication with Energy meter EM6400NG

  Рет қаралды 30,306

Techno Automation

Techno Automation

Күн бұрын

Пікірлер: 141
@vaishakhmonti
@vaishakhmonti 2 жыл бұрын
This is a great tutorial. Very well done and the clear explanation about The voltage levels for different electrical standards was spot on. Cheers my friend. Well done!
@TechnoAutomation
@TechnoAutomation 2 жыл бұрын
Thanks
@TechnoAutomation
@TechnoAutomation Жыл бұрын
Actually I didn't get enough time to make content due to my job. I wish to make another video on top of this for displaying data on webpage and forwarding data to mqtt . I hope I will get enough time to make it.
@nozynoz
@nozynoz 2 жыл бұрын
Cheers, very well explained, great job.
@TechnoAutomation
@TechnoAutomation 2 жыл бұрын
Thanks
@sanjaybhatikar
@sanjaybhatikar 2 жыл бұрын
Very nicely explained, good job dude!
@TechnoAutomation
@TechnoAutomation 2 жыл бұрын
Thanks
@mayurrane9656
@mayurrane9656 Жыл бұрын
i have getting problem with int RX & problem is conflicting declaration with Int Rx
@TechnoAutomation
@TechnoAutomation Жыл бұрын
Have you edited the code?? Or used from my GitHub repo ??
@mayurrane9656
@mayurrane9656 Жыл бұрын
No but I have rish EM 1330 ENERGY METER
@jaiminoob7825
@jaiminoob7825 Жыл бұрын
is there max485 working on 3.3 Voltage ? in video u connect with 3.3V?
@TechnoAutomation
@TechnoAutomation Жыл бұрын
Some Chinese 485 to ttl converter works on 3.3 V out of the box. & i have checked max485 on 3.3 V on breadboard setup which works ok.
@jaiminoob7825
@jaiminoob7825 Жыл бұрын
if max485 working on 5V then which pins are needed level shifter ? @@TechnoAutomation
@TechnoAutomation
@TechnoAutomation Жыл бұрын
@@jaiminoob7825 if Max485 powered by 5V then provide level shifter to RO(Tx) pin of Max 485
@jaiminoob7825
@jaiminoob7825 Жыл бұрын
Ok Good @@TechnoAutomation
@veerakumars8509
@veerakumars8509 Жыл бұрын
Your videos are really useful but why are you not posting videos like creating webserver and configuring MQTT sorry since its are the hot topics. I accidently got your channel Its very informative. Please post the videos on configuring servers and getting data from MQTT and displaying them in dashboard also dashboard creation. This will be really useful for all. its my request
@TechnoAutomation
@TechnoAutomation Жыл бұрын
I'm stuck at my job & not getting enough time. By d way thanks for suggestion. Will try to spare some time to make videos.
@praveenkumaru5507
@praveenkumaru5507 7 ай бұрын
This is very informative video, can you please tell how to write the value from the microcontroller to other devices if it have both r/w holding register.
@TechnoAutomation
@TechnoAutomation 7 ай бұрын
Hi Praveen, I haven't tried to write data yet. But I will try and revert if I get success.
@praveenkumaru5507
@praveenkumaru5507 7 ай бұрын
@@TechnoAutomation Thanks for you are reply, that's a great help Sir if you tell how to write.
@qzorn4440
@qzorn4440 2 жыл бұрын
very explained rtu modbus... thank you 😊 have you ever used remoteXY to make a cell=phone app?
@TechnoAutomation
@TechnoAutomation 2 жыл бұрын
I didn't use remoteXY till now.
@tusharpatel289
@tusharpatel289 3 жыл бұрын
Nice video Ashish... Keep it up...
@santoshkumar4402
@santoshkumar4402 Жыл бұрын
Thish is great knowlage now so thank u sir
@jeffinthomas8535
@jeffinthomas8535 3 жыл бұрын
Hi Ashish, it was a great video. I am currently using the RS485 to TTL which you mentioned at the last will you please help how to code for that converter. It would be appreciatable. Thanks in advance.
@TechnoAutomation
@TechnoAutomation 3 жыл бұрын
Hi, code will remain same for rs485 - TTL or Rs232 - TTL. You can find working code on my github account. Link is in video description.
@vedanshi_61010
@vedanshi_61010 2 жыл бұрын
Great tutorial. Thank
@ameyapawar7672
@ameyapawar7672 2 жыл бұрын
Hi Ashish, I Am currently working on something similar to the video. I am using an Arduino mega for communication between the meter and the Arduino board. But I am facing some errors in the serial monitor as it displays some garbage values in it. Can you help me with it?
@TechnoAutomation
@TechnoAutomation 2 жыл бұрын
Can you share me snap of serial monitor??? 8160408577 is my WhatsApp number
@ameyapawar7672
@ameyapawar7672 2 жыл бұрын
@@TechnoAutomation Yes Sure!
@itsklien
@itsklien 2 жыл бұрын
Hi I your code worked really well with my single phase smart meter DDSU666-H but I am having trouble making it work with a three-phase smart meter DTSU666. I am constantly getting a 0xE4 response code. Any help would be appreciated. Thank you
@TechnoAutomation
@TechnoAutomation 2 жыл бұрын
0xE4 means no response from slave.
@itsklien
@itsklien 2 жыл бұрын
@@TechnoAutomation so its my smart meter that has the problem?
@TechnoAutomation
@TechnoAutomation 2 жыл бұрын
@@itsklien may be. Try to read data using 485 usb adapter in modscan or similar utility in your pc.
@itsklien
@itsklien 2 жыл бұрын
@@TechnoAutomation will try this one
@ebenolivier
@ebenolivier 2 жыл бұрын
Can the max485 run off 3.3v? Been struggling with for a week without any luck. Even with to esp32s. One as master and one as slave. I have been using 5v and direct to the pins of the esp which I assume might be the problem
@TechnoAutomation
@TechnoAutomation 2 жыл бұрын
Esp32 & 8266 is 3.3V board. If you have used 5V for Max485 then signals from 485 module is 5 V pulse. In that case you have to used voltage level shifter or Potential devider to protect ESP32 or 8266. I have tried 3.3v Max485 & 232 board which makes voltage level compatible for esp. I have also tried 5V operated Max485 with esp8266. In This case I have used potential devider for RX pin of esp8266. Tx pin of ESP can directly connected with Max485 converter. Voltage level shifter parform best if you have Different voltage operated device.
@kavansketcher3214
@kavansketcher3214 Жыл бұрын
hello sir ,how can i read data from secure elite 300 multifunction meter ,can you help me for code
@TechnoAutomation
@TechnoAutomation Жыл бұрын
Your can use code i have posted on GitHub. Change the modbus address of your modbus slave
@owaisnajam5304
@owaisnajam5304 2 жыл бұрын
Hi, have you tried with multiple energy meters connected in daisy chain with different modbus addresses?
@TechnoAutomation
@TechnoAutomation 2 жыл бұрын
Yup. 10 device.
@owaisnajam5304
@owaisnajam5304 2 жыл бұрын
@@TechnoAutomation Did you use same esp8266 code? I have to read five energy meters which will be connected in daisy chain, let's say address 1 to 5. I want to read data from all 5 from a PC which will be connected on the same wifi router where esp8266 will be connected. One question here, what we call this esp8266, gateway or slave or master?
@TechnoAutomation
@TechnoAutomation 2 жыл бұрын
@@owaisnajam5304 esp8266 will be master. It read data from slaves and then you can transfer those data to pc using mqtt protocol.
@owaisnajam5304
@owaisnajam5304 2 жыл бұрын
Thanks for your reply. Will you kindly share your WhatsApp number with international code?
@justdoingodswork
@justdoingodswork 2 ай бұрын
I'm using this meter, but when Comm setting to RTFT meter sends reading in sums not real like, until reading kWh reaches 32kWh only then meters updates the next reading. and do not update +1 or +2 kWh o MODBUS.
@TechnoAutomation
@TechnoAutomation 2 ай бұрын
@@justdoingodswork not getting your point
@justdoingodswork
@justdoingodswork 2 ай бұрын
@@TechnoAutomation So in meter settings I set COMM : RTFT And now meter reading is +4194kWh ESP32 keep reads 4194 until sudden +32 I.e. 4227. Then again it start keep reading 4227 for a while. Then sudden 4260 (~+32). Reading on Meter is increasing gradually but ESP32 somehow reads when sum is +32. When I checked the data earlier 4194 kWh. the interval was 16kWh.
@justdoingodswork
@justdoingodswork 2 ай бұрын
This is creating an issue as data read is not real time instead intervals
@bubaibhattacharyya4337
@bubaibhattacharyya4337 2 жыл бұрын
Hi Sir Thank you for a codes and related your presentation. Can I do the same with other meter like selec MF383A.Also one more thing about MAX485 to TTL converter, can you suggest a make or resources.
@TechnoAutomation
@TechnoAutomation 2 жыл бұрын
Any modbus slave data can be read by this method. & Max485 - TTL you can buy from Amazon or any other suppliers. These days there are plenty of breakout birds available in the market. Make sure you purchase 3 of them so you can have spare in case any one failed..
@ElectricalMCU
@ElectricalMCU 3 жыл бұрын
Here in the code , Non parity setting is used can we change the code in to EVEN parity, because the device parity is fixed in my case....
@TechnoAutomation
@TechnoAutomation 3 жыл бұрын
I didn't required to change that as all slaves I used are nit fixed. I think you have to check S.begin(9600,8N1) line. Try to use 8E1 instead 8N1. & revert incase no communication.
@ElectricalMCU
@ElectricalMCU 3 жыл бұрын
@@TechnoAutomation Now I managed to change the parity to "None", but only getting result as 0.00 and Request result :0xE4 , Mem; 48680, not able to get the frequency reading from parameter address "40005" of Half Dulplex communicating mode.
@TechnoAutomation
@TechnoAutomation 3 жыл бұрын
Request Result 0xE4 which means no response from slave. You have to check Wiring & ttl to 485 converter status by tx rx led. Tx led should blink while data transmitted from esp. If slave respond correctly then rx led should blinks. I suffered lot due to faulty ttl-485 module.
@ankitkailashi9777
@ankitkailashi9777 8 ай бұрын
sir can u pls guide me how to read data if it is modbus ascii using esp32
@TechnoAutomation
@TechnoAutomation 8 ай бұрын
Hi, sorry for late reply. I didn't get chance to read modbus ascii on esp. i will check and revert if i can help. Sorry bro
@karti0660
@karti0660 3 жыл бұрын
Hi Ashish, Thanks for the wonderful video. Have you by any chance worked on ER300P Energy meter data collection? If so then can you please share your thoughts about the project? Also, Im not able to find the ER300P modbus register address anywhere online. It would be very kind of anyone who could share it with me. Thanks in advance
@TechnoAutomation
@TechnoAutomation 3 жыл бұрын
Thanks dear for good compliment. For LNT energy meter I used to communicate with LNT & they provide modbus address list. So I suggest to send mail yo LNT & they will provide you modbus address mapping. Visit LNTEBG website to get mail address of your area. Also share this video to other people to support me ss we others who worked in Industrial automation & IOT field.
@karti0660
@karti0660 3 жыл бұрын
@@TechnoAutomation thanks bro for the response. I'll contact them as you have mentioned. It would be really helpful if you could do a video on communication with LNT ER300P for all of us as theres near zero help on this subject online.
@sajibkarmaker5244
@sajibkarmaker5244 Жыл бұрын
Nicely explained
@TechnoAutomation
@TechnoAutomation Жыл бұрын
Thanks. I am planning to make a video of reading multiple addresses from multiple slaves soon.
@romitmisra1
@romitmisra1 2 жыл бұрын
Just excellent....
@TechnoAutomation
@TechnoAutomation 2 жыл бұрын
Thanks 👍
@iotprojecthindi
@iotprojecthindi 6 ай бұрын
I want to a make a home automation for my home. So that I am decide to control all the bulbs and fans through the home assistant or phone. I am not connect all relays and senaor through the wifi network because my home is big. Wifi range is to small for my home automation. So that I am decide to implement modbus for connect all relays and sensor. I thing Modbus is more reliable and easy to implement because the wired connection. I want to connect 10 node. Each nodes contains or hold the few relays and some sensor such as temp and humidity CT sensors mmwave sensor motion sensor. And each nodes connect through each other. And last node is finally connected to think client or Ressbery pi which is operated home assistant os. Please solve my problem and give the feedback
@TechnoAutomation
@TechnoAutomation 6 ай бұрын
Modbus is a master slave communication protocol. Each node will not talk to each other directly. Only the server can talk to all devices. For home automation wifi network is the best suitable communication method. If your wife's network is limited in range then you can use wifi repeaters. Or you can use esp now which is a light weight wifi communication protocol which provides mesh networking and nodes to nodes can talk to each other.
@avyadav9180
@avyadav9180 2 жыл бұрын
For VFD control what is required
@TechnoAutomation
@TechnoAutomation 2 жыл бұрын
For any modbus slave device all hardware required as mentioned in video.
@avyadav9180
@avyadav9180 2 жыл бұрын
@@TechnoAutomation can you make video sir please on this
@muhammedrashid2808
@muhammedrashid2808 2 жыл бұрын
Assalam o allikum brother. I have a 18kw vfd now i am only able to on and off the vfd using esp8266 module. I want to see the vfd lcd wirelessly on my android
@TechnoAutomation
@TechnoAutomation 2 жыл бұрын
You need to read data from drive. Create webpage & host it via esp webserver api.
@TechnoAutomation
@TechnoAutomation 2 жыл бұрын
Similar project i did for energy reading display using webpage. You can refer below mentioned code github.com/ashish8284/ESP8266_MODBUS_GATEWAY_GROWATT Webpage.h is for creating webpage
@Fibar2Hbar
@Fibar2Hbar 3 жыл бұрын
Good job!!!
@TechnoAutomation
@TechnoAutomation 3 жыл бұрын
Thanks for compliment.
@govindsinghrathore4282
@govindsinghrathore4282 3 жыл бұрын
ModbusRTU' does not name a type this type of error it is showing
@TechnoAutomation
@TechnoAutomation 3 жыл бұрын
Do you have installed Modbus RTU library from github link which I have mentioned in video description.
@govindsinghrathore4282
@govindsinghrathore4282 3 жыл бұрын
@@TechnoAutomation yes sir
@govindsinghrathore4282
@govindsinghrathore4282 3 жыл бұрын
@@TechnoAutomation modbusrtu mb in that line it showing error
@TechnoAutomation
@TechnoAutomation 3 жыл бұрын
github.com/ashish8284/ESP8266_MODBUS_EM6400NG_SCHNIEDER Download .in & .h file from above link & try. Select bord as esp8266 only.
@govindsinghrathore4282
@govindsinghrathore4282 3 жыл бұрын
@@TechnoAutomation I'll having the selec EM2M it can work with that also
@yogeshitaliya473
@yogeshitaliya473 3 жыл бұрын
સરસ ભાઇ
@projectgroot9338
@projectgroot9338 3 жыл бұрын
how to use modbus with EC Sensor sir..btw nice video
@TechnoAutomation
@TechnoAutomation 3 жыл бұрын
You have to get modbus address list from manufacturer. You can use same code which I have explained in this video. Only communication parameters & read register to be changed. Try to read single register first.
@kasimkotakumar5855
@kasimkotakumar5855 2 ай бұрын
i getting this error using EM6433 Energy METER 0.00 Request result: 0x02, Mem: 345972 0.00 Request result: 0x02, Mem: 345972 0.00 Request result: 0x02, Mem: 345972 0.00 IF I OFF THE ENERGY METER Request result: 0xE4, Mem: 345992 0.00 Request result: 0xE4, Mem: 345992 0.00 GETTING THIS..................
@TechnoAutomation
@TechnoAutomation 2 ай бұрын
@@kasimkotakumar5855 you are close to success as 0x02 means esp have send query which received Slave and slave have responded. But the address which is requested is wrong. So check the address list from the slave documentation and send a query with right address.
@mukeshl7037
@mukeshl7037 3 жыл бұрын
Hi sir ji can we get direct program link or download link pls
@TechnoAutomation
@TechnoAutomation 3 жыл бұрын
You can find code on my github account. Link is in video description. Download code from there & tweek as per your requirement.
@mukeshl7037
@mukeshl7037 3 жыл бұрын
@@TechnoAutomation thanks sir ji
@shibotoshbhattacharjee8799
@shibotoshbhattacharjee8799 2 жыл бұрын
Need to talk to you for a project
@TechnoAutomation
@TechnoAutomation 2 жыл бұрын
Whatsapp me on 8160408577
@owaisnajam5304
@owaisnajam5304 2 жыл бұрын
@@TechnoAutomation What's your complete WhatsApp number with international code +....?
@belkocik
@belkocik 3 жыл бұрын
MAX485 can be powered 3,3V from esp8266 pin? MAX485 doesn't have to be powered with 5V? Whaaaaa...?
@TechnoAutomation
@TechnoAutomation 3 жыл бұрын
Yup setup you have seen in video is 3.3v operated its Woking fine. I have made wifi gateway for Growatt Inverter which works since year without failure.
@belkocik
@belkocik 3 жыл бұрын
​@@TechnoAutomation So can I power the esp8266 nodemcu through VIN pin with 5V and then use 3v3 esp's pin and power the max485 chip?
@TechnoAutomation
@TechnoAutomation 3 жыл бұрын
Yup. Its possible. Check 485ttl converter specifications. Some module work on 5V only.
@jibanjyotibehura
@jibanjyotibehura Жыл бұрын
Hii sir please share your contact details, I want to discuss for some IOT projects.
@TechnoAutomation
@TechnoAutomation Жыл бұрын
8160408577. Can whatsapp me.
@jibanjyotibehura3565
@jibanjyotibehura3565 2 жыл бұрын
Excellent video sir, can you please explain how to connect more meters and how many esp module required if we need to connect more meters. And please can you share your contact no or mail I'd. Thank you.
@TechnoAutomation
@TechnoAutomation 2 жыл бұрын
I have connected 10 slaves with one esp which works fine till 2 years.
@veerakumars8509
@veerakumars8509 Жыл бұрын
Hi Techno Automation,
@TechnoAutomation
@TechnoAutomation Жыл бұрын
Hi.
@Ragavenutb
@Ragavenutb 3 жыл бұрын
hello friend am trying to read the mod-bus data from Siemens APFC using Nodemcu 8266. am able to read the first input register but consecutive following register am not able to read i tried creating Mread1 instances and conversions but the second data always read 0.00.. any ways to rectify ty. ex : if (!mb.slave()) { mb.readIreg(1, 0x30040, Mread1, 2 , cbWrite); //(SlaevID,Address,Buffer,Range of data,Modus call) mb.readIreg(1, 0x30000, Mread2, 2 , cbWrite); Serial.print("V1 "); Serial.println(InttoFloat(Mread1[1], Mread1[2])); Serial.print("V2 "); Serial.println(InttoFloat1(Mread2[1], Mread2[2])); // v1 Read fine but v2 is 0.00.
@TechnoAutomation
@TechnoAutomation 3 жыл бұрын
Hi, my first suggestion is read Individual register first. I.e first read 30040 only and check data is OK or not. Then read 30000 only and check data is OK or not. If got success then refer my code on github. In that code I have read different registers by making cyclic call for individual register. github.com/ashish8284/ESP8266_MODBUS_GATEWAY_GROWATT/blob/main/Modbus_Call.h
@Ragavenutb
@Ragavenutb 3 жыл бұрын
@@TechnoAutomation yes friend the first register followed by if (!Slave) is always correct no matter what the registers address is. But the problem is second one i tried many combination possibilities but its always 0.0. I dint look at growatt. Now ill have a look . Thank You.
@Ragavenutb
@Ragavenutb 3 жыл бұрын
@@TechnoAutomation Thank You, my friend. got it to work, the trick is to use "for"statement. & do you do undertake projects ?
@TechnoAutomation
@TechnoAutomation 3 жыл бұрын
Yup.
@Ragavenutb
@Ragavenutb 3 жыл бұрын
@@TechnoAutomation pm your whatsapp no pls..
@bezutec
@bezutec 10 ай бұрын
.
01- What is Modbus ? And detail of Modbus RS485 RTU Communication?
23:22
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН
Creating Reactive Browser APIs In Svelte
18:21
Joy of Code
Рет қаралды 2,4 М.
Understanding Modbus Serial and TCP IP
12:07
VUI HOC
Рет қаралды 142 М.
I bought an Xbox Series X... but got THIS 💀
11:41
Jacob R
Рет қаралды 4,3 М.
Use salt to restore old batteries🔋
4:34
Hand-made
Рет қаралды 67
ESP8266/ESP32 ติดต่อ Smart Meter ผ่าน  Modbus Protocol
24:27
สอน LabVIEW ThaiTechZone
Рет қаралды 19 М.
Гениальное изобретение из обычного стаканчика!
00:31
Лютая физика | Олимпиадная физика
Рет қаралды 4,8 МЛН