USER GUIDE
smart-MAIC D105
CONTENTS
Thank you for purchasing the smart-MAIC D105 pulse counter. This device allows you to measure resource consumption by taking into account readings from water, gas, electricity and other meters, equipped with pulse outputs. Internet connection and data transfer occurs via WiFi or GSM (optional).
This chapter includes the following sections:
Appointment of the device and its function
Input for counting pulses
Measurement of temperature and / or humidity
Analog input
Managed output
RS485 interface
Location of device components
Device purpose and its functions
The device is designed for continuous measurement of pulses from connected meters. Measurements and logging are carried out for the purpose of subsequent analysis and implementation of changes aimed at reducing energy costs.
The device measures the following parameters:
incoming pulses on 2 channels, imp
temperature with sensors DS18x20 or DHT22 or D280
humidity with DHT22 sensors
many other quantities measured by sensors
voltage at the analog input, V
Communication with the device is carried out via the IEEE 802.11 Wi-Fi wireless communication protocol.
The device transmits the accumulated data to the «cloud» server for subsequent analysis and visualization. For more information about processing options received from the device, see the WEB page www.smart-MAIC.com.
Current data is available on the device built-in WEB site.
Input for counting pulses.
The device is equipped with two inputs for counting pulses. A pulse is considered to be the closure of the pulse input to GND. Pulse inputs are designed to connect meters and / or sensors that report a change in their status by closing their output contacts.
Pulse counting occurs on two inputs independently of each other.
Measurement of temperature and / or humidity.
Analog input
The analog input is for connecting various analog sensors. The analog input measures a constant voltage value between 0-16V DC.
The device is equipped with a controlled output type «dry contact». A controlled output is designed to automate load management. The output can control a power relay or contactor to which electrical appliances are connected.
The output is controlled remotely, on the device WEB page or from the server. It is also possible to control the output according to predefined rules and / or schedule.
The controlled output is for switching power loads < 50W.
The RS485 Interface
The RS485 interface is designed to connect a variety of sensors or receive data using the RS485 standard.
Parameters RS485 9600 8-N-1. Request to get data in JSON format:
N0 |
N1 |
N2 |
N3 |
Q |
Nx – 4 bytes device number
Example request for device ID 1778384897:
0x6A 0x00 0x00 0x01 0x51
Respond from D105 in JSON format:
{"ID":1778384897,"TIME":1695201127,"T1":25.50,"T2":47.30,"T3":0,"T4":0,"T5":0,"ADC":0,"Ch1":0,"Tch1":27860,"Ch2":0,"Tch2":27860,"OUT":0}
Location of device components
The device is made in a plastic case designed for installation on a DIN rail. The figure shows the main components of the device.
1 |
Upper contact group |
2 |
The RS485 interface |
3 |
Reset Button |
4 |
Bottom group of contacts |
5 |
Device status indicator |
Device status indicator
The device status indicator is located on the front panel. The indicator signals the following device conditions:
Indicator Status |
Device status |
The indicator flashes quickly |
search and connect to a wireless network |
Indicator flashes slowly |
connection to the device is possible as a wireless access point for initial settings |
LED is steady |
device is connected to a wireless network |
Indicator does not work |
device is turned off or malfunctioning |
The device WEB interface is designed to view current data and configure device operation parameters. In the "Data" section, you can change the status of the controlled output.
Access to the device built-in WEB site is carried out by IP address and password. The inactivity time on the device website is limited to 5 minutes, after which you will need to re-enter the password to continue working with the device.
GETTING STARTED
This chapter provides step-by-step instructions for installing, connecting, and setting up the device. Be careful, incorrect connection can cause the device to fail.
The chapter includes the following sections:
Installation and connection to the power supply
Connect to a wireless network
Settings
The device is installed on a DIN rail in an IP65/IP67 mounting box.
D105 is powered from a 100-240V AC grid to the lower terminals (9 - 10)
or from a 5V DC power supply to the upper terminals (1) and (6).
For detailed instructions on connecting any sensors, see the Knowledge Base >>
Wiring diagram
|
|
WIRELESS CONNECTION
For normal operation of the device, it is necessary, at the place of its installation, to ensure the presence of a signal from your wireless network.
When you first start up or after restoring the factory settings, the device enters the wireless access point mode.
To connect to your wireless network, follow these steps:
On your computer or phone, go to the list of wireless networks and select “smart-MAIC123456789” network. If the network is missing, briefly press the RESET button on your device. The default password for connection is missing.
After successful connection, enter http://192.168.4.1 in the address bar of the browser and go to the device built-in WEB site. The default password is 0000
In the «WiFi and Network» section, select your network name from the list of wireless networks, enter your network password and click the «Connect» button. If the name (SSID) of your network is not in the list of wireless networks, refresh the list by clicking the Refresh button.
Wait a minute and reconnect to the device's access point again. Update the connection status or reload the page and make sure that the connection is successful and that the status bar contains the internal IP address of the device. In case of a connection error, repeat step 3.
Go to the device built-in WEB site using the IP address received when connecting and continue the settings.
If there is no name (SSID) of your network in the list of wireless networks, refresh the list by clicking the "Refresh" button.
Wait a minute and reconnect to the
device's access point again. Reload the device settings page and make sure that the connection
is
successful and the device's internal IP address is in the status bar. Disconnect from the
device's hotspot and connect to your WiFi network.
Go to the built-in WEB site of the device using
the IP address obtained when connecting and continue configuring the parameters.
General tips if you are having problems connecting to WiFi:
For stable operation, the signal level must be greater than -80dB, i.e. better than -70dB.
Try changing the WiFi type to "G (up to 54Mbs)" in the device settings.
Try changing the channel on your router.
Try connecting the device to a different router to diagnose the problem.
For more information on connecting to a wireless network, see the Knowledge Base >>
To complete the installation and connection of the device, configure the settings by performing the following steps:
In the «Configuration» section, select the language of the WEB interface that is convenient for you.
Change the password to enter the device WEB interface. The default password of 0000 will not allow you to connect devices to your account on the «cloud server». The password must consist of numbers and have a length of no more than 10. Your new password will allow you to access data from your device stored on a «cloud server».
In the «Data» section, you can set the initial values of accumulative counters.
In the «Data Server» section, check the device connection to the «cloud» server.
In the «Status» section, look and copy the device ID for yourself. You will need the device ID to connect the device to the «cloud server».
A WARNING:
Remember your new password
to
enter the device WEB interface. There is no password recovery mechanism.
If you forgot your
password,
to restore access to the device and data, perform the procedure for restoring factory settings.
INPUT CONFIGURATION AND SENSORS:
In the «Counter» section,
the
values of the pulse input filters are recommended to be left by default 5 ms. Filters are
designed to eliminate multiple triggering of the pulse counter.
If you are connecting meters
with digital pulse sources, set the filter values to 0.
Select the type of connected temperature sensors DS18x20 or DHT22 or other available. After saving the settings of the temperature sensors, the device will re-search for the connected sensors.
If necessary, match the connected sensors with the serial number of the transmitted data (1-5).
Select the option to use the RS485 interface: CO2 Sensor, Wind Sensors or Modbus Server.
For detailed instructions on connecting any sensors, see the Knowledge Base >>
Go to the device page in the «Data» section and check the correctness of the readings.
MQTT CLIENT
The device supports data transmission and dry contact output control using the Message Queue Telemetry Transport (MQTT) service.
You can activate the MQTT service on the WEB interface of the device in the «MQTT Server» section.
To connect to the server, you must fill in the «Server address»,
«Port» and «Username» fields.
The device periodically publishes data in the format <device number>. <Topic name> to the following topics:
Имя топика |
Данные |
Описание |
T1-T5 |
°С |
temperature from sensors 1-5 |
T2 |
% humidity |
with a DHT22 sensor connected |
T3 |
% pressure, hPa |
with a D280 sensor connected |
ADC |
V |
analog input, volts 0-15 |
Ch1-Ch2 |
imp |
pulses for the last period |
TCh1-TCh2 |
imp |
pulses cumulative counter |
OUT |
0-1 |
exit status |
JSON |
JSON format |
all data in JSON format |
The service supports two control phrases for enabling and disabling the output. Control phrases up to 15 characters long can be changed on the device WEB interface in the «MQTT Server» section. By default, the phrase to turn on the output «1» is the phrase to turn off the output «0».
For more information on MQTT connection, see the Knowledge Base >>
REBOOT AND RECOVERY FACTORY SETTINGS
To restore the factory settings, you must use the Reset button. The Reset button is located near the top group of contacts. The Reset button has two functions:
Reboot the device - press the Reset button. After pressing the Reset button, the device will reboot and enter the wireless access point mode.
Restore factory settings - press and hold the Reset button for more than 5 seconds. After restoring the factory settings, the device will reboot and enter the wireless access point mode. Connect to your wireless network and configure the device in accordance with Chapter 3, “Connecting to a Wireless Network” and “Configuring Settings”.
Restoring factory settings does not affect energy storage meters.
The wireless access point mode will turn off automatically after completing work with the device WEB interface.
The device does not require periodic maintenance.
A lithium battery of the CR 2032 3V type is used to back up the device. Battery life is greatly affected by the temperature conditions of use of the device.
When the battery completely fails, you will receive a notification from the cloud server about the need to replace the battery. The device will continue to operate with limited functionality.
Replacing the battery is carried out in the following sequence:
Disconnect the device from the power supply.
Unscrew the 4 screws connecting the device case and remove the upper part of the case.
Remove the old battery from the holder.
Observing the polarity, insert a new battery into the holder.
Put on the upper part of the case and tighten the 4 screws.
The function of checking data for compliance with specified conditions allows you to automate the operation of a controlled output or receive notifications.
You can configure several conditions. Conditions are processed sequentially, from top to bottom, the relay will assume the state of the last condition. If the value of the selected data type corresponds to the specified value and condition, the device will perform one of the selected actions: send e-mail; relay activation; relay off. Conditions are checked at intervals of 5 seconds. When the condition is met, the next check will occur in a minute.
To exclude false activation, you can enable the delay in seconds “Filter before [sec]” during which the condition will not be satisfied.
Checking conditions can be limited in time. If you activate the time interval, the condition will be executed only within the specified time.
Setting conditions is available on the device WEB interface in the “Conditions” section.
To activate the condition, you must select the data type, select the comparison sign «>» or «<», enter a value for comparison, select the required action.
Example: If it is necessary to turn on the relay when the temperature drops below 10ºС and turn off the relay when the temperature reaches 24ºС, then two conditions must be turned on:
T1 < 10 Relay ON
T1 > 24 Relay OFF
Hysteresis is set only for action - sending e-mail. Hysteresis is designed to prevent the sending of repeated e-mail messages when the value of the selected data continues to meet the specified condition.
Important! To avoid spam, set a sufficiently high hysteresis value. Hysteresis operation example for a condition: ADC> 7.5, e-mail
Hysteresis: 2.0
The event notification function allows you to activate the sending of e-mail messages about selected events that occur with the device.
To use the Operating Time Counter mode, an Extended license is required.
The operating time counter counts the number of starts and the operating time of the equipment.
Work algorithm operating time recording mode (operating time):
The moment of switching on the equipment is considered to be the supply of voltage from 3V to 16V DC to the analog input ADC (5).
The D105 has two pulse inputs, both will be enabled.
Input one:
TCh1 - cumulative counter of the number of inclusions equipment.
Ch1 - counter of inclusions for the period (hour / day / month).
Input two:
TCh2 - cumulative operating time counter equipment in seconds.
Ch2 - counter of equipment operation time for the period, in seconds (hour / day / month).
To operate the meter, ensure that pins 5 and 6 are closed while your equipment is running.
To activate the counter, select “Operation time counter” on the device WEB interface in the “Counter” section.
The «OnOff count (TCh1)» contains the number of starts.
The «Work time (TCh2)» records the work time in seconds.
For more information see the Knowledge Base >>
MODE - HEAT METER
An Extended license is required to use the «Heat Meter» mode. The Heat Meter counter calculates the amount of heat energy in
«Total Ch2».
To activate the Heat Meter counter, select “Heat meter Ch2” on the device WEB interface in the “Counter” section.
For more information see the Knowledge Base >>
Measured values:
Temperature, humidity, illumination, oxygen level in water, atmospheric pressure, pressure of liquids and gases, wind direction and speed, CO2, TDS, pH, water depth in the tank, pulses from any meters, radiation, solar radiation level and many other sensors.
Key Features and ranges of measured values
Pulse input |
two, contact closure |
Analog input |
voltage measurement 0 - 15v |
DS18x20 temperature measurement |
–55°C + 125°C, accuracy ± 0.5°C |
Temperature and humidity measurement DHT22 |
–40 ° C + 80 ° C, humidity 0-99% |
Temperature sensors |
max. 5 it. or DHT22 – 1 it. |
Maximum load power on controlled output |
50 W at 220V |
Power consumption |
< 1.0 W |
RS485 Interface |
9600 bps, JSON |
Wireless communication protocol |
2.4 ГГц / IEEE 802.11 (b, g, n) |
Data Refresh Interval |
5 sec. |
Data collection interval |
60 sec. |
Maximum data storage time in the absence of communication with the server |
11 days |
Set operating temperature range |
from -40 to +70 ºС |
Power supply |
100 - 240 V, 50-60 Hz |
Dimensions LxWxH |
90х63х34 mm. |
Mounting type |
on DIN rail |
Weight |
0,1 кг |
The data obtained during the measurements are sent to the database on the «cloud server». Access to data is carried out using the smart-MAIC Dashboard service.
For data visualization and analysis it is necessary:
Create your account on the «cloud server», for this, follow the link dash.smart-maic.com >>
Follow the steps necessary for registration.
In the «Devices» menu, select «Add Device» and enter the following data:
Device name - an arbitrary name for your device
Device ID - the ID of your device can be viewed on the device WEB interface in the “Status” tab
Password - the password that you set on your device.
After connecting a new device, you will be asked to automatically create two pre-configured boards for displaying data on a PC and mobile device.
For more information about the Dashboard, see the Knowledge Base >>