Coder Social home page Coder Social logo

ddm18sd's Introduction

DDM18SD

A Tasmota scripting based language script to read values of the power meter

SECTIONS:

Introduction

The following Tasmota scripting language based script, is not a stand alone working code but it works with the Tasmota open source firmwares. The script option is actually available only on yourself compiled bin. With a Github account you can compile your bin using the easiest Tasmocompiler. You can't find it on precompiled official bins. The script I built allows you reading DDM18SD Modbus Power meter adding it on your compiled Tasmota file. Refer to Tasmota and Tasmota Smart Meter Interface about how to. Pay attention to the rules of the user_config_override.h file.

Hardwares

This script has been tested on a Nodemcu and a Wemos D1 mini boards. You need a RS485 to TTL converter board also and a (optional but suggested) AMS1117 3.3 voltage converter board to give an appropriate current to the RS485toTTL board. Soldering ( of your choice) is needed for the final setting.

Screenshots

Script

Here is the script you have to add on your Tasmota script console window

>D  
>B  
->sensor53 r
>M 1  
+1,3,M,0,9600,DDM,1,2,05040000,05040008,05040012,0504001A,05040036,0504002A,05040100,05040400

1,050404ffffffff@i0:1,Tensione,V,DDM_Voltage,2  
1,050404ffffffff@i1:1,Corrente,A,DDM_Current,2  
1,050404ffffffff@i2:1,Consumo Ist.,W,DDM_Power,2
1,050404ffffffff@i3:1,Reactive power,Var,DDM_React_Power,2
1,050404ffffffff@i4:1,Frequenza,Hz,DDM_Frequency,2 
1,050404ffffffff@i5:1,Power factor,,DDM_PF,2
1,050404ffffffff@i6:1,Consumi tot.,Kwh,DDM_Tot_Power,2
1,050404ffffffff@i7:1,Tot. react. power,Kvarh,DDM_Reac_Power,2
#

Reading

The DDM18SD Power Meter Modbus in my hands has a 8E1 parity and the slave address where you can read the values is the n 5. To have the values on the Tasmota firmware with the shown script you have to leave null the GPIO setting in the Tasmota Web UI settings, since the script has already setted RX on GPIO3 and TX on GPIO1. If you try to compile the Tasmota setting Web UI you can generate a conflict and can't see the values. Read the mentioned Tasmota Smart Meter Interface to the script syntax understanding.

Credits

Thanks to Theo Arends and all Tasmota team and coworkers

ddm18sd's People

Contributors

digimp avatar

Stargazers

 avatar

Watchers

 avatar  avatar

ddm18sd's Issues

Trying to read DDM18SD input registers

Hello,
I am trying to read the input registers of a ddm18sd power meter using QModMaster, but I get timeout error.
Could you share the settings you used in QmodMaster?
Also I am using a USB to RS485 that I connect directly with my power meter. Is that the right way?
Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.