A place users can post their projects. If you have a small project and would like your own dedicated place to post and have others chat about it then this is your spot.

User avatar
By homershaw
#36516 We are doing similar work using Modbus in ESP, what else are you doing with it? I had considered writing a Gas flow, using Modbus to poll Smart transmitters. I would like to see where you are at to see if we can collaborate.
Thanks Rob
User avatar
By jessecobern
#47848
aniston wrote:
frank_dunn1 wrote:I have tried to get modbus Tcp to work on a olimex board with esp8266 , it needs a lot extras to be added in but basic function 3 and 6 for 1 register with crc16 works . I can share the code if you want it.

Hello Frank, I am interested in getting Modbus functionally from the ESP8266, can you share your code ?

thanks,
aniston.

I would love to get the code,Why is it that every scetch I find, I get it install it's libraries it won't compile, something always seems to be wrong,not in the scope, something won't named, I try with the newest verion first, then try other verions.

Here is what I would like to come up with: (or as close as I can)
I already have a program that uses a modbus master, It's part of the program.I'm wanting
to use(some what like HMI) It can Access them by serial port or TCP-ip. (I'll share that
program if somebody is interested.) What I need is the best way to implement this on a
ESP8266-12E, It wouldn't need to use all the GPIO pins (it could if need-be) I do need
to be able to pick witch: in-put - out-put - coil - read write, so on......the reason
for that, Say I have 3 or 4 maybe more of these, doing different jobs,One would not
miss up the other one, they could all act together as one interface

what I'm working with is:
D1 ESP8266 Arduino NodeMCU Compatible
32bit 80MHz ARM WiFi Wireless ESP-12E
eBay item:131715570231 & USA seller - del. quick

Any help,links, pro-cons, anything. like to hear, why, yes,no - don't do it
tell me.... I need help, can you tell?
User avatar
By ovdleun
#51762
Aledav wrote:Hello,
(snip)

I write a little html page which send (socket.io) readings at intervals of 2 seconds.
http://ah4447.iview.hk:1337/ [ My house in real time! ;) ]

(snip)

I'm happy someone else and interested in making this small project and share the software free to all!
Do you think that the electrical schematic that I drew, it can work?


Hi Aledav,
First of all: awesome little html page ;o) Really looking good.
I also have the SDM120 and are now trying to get readings from it. Still not getting any luck so far :s
What I'm trying to do is to hook it up to an ESP-12E so that readings can be transmitted through wifi. This because my raspberry pi is located at the other end of the house. However I'm still really interested in your code, as I maybe be moving the raspberry to the meter while I'm figuring out how to connect it to my ESP-12E. (so if anyone has hints on this, please let me know!)

Thanks!
Onno.
User avatar
By reaper7
#51796 I have SDM220Modbus and I wrote some simply template library for reading from this meter.
You can find this lib on my github (link inside signature)

Image

I have rs485 to rs232 converter between esp8266 and sdm220 like this:
http://www.aliexpress.com/item/J34-Free ... 25387.html
Power supply (din rail):
http://www.aliexpress.com/item/15W-Sing ... 85621.html
and SDM220Modbus:
http://www.aliexpress.com/item/Single-P ... 07359.html