Modbus protocol handled by ModBerry IoT device

Modbus is a communication protocol that is widely used in industrial automation systems. It was developed by Modicon (now Schneider Electric) in 1979 and is used to connect different devices and control systems in a network. Modbus is based on a master-slave architecture, where one device acts as the master and the other devices act as slaves. The master device sends requests to the slaves and the slaves respond with the requested information.

ModBerry is a device that uses the Modbus protocol to communicate with other devices in a network. It is a small computer that is based on the Raspberry Pi platform and it is designed to be used in industrial automation systems. The ModBerry device can be used as a master or a slave in a Modbus network and it can be used to connect different devices such as sensors, actuators, and controllers.

ModBerry advantages in the IoT market

One of the main advantages of using ModBerry is that it is a low-cost solution for industrial automation systems. It is also easy to use and it can be programmed using different languages such as Python, C++, and Java. Additionally, the ModBerry device is small and compact, which makes it easy to install in different environments. It also has a wide range of input and output options, such as digital inputs, digital outputs, analog inputs, and analog outputs, which makes it suitable for a variety of applications.

ModBerry can be used in various industrial applications such as building automation, energy management, and process control. For example, it can be used to monitor and control the temperature, humidity, and lighting in a building. In energy management, it can be used to monitor and control the consumption of electricity, gas, and water. In process control, it can be used to monitor and control the production process in a factory.

ModBerry hardware modularity

Another advantage of ModBerry is its flexibility and scalability. It can be easily integrated with other systems and devices, such as SCADA systems, PLCs, and IoT devices. This allows for a seamless integration of different systems and devices in a single network, which improves efficiency and reduces the complexity of the system.

ModBerry as a low-cost Modbus controller

In conclusion, Modbus is a widely used communication protocol in industrial automation systems and ModBerry is a low-cost, easy-to-use device that utilizes the Modbus protocol. It offers a wide range of input and output options and can be used in various industrial applications. Its flexibility and scalability make it a great solution for integrating different systems and devices in a single network.

Order now:

Battery powered IoT devices crucial to 2020+ standards

Technology must transfer data to the central system in real time, otherwise it may have negative consequences. If the sensor battery power runs out, a machine failure may stop production for one day or lead to direct danger. If battery life is unbelievable and short, IoT applications will become useless, causing more interference rather than making life easier for its intended purpose. Therefore battery powered IoT devices come as a standard in up-to-date IoT installations

Wireless sensors and sensor networks are one of the elements of the Internet of Things systems and intelligent factories. Replacing the standard sensors and data collection devices with versions that communicate wirelessly gives many benefits, but also enforces a highly thought-out system design that will minimize energy consumption. This is important because these systems must work for many years without servicing. In the article we present the issues regarding the design of systems and forecasting of energy consumption in IoT systems.

Wireless communication vs Battery power

The idea of wireless sensor networks has been around for at least two decades, while the IEEE subgroup working on personal wireless networks defined the 802.15.4 standard in 2003, a year later the first versions of ZigBee appeared. Since then, many varieties of wireless communication have been developed, such as LoRa & NarrowBand-IoT and additional functions introduced, as a result of which designers now have a choice of various open or proprietary protocols. What significantly affects the way the entire project is implemented is energy consumption.

Obrazek posiada pusty atrybut alt; plik o nazwie battery-iot-esp32-1030x386.png
Battery powered IoT installation. Source:

The basic elements of these systems are sensors that measure physical quantities. Some signal and data processing capabilities are also important. After all, the communication interface is important, which will allow you to pass the measured data on. Such a sensor node should wake up from time to time, make contact with its superordinate controller, transfer data and fall back to sleep again. Battery life depends on the total charge collected. Minimizing this consumption in the long run means that you need to minimize energy consumption during each work cycle. In many cases, the sensor will only work for a small fraction of the time. A measurement that lasts a few milliseconds can be triggered once per second, once per minute, or even less frequently. Therefore, the energy consumed in sleep mode may dominate the total energy consumption.

Battery-ready IoT devices based on ESP32

Battery / SuperCap power support allows the processes and data to be securely executed, saved or transferred, and the operating system to be safely shutdown or reboot, if the power source has been restored. The power failure alert can also be sent to cloud service, to perform custom task, specified by user or self-learning AI algorithm.

The Moduino device is a comprehensive end-point controller for variety of sensors located throughout any installation. It fully supports temperature and humidity sensors and new ones are currently developed, e.g. accelerometer, gyroscope, magnetometer, etc.

Battery powered Moduino ESP32
Battery powered IoT installation. Source:

ModuinoModBerry symbiosis allows wide range of wake-up/sleep schedule customization, in order to perform best and save energy accordingly to power supply state. Arduino and MicroPython environments provide libraries to control different scenarios of data and power management.

With built-in algorithms and the possibility to program on your own, the TECHBASE’s sleep/wake addon module can wake the device using schedule/timer. Another option is wake on external trigger, e.g. change of input, etc. All the options for sleep, shutdown and wake can be configured for various scenarios to ensure constant operation of devices, safety of data and continuity of work in case of power failure in any installation. Check battery-powered Moduino X0

ESP32 Serial Port

Arduino ESP32 Serial Port to TCP Converter via WiFi

In this class, you will create serial port to TCP converter using Arduino code running on ESP32 processor. We will use one of device which uses such processor: Moduino X ESP32. For TCP communication WiFi module will be used.

You will need:

  • Moduino X2 (may be also X1) ESP32 device (check this website to find out more)
  • PC with Linux operating system
  • socat application
  • RS-232/RS-485 port in your computer or USB to RS-232/RS-485 converter (for programmming and testing)


In our example data sent to serial port (which is used as terminal port in regular Micropython ESP32 device) will be send via WiFi using TCP protocol. It also decodes incomming TCP packets and writes them to serial port.Then virtual serial port can be opened for that TCP packets and perform serial communication.We will use socat application for that.

You can read the complete tutorial at

ESP32 Modbus Master TCP

Welcome to the series of configuration instructions for ModBerry and Moduino ESP32 devices. In this class, you will program ESP32 processor to be Modbus TCP Master.

We will use two devices, which contain this processor: Moduino ESP32 and Pycom. Both devices are running in MicroPytthon environment. Our Modbus Slave will be PC computer with Modbus simulator software running on it.

You will need:

  • Moduino ESP32 or Moduino Pycom device (check this website to find out more about Moduino ESP32 device and this to check Pycom device)
  • PC with Linux operating system
  • RS-232/RS-485 port in your computer or USB to RS-232/RS-485 converter

You can read the complete tutorial at