SDM120 Modbus 220/230V Single Phase Energy Meter, for Domoticz, ESP8266, Arduino

 

SDM120 Modbus Single Phase  Multifunction Energy Meter

Sdm120-Modbus-220-230v-Single-Phase-Energy-Meter-for-domoticz-esp8266-Arduino

Price: EUR 30.00

https://www.ebay.co.uk/itm/273500228608

 

• Class 1.0 Accuracy
• 45A direct connect load
• RS485 Port modbus RTU
• 2 Pulse Output
• 3 Mode measruements
• 12 Electrical parameters
• 17.5 mm width 1 modual
• 35mm Din rail Mounted

Specifications
Voltage AC (Un) 230V
Voltage Range 176~276V AC
Base Current (Ib) 5A
Max. Current (Imax) 45A
Mini Current (Imin) 0.25A
Starting current 0.4% of Ib
Power consumption <2W/10VA
Frequency 50/60Hz(±10%)
AC voltage withstand 4KV for 1 minute
Impulse voltage withstand 6KV-1.2uS wavform
Overcurrent withstand 30Imax for 0.01s
Pulse output rate 1000imp/kWh (default)
100/10/1 imp/kWh/kVarh (configurable)
Display LCD with blue backlit
Max. Reading 99999.9kWh

Accuracy
Voltage 0.5% of range maximum
Current 0.5% of nominal
Frequency 0.2% of mid-frequency
Power factor 1% of Unity
Active power 1% of range maximum
Reactive power 1% of range maximum
Apparent power 1% of range maximum
Active energy Class 1 IEC62053-21
Class B EN50470-3
Reactive energy 1% of range maximum
Environment
Operating temperature -25℃ to + 55℃
Storage and transportation temperature -40℃ to +70℃
Reference temperature 23℃±2℃
Relative humidity 0 to 95%, non-condensing
Altitude up to 2500m
Warm up time 10s
Mechanical Environment M1
Electromagnetic environment E2
Degree of pollution 2

RS485 output for Modbus RTU

The meter provides a RS485 port for remote communication. Modbus RTU is the protocol applied. For Modbus RTU, the following RS485 communication parameters can be configured from the Set-up menu.
Baud rate: 1200, 2400, 4800, 9600
Parity: NONE/EVEN/ODD
Stop bits: 1 or 2
Modbus Address: 1 to 247

M.I.D Approved

 

Raspberry Pi ModBus Energy Meter

Raspberry Pi ModBus Energy Meter
Raspberry Pi ModBus Energy Meter

https://info.kmtronic.com/raspberry-pi-modbus-energy-meter-2.html

 

 

KMTronic Plug-in and Creating Devices on HomeSeer HS3

KMTronic Plug-in and Creating Devices on HomeSeer HS3

 

We already have a plug-in for Sonoff’s with Tasmota firmware which works great and we use it all the time, but sometimes WiFi isn’t good enough especially for controls outside of the home or in a situation where reliability is important. For these cases we introduce the KMTronic Web Relay, an Ethernet based 8 relay device with optional DIN mounting. With the Web Relay we can control 8 individual relays using HomeSeer and our KMT Plug-in. We already use these both inside and outside of the building and find them very reliable and cost effective especially as compared to devices such as the Adam 6060 at 5 times the price. Likewise, sometimes temperature measurement is required with a degree of reliability and flexibility, such as monitoring external temperature, or water temperature. The one-wire DS18B20 is an established and reliable sensor available in many form factors and each LAN-DS1820 unit can support up to 4 of these.

 

KMTronic Plug-in and Creating Devices on HomeSeer HS3
KMTronic Plug-in and Creating Devices on HomeSeer HS3

 

 

LAN DS18B20 WEB Temperature Monitor 4 Sensors Complete

KMtronic LAN DS18B20 WEB Temperature Measuring Monitor 4 Sensors Complete

 

 

 

https://www.gen.net.uk/kmtronic-homeseer

 

 

 

Heat and Measuring Temperature using KMtronic LAN DS18B20 WEB Temperature Monitor

Heat and Measuring Temperature

Heat is one of the forms of energy. For a molecule or compound, heat is the total energy of its atoms and molecules. Heat can directly be related to temperature. Objects having higher temperature have more energy than objects having a lower temperature. Do you know the devices used for measuring temperature? Let’s find out.

 

LAN DS18B20 WEB Temperature Monitor 4 Sensors Complete

LAN DS18B20 WEB Temperature Monitor 4 Sensors Complete

LAN DS18B20 WEB Temperature Monitor

 

KMtronic LAN DS18B20 WEB Temperature Measuring Monitor 4 Sensors Complete
KMtronic LAN DS18B20 WEB Temperature Measuring Monitor 4 Sensors Complete

 

 

LAN DS18B20 WEB Temperature Monitor with 4 Sensors 1 meter Cable

Features:
• Fully assembled and tested.
• Measures Temperatures from -55°C to +125°C (-67°F to +257°F)
• Support up to 4 temperature sensors

Complete including:
– 1 x LAN 1-Wire Adapter
– 4 x DS18B20 Temperature Sensors 1 meter cable

Default:

IP address: 192.168.1.199
Subnet Mask: 255.255.255.0
Default Gateway: 192.168.1.1
Username: admin
Password: admin

Reset to Default Settings:
Hold Reset button for 10 seconds

Manufacturer:
KMTronic LTD

Features:
• Measures Temperatures from -55°C to +125°C (-67°F to +257°F)
• Support up to 4 DS18B20 temperature sensors

Specifications:
DS18B20
http://www.maximintegrated.com/sensors-and-sensor-interface/DS18B20.html

Supply:
Requires external 12 volt DC / 600mA power supply

KMtronic LAN DS18B20 WEB Temperature Measuring Monitor 4 Sensors Complete
KMtronic LAN DS18B20 WEB Temperature Measuring Monitor 4 Sensors Complete
KMtronic LAN DS18B20 WEB Temperature Measuring Monitor 4 Sensors Complete
KMtronic LAN DS18B20 WEB Temperature Measuring Monitor 4 Sensors Complete

 

 

ESP8266: UDP broadcast receiver

 

ESP8266 UDP broadcast receiver

 

 

/*
Wireless Serial using UDP ESP8266
Hardware: NodeMCU
Circuits4you.com
2018
UDP Broadcast multi esp to esp communication
*/

#include <Wire.h> // Enable this line if using Arduino Uno, Mega, etc.

#include "Adafruit_LEDBackpack.h"
#include "Adafruit_GFX.h"

Adafruit_7segment matrix = Adafruit_7segment();

#include <ESP8266WiFi.h>
#include <WiFiUdp.h>

const char *ssid = "KMTRONIC";
const char *pass = "KMTRONIC";

unsigned int localPort = 12345; // local port to listen for UDP packets

IPAddress SendIP(192,168,1,255); //UDP Broadcast IP data sent to all devicess on same network

// A UDP instance to let us send and receive packets over UDP
WiFiUDP udp;

char packetBuffer[9]; //Where we get the UDP data
float temp;
//======================================================================
// Setup
//=======================================================================
void setup()
{
matrix.begin(0x70);

Serial.begin(115200);
Serial.println();

WiFi.begin(ssid, pass); //Connect to access point

Serial.println("");

// Wait for connection
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
Serial.println("");
Serial.print("Connected to ");
Serial.println(ssid);
Serial.print("IP address: ");
Serial.println(WiFi.localIP());

//Start UDP
Serial.println("Starting UDP");
udp.begin(localPort);
Serial.print("Local port: ");
Serial.println(udp.localPort());
}
//======================================================================
// MAIN LOOP
//======================================================================
void loop()
{
int cb = udp.parsePacket();
if (!cb) 
{
//If serial data is recived send it to UDP
if(Serial.available()>0)
{
udp.beginPacket(SendIP, 2000); //Send Data to Master unit
//Send UDP requests are to port 2000

char a[1];
a[0]=char(Serial.read()); //Serial Byte Read
udp.write(a,1); //Send one byte to ESP8266 
udp.endPacket();
}
}
else {
// We've received a UDP packet, send it to serial
memset(packetBuffer, 0, sizeof(packetBuffer));
udp.read(packetBuffer, 10); // read the packet into the buffer, we are reading only one byte
Serial.println(packetBuffer);
delay(20);
temp = atof (packetBuffer);
matrix.print(temp);
matrix.writeDisplay();
}
}
//=======================================================================

 

 

PHP broadcast

<?php

while(1) {
// Loading the XML file
$xml = simplexml_load_file("http://192.168.1.199/status.xml");

foreach($xml->children() as $sensor)
{
if ($sensor->name == "Office 1" )
{
$msg = $sensor->temp;
//echo $msg . "\r\n";
}
}


$sock = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP); 

$len = strlen($msg); 

echo $msg . "\r\n";

socket_set_option($sock, SOL_SOCKET, SO_BROADCAST, 1);

socket_sendto($sock, $msg, $len, 0 ,'192.168.1.255', 12345);

socket_close($sock);
usleep(500000);

}

?>