Next Article in Journal
Enhancing Clinical Named Entity Recognition via Fine-Tuned BERT and Dictionary-Infused Retrieval-Augmented Generation
Previous Article in Journal
Two-Dimensional Fractional Polar Volterra Series for Baseband Power Amplifier Behavioral Modeling
Previous Article in Special Issue
TinyML-Based Real-Time Doorway Activity Recognition with a Time-of-Flight Sensor
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Universal I2C-to-RS-485 Module for Industrial Sensing

by
Ivan Sládek
1,2,
Martin Skovajsa
1,
Pavol Kuchár
2,
Júlia Kafková
2,
Štefan Šedivý
1,3 and
Gabriel Gašpar
1,2,*
1
Research Centre, University of Zilina, Univerzitna 8215/1, 010 26 Zilina, Slovakia
2
Faculty of Electrical Engineering and Information Technology, University of Zilina, Univerzitna 8215/1, 010 26 Zilina, Slovakia
3
Faculty of Civil Engineering, University of Zilina, Univerzitna 8215/1, 010 26 Zilina, Slovakia
*
Author to whom correspondence should be addressed.
Electronics 2025, 14(18), 3675; https://doi.org/10.3390/electronics14183675
Submission received: 7 August 2025 / Revised: 5 September 2025 / Accepted: 12 September 2025 / Published: 17 September 2025
(This article belongs to the Special Issue Embedded Systems and Microcontroller Smart Applications)

Abstract

Reliable and affordable data acquisition is crucial in industrial applications and critical infrastructure monitoring. However, common low-cost sensors with an I2C interface have limited range and low resistance to interference, which limits their deployment in demanding conditions. This study aimed to design and verify a universal module that bridges the I2C communication interface with the robust RS-485 industrial bus. A hardware module was designed and constructed to serve as a gateway. The core of the system is an STM32F0x1 microcontroller, which controls communication between the local I2C bus, designed to connect a wide range of sensors, and the RS-485 industrial interface. The design emphasizes robustness, including multi-level protection of power and communication circuits. The functionality of the proposed solution was verified by testing the prototype in real conditions. The module, equipped with a combined SHT30 temperature and humidity sensor, was deployed on the premises of the University of Žilina, Slovakia near transport infrastructure. The data collected from two weeks of continuous operation, recorded at ten-minute intervals, confirmed its reliable and error-free functionality. The result of this work is a modular and scalable platform that enables the easy integration of inexpensive sensors into robust industrial networks. This solution significantly reduces the cost and complexity of building distributed monitoring systems in areas such as transportation, industrial automation, and environmental monitoring.

1. Introduction

In globalized, interconnected, and production-dependent economies, transport infrastructure represents a strategic national economic asset, enabling the efficient movement of goods, services, and labor [1,2,3]. Contemporary approaches to constructing and managing transportation systems emphasize key priorities such as safety, operational continuity, economic efficiency, and environmental sustainability. In this landscape, technologies for monitoring and controlling transport networks have assumed an increasingly critical role, with sensors and sensor systems playing a pivotal part. These systems generate the essential data necessary for the optimized and efficient management of transportation processes. Contemporary sensor technologies in transport infrastructure encompass various electronic and mechanical devices, ranging from basic elements to highly advanced sensors integrated within the Internet of Things (IoT) technologies and Artificial Intelligence (AI) systems [4]. In road transport, these sensors furnish data for traffic monitoring systems, environmental parameters, road and sub-base conditions, and for analyzing and evaluating road user behavior [5]. The utilization of sensor networks and intelligent systems is being explored to enhance traffic management and promote seamless urban mobility [6]. From a safety perspective, monitoring current weather conditions is critical, as factors such as frost and ice formation can pose significant risks. Early detection of these conditions enables the provision of effective information to road users while optimizing the deployment of maintenance resources [7]. Moreover, modern sensor systems monitor the current state and predict potentially hazardous situations, contributing to more efficient planning and implementation of transport infrastructure maintenance [8]. This not only yields economic benefits but also has a positive environmental impact. In the context of rail transport, monitoring environmental parameters is essential for preventing deformations and cracks in track and bridge structures, particularly due to extreme temperatures. The data obtained from sensors represents a vital input for contemporary traffic management systems, which increasingly rely on algorithmic AI approaches. These systems can autonomously forecast traffic conditions based on the input data and efficiently manage traffic flows involving large amounts of diverse data [9]. This paper presents the design of a versatile sensor communication module featuring I2C and RS485 interfaces, comprising a printed circuit board and sensors utilizing the I2C protocol. The proposed solution is designed flexibly, enabling standalone operation and integration into a distributed network of measurement nodes. The sensor interface accommodates the connection of diverse sensor types communicating through the standardized I2C protocol. Notably, implementing the SHT30 sensor is given particular attention, as it is designed to measure atmospheric temperature and relative humidity—two fundamental physical parameters directly impacting the safety and functionality of transport infrastructure.
The main contribution and innovation presented in this article is the design, implementation, and practical verification of a universal hardware module that serves as a gateway between a low-cost I2C sensor interface and a robust RS-485 industrial bus. The affordability of I2C sensors is a significant advantage in the development of cost-effective systems. These sensors can supply essential data for a variety of applications, such as temperature, humidity, and pressure measurements, at a lower cost than their industrial counterparts. Conversely, the RS-485 standard offers reliable long-distance communication robust enough for industrial environments, where I2C solutions are impractical due to their limited range and susceptibility to interference. By integrating these two technologies using the proposed module, low-cost I2C sensors can be interfaced with industrial systems. This enables data acquisition from sensors over greater distances, thus expanding the potential applications of I2C sensors to domains where their use would typically be unfeasible. Unlike single-purpose solutions, the proposed system is characterized by its ability to enhance basic sensors by relocating certain software mechanisms to hardware modules, thereby optimizing resource utilization and improving communication security [10]. The key innovation is the combination of low cost and high durability, which overcomes the limitations (short range, low interference resistance) of inexpensive sensors by integrating them into a robust communication environment. Additionally, the proposed solution is designed to facilitate the connection of various types of sensors that communicate via the I2C protocol, thereby significantly expanding the range of potential applications. The work is not just a theoretical concept, but describes in detail a complete and real-world-proven hardware design, including multi-level protection circuits. It confirms the reliability and readiness of the solution for practical deployment in areas such as industrial automation, traffic monitoring, and smart buildings.

2. Materials and Methods

The primary objective of this study is to create a versatile and adaptable sensor communication module capable of both autonomous operation and seamless integration into distributed measurement networks, with a particular emphasis on its applicability in transport infrastructure monitoring. This paper is focused exclusively on the hardware implementation. The development of the corresponding firmware and a general-purpose software application for processing and visualizing the transmitted data will be detailed in a subsequent publication.
The existing body of literature indicates many solutions in the domain of sensor systems aimed at monitoring environmental parameters within transport infrastructure, which have been the subject of extensive research and technological advancements [11]. The available literature suggests a growing trend towards integrating low-power sensor networks, particularly those leveraging the IoT technologies, enabling efficient real-time monitoring of key physical parameters [12]. Existing research examines the design and optimization of autonomous, distributed sensor nodes often powered by renewable energy sources like photovoltaic panels. These nodes exhibit low power consumption, easy deployment, and wireless data transmission capabilities [13]. Concurrently, emphasis is placed on robustness and resilience to adverse environmental factors such as extreme temperatures, humidity, and electromagnetic interference (EMI) [14,15,16]. The literature frequently compares the characteristics of various communication protocols, including I2C, SPI, UART, and RS485 [17,18]. Due to its straightforward implementation and low power demands, the I2C protocol appears suitable for compact, short-range isolated systems. Conversely, the RS485 protocol is often preferred for demanding industrial applications requiring reliable data transmission over longer distances and in high EMI environments. A comparative analysis of the I2C and RS485 protocols is provided in Table 1. The proposed design for the module includes primary functional blocks that ensure the core operation of the system, as well as auxiliary circuits that complement and support its functionality. These sections are clearly illustrated in Figure 1, which provides a comprehensive overview of the structure and the interconnections among the individual components. The blocks within the diagram are numbered and are further detailed in the subsequent text in numerical order, to ensure a clearer interpretation. Each block represents a specific functional unit, and its operation is briefly characterized, including its interfaces with other parts of the system. This block-based decomposition enables a precise understanding of the design logic, facilitating the subsequent implementation and testing of the entire module. In creating this design, authors used components and a PCB layout based on existing practical experience from solving similar tasks that were focused on monitoring environmental parameters in industrial applications and for research purposes. These previous designs and solutions have been the subject of publications [19,20] as well as an utility model [21].

2.1. Power Unit

The emphasis was placed on minimizing the internal power consumption of the supply circuit, as well as on its mechanical robustness and functional reliability across a wide range of operating temperatures. The overall solution thus reflects the needs of modern embedded systems, which have more demanding requirements for energy efficiency in diverse application environments [22]. The input of the power supply circuit was designed with a focus on multi-level protection and reliable operation under various conditions. The key protective element is a PTC (Positive Temperature Coefficient) resettable fuse, type SN02030. In conjunction with the input filter and an overvoltage protection circuit, it safeguards the electronics against overcurrent conditions, overvoltage, and improper power supply connection, including reverse polarity. Upon removal of the fault condition and subsequent cooling, the fuse automatically returns to its initial conductive state, thereby restoring circuit operation without the need for manual intervention. The input filter is implemented using the NFM21C series component, which functions as a capacitive element with low-pass characteristics. This filter effectively suppresses high-frequency interference originating from the input power line, thereby ensuring greater stability and reliability for the entire system [23]. When designing the input voltage range, two alternatives were considered: a nominal range with a maximum input voltage of 12 V and an extended range up to 24 V. Depending on the selected input level, the design specifies a different component configuration that accounts for regulation efficiency and the thermal stress on individual elements.
To accommodate the anticipated higher input supply voltage, the design incorporates a voltage regulator (type MCP1703) to produce a 5 V output. It is followed by another regulator of the same type in series, which provides the 3.3 V supply required by the microcontroller and the communication module. This dual-stage regulation facilitates the powering of circuits with different logic levels while minimizing unnecessary energy loss. The power supply branch also includes a resistive voltage divider, positioned after the input filter, which enables the microcontroller to monitor the supply voltage level. This feature allows for the detection of a low-voltage condition that could negatively impact the functionality of connected peripherals, particularly sensors.

2.2. RS-485 to Serial Circuitry

The communication solution is designed for use in industrial applications that require robustness against interference, multi-point connectivity, and the capability for reliable communication over extended distances. The module’s communication subsystem utilizes an RS-485 bus interface. The primary active component is the SN65HVD10D integrated circuit, which serves as a transceiver, converting signals between the differential RS-485 bus and the microcontroller’s serial TTL interface. This chip is designed for operation with a 3.3 V power supply and is optimized for low power consumption and high reliability in harsh industrial environments.
The design implements Transient Voltage Suppression (TVS) protection to protect the communication interface from damage caused by transient voltage events. When a voltage surge exceeds a predefined threshold, the TVS diode enters a conductive state, shunting the excess energy away from sensitive circuitry. This effectively protects the device from events such as electrostatic discharge (ESD), switching transients, and lightning-induced surges. Once the voltage returns to below the clamping threshold, the diode automatically reverts to its high-impedance (non-conductive) state, ready to protect against subsequent transient events [24].
The circuit also incorporates control logic for managing data direction, as the RS-485 standard operates in a half-duplex mode. The microcontroller controls the direction of transmission by sending a dedicated control signal to switch the transceiver between transmit and receive modes. The signal voltage levels between the communication IC and the microcontroller are properly matched to ensure reliable, error-free data exchange.

2.3. Microcontroller

The proposed design of the communication module utilizes a microcontroller from STMicroelectronics’ mainstream product line—specifically, the STM32F0x1, which is based on the ARM Cortex-M0 architecture. This microcontroller is implemented in a TSSOP-20 package, suitable for surface-mount technology (SMT), providing an effective solution for space-constrained applications. The configuration of peripheral and support circuitry has been designed following the recommendations provided in the manufacturer’s technical documentation. For system clock generation, the internal calibrated RC oscillator is sufficient for this application, ensuring adequate timing accuracy and stability without the need for an external crystal. In applications requiring minimized energy consumption, the original STM32F0x1 microcontroller can be replaced by the low-power variant, STM32L0x1, which is available in the same package and features an identical pinout. This pin-compatibility allows for straightforward design adaptation without requiring modifications to the printed circuit board layout.
The physical connection of peripheral circuits is designed with consideration for the specific component layout on the PCB and utilizes the alternate pin remapping functionality supported by the STM32F0x1 architecture. The microcontroller directly drives one signaling light-emitting diode (LED), while a second LED is controlled by the same pin that manages the data transmission direction on the RS485 communication line. For the microcontroller’s analog power supply rails, manufacturer-recommended decoupling capacitors and filtering circuits have been incorporated into the design. Expansion buses and the programming interface have been separated into connector headers on the PCB, ensuring straightforward configuration, debugging, and firmware updates during both development and subsequent operational deployment.

2.4. LED Status Lights

The circuit design incorporates a signaling section consisting of three high-intensity LEDs to provide visual feedback on the module’s operational status. The selection of high-efficiency LEDs allows the desired level of visibility to be achieved with lower current consumption, thereby contributing to the overall reduction in the device’s power requirements. Each LED is dedicated to indicating a specific system status:
  • White LED indicates the presence of the supply voltage.
  • Blue LED signals activity on the communication line.
  • Orange LED is used to indicate fault conditions or specific operational states of the microcontroller, such as a firmware update (flashing) in progress.
Such a configuration enables basic on-site diagnostics of the device’s status without the need for external tools.

2.5. I2C Interface

To facilitate the connection of external sensors to the communication module, the PCB design incorporates support for the I2C bus. This standard two-wire serial interface enables communication with multiple peripherals. For the physical connection of sensors, two types of connectors have been implemented:
  • A dedicated JST 2.0 connector, featuring compact dimensions, which is particularly suitable for permanent or production-level integrations.
  • A standard 2.54 mm pitch pin header, which allows for flexible and rapid testing or swapping of sensors during development and debugging.
This dual-connector configuration ensures compatibility with a wide range of sensor modules, thereby enhancing the system’s overall versatility.

2.6. Sensor

During the development and testing of the functional prototype, the SHT30 sensor was used as a representative sensor. This device is a combined digital sensor designed for measuring both temperature and relative air humidity. The sensor communicates via the I2C interface and is characterized by its high accuracy, low power consumption, and compact mechanical form factor. Given its characteristics in Table 2, the SHT30 sensor is well-suited for deployment in applications where the continuous monitoring of environmental conditions is required, such as in transportation infrastructure, storage facilities, or in systems for intelligent metering and microclimate control.
The SHT30 sensor is mounted on a dedicated PCB. To ensure power supply quality and suppress high-frequency interference, a 100 nF decoupling capacitor is implemented on the sensor’s PCB. The I2C bus communication lines are equipped with 10 k Ω pull-up resistors, which ensure that the data (SDA) and clock (SCL) signals return to a logic HIGH level when not being actively driven low. To ensure the sensor’s resilience against adverse weather conditions and to prevent moisture condensation on the PCB surface, the entire sensor board is coated with a protective dielectric film, thus reducing the likelihood of short circuits and providing protection against corrosion. Subsequently, the PCB is encapsulated in a protective polyethylene (PE) housing, as shown in Figure 2.
The electrical interconnection between the sensor module and the main communication PCB is established using a four-pin HY2.0-4P connector, which provides the connections for power, ground, and the I2C communication lines. The temperature measurement accuracy and relative humidity measurement tolerance of the Sensirion SHT30 sensor [25] are quantified in the performance graphs shown in Figure 3a,b. These graphs offer a detailed overview of measurement deviations as a function of temperature and humidity conditions, with the declared values being consistent with the manufacturer’s technical datasheet.

3. Results

Based on the aforementioned design of the communication module’s functional blocks, detailed circuit schematics have been developed for the individual sections of the device, reflecting the established requirements for functionality, reliability, and immunity to external disturbances.
Figure 4 presents the electrical schematic of the module’s power supply circuit, which integrates protective elements and stabilization components. The build variants for two distinct input voltage ranges (up to 12 V and up to 24 V) are summarized in Table 3. The design accounts for the need for high operational reliability with minimized internal power consumption, as well as the ability to withstand transient fluctuations in the supply voltage. The proposed power supply section has a maximum current consumption of 100 µA.
Figure 5 illustrates the circuit design for the microcontroller and its support circuitry, including decoupling capacitors, filtering for the analog power supply, communication interfaces, and the programming and expansion headers. The design follows the manufacturer’s recommendations for the STM32F0x1 microcontroller [26] and allows for substitution with the more energy-efficient STM32L0x1 variant without requiring any modifications to the PCB layout.
The resulting design of the functional prototype of the communication module, with all components populated, is shown in Figure 6a,b.
Field testing of the universal I2C/RS485 module prototype, equipped with the SHT30 combined I2C temperature and relative humidity sensor (depicted in Figure 7a,b), was conducted from 14–27 February 2025. The tests took place on the campus of the University of Žilina, specifically near a high-traffic roadway (Figure 8). The module was installed in a distribution cabinet, where it was connected to a 12 V power supply. For data communication, the module was linked to an RS232/485 to Ethernet converter.
Data logging and transmission occurred at regular ten-minute intervals. The resulting plots of the measured temperature and relative air humidity values are visualized in Figure 9a,b. These field tests confirmed the proper functionality and high reliability of the designed universal communication module, thereby demonstrating its suitability for deployment in real-world environmental monitoring applications. The proposed solution was successfully tested over a 650 m cable length, exhibiting no communication errors during operation.

4. Discussion

This paper presents the design and implementation of a universal sensor module that connects the local I2C bus to the RS-485 industrial interface. The results of this work should be interpreted in the context of the growing need for robust and flexible sensor networks in the Industrial Internet of Things (IIoT) and the monitoring of critical infrastructure. The key working hypothesis was that the strategic integration of these two interfaces could lead to the creation of a modular and scalable solution that overcomes the limitations of existing systems, where it is often necessary to choose between ease of sensor integration and reliability of long-distance communication.
The successful implementation and verification of the module’s functionality confirm this hypothesis. While many previous studies focus either on the development of application-specific sensors or on communication protocols for IIoT, the presented solution acts as a universal hardware bridge. It enables the seamless integration of a vast number of commercially available and low-cost I2C sensors, originally designed for consumer electronics or prototyping, into industrial networks that require high interference immunity and long-range capabilities, which RS-485 provides. It addresses the common issue of developing expensive, custom sensor units for industrial deployment.
The implications of this solution extend beyond the field of transport infrastructure. In the broader context of industrial automation, smart agriculture, or environmental monitoring, this module can significantly reduce the cost and complexity of building distributed measurement systems. It enables rapid prototyping and subsequent deployment of systems that can monitor a wide range of physical quantities (temperature, humidity, pressure, air quality) using a single, standardized hardware platform. The emphasis on robustness, demonstrated by the implementation of multi-level protection circuits, further confirms the module’s readiness for deployment in real, demanding conditions, which distinguishes it from typical development kits.
When comparing the proposed module with commercially available solutions in Table 4, several key differences emerge, highlighting its specific benefits (such as full control over firmware) and added value. For example, platforms such as M5Stack COMMU [27] offer RS-485 connectivity within a system, making them ideal for rapid prototyping. However, according to available data, such solutions lack multi-level electrical protection (e.g., against ESD and voltage transients) and increased resistance to environmental influences, which were central design goals of our module, making them less suitable for reliable and long-term deployment in demanding industrial conditions. Closer to the basic functionality is the Coptonix RS485 I2C adapter (Coptonix GmbH, Berlin, Germany) [28], which also serves as a dedicated bridge. The main difference in our work lies in its open design and emphasis on verifiable robustness, offering a customizable and potentially more cost-effective concept compared to a proprietary, commercially available unit. Finally, at a much higher level of complexity, reference designs such as Texas Instruments’ TIDA-01281 (Texas Instruments, Dallas, TX, USA) [29] represent complex industrial gateways with features like redundant Ethernet. Our module is not intended to compete with such systems, but rather to serve as a complementary, low-cost edge device. It provides a key first link in the data chain—connecting individual sensors to the network in a simple and scalable manner, which could then feed data into a larger gateway.
Although basic functionality has been demonstrated, further research should take several directions. The primary goal is to implement and validate a standardized communication protocol, such as Modbus RTU, directly on the module’s microcontroller. It would ensure immediate software interoperability with existing SCADA systems and industrial control units (PLCs). Furthermore, extensive testing under real operating conditions is necessary to quantify long-term reliability and resistance to environmental influences. Another interesting direction is to explore low-power variants using microcontrollers from the STM32L family, which, in combination with energy harvesting technologies, could lead to the creation of autonomous, maintenance-free sensor nodes for long-term monitoring tasks.

5. Conclusions

This work aimed to design, construct, and verify the functionality of a universal sensor module suitable for industrial applications. The presented solution successfully fulfilled the set objectives through a modular and robust hardware design. The main result is a functional module that integrates a local I2C bus for the flexible connection of a wide range of sensors with an RS-485 industrial communication bus, ensuring reliable data transmission over long distances and in environments with strong EMI. The design emphasizes high reliability, which is achieved through the robust construction of the power supply and communication circuits, incorporating integrated protective elements.
Verification of the prototype’s functionality with the SHT30 digital temperature and humidity sensor confirmed the viability and correctness of the proposed concept. The proposed sensor module is a practical and adaptable building block for creating distributed measurement and monitoring systems. Its properties make it ideal for use in areas such as intelligent transport, industrial automation, and Internet of Things (IoT) systems, where high demands are placed on reliability, modularity, and low operating costs. This work demonstrates that the proposed communication module enables the reliable integration of low-cost I2C sensors into robust industrial systems, a development that promises substantial economic impact via reduced capital and operational expenditures. The module’s universal architecture provides for the flexible monitoring of various environmental parameters, accommodating all available I2C sensor types to meet specific user demands. Crucially, the module eliminates the inherent constraints that have historically restricted I2C sensor solutions from widespread industrial application.

Author Contributions

Conceptualization, I.S., M.S. and G.G.; methodology, I.S. and P.K.; software, J.K.; validation, M.S. and Š.Š.; formal analysis, I.S.; investigation, M.S., J.K. and P.K.; resources, G.G.; data curation, P.K.; writing—original draft preparation, M.S. and I.S.; writing—review and editing, J.K. and P.K.; visualization, Š.Š.; supervision, G.G.; project administration, G.G.; funding acquisition, G.G. All authors have read and agreed to the published version of the manuscript.

Funding

This paper was supported under the project of Operational Programme Integrated Infrastructure: Independent research and development of technological kits based on wearable electronics products, as tools for raising hygienic standards in a society exposed to the virus causing the COVID-19 disease, ITMS2014+ code 313011ASK8. The project was co-funded by European Regional Development Fund. and This work was supported by VEGA through the Research on motion data analysis methods for applications in diagnosis and therapy of gnostically relevant symptoms under Grant 1/0147/25.

Data Availability Statement

Data is contained within the article.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Oladimeji, D.; Gupta, K.; Kose, N.A.; Gundogan, K.; Ge, L.; Liang, F. Smart Transportation: An Overview of Technologies and Applications. Sensors 2023, 23, 3880. [Google Scholar] [CrossRef]
  2. Musa, A.A.; Malami, S.I.; Alanazi, F.; Ounaies, W.; Alshammari, M.A.; Haruna, S.I. Sustainable Traffic Manage-ment for Smart Cities Using Internet-of-Things-Oriented Intelligent Transportation Systems (ITS): Challen-ges and Recommendations. Sustainability 2023, 15, 9859. [Google Scholar] [CrossRef]
  3. Fatorachian, H.; Kazemi, H. AI-enhanced fault-tolerant control and security in transportation and logistics systems: Addressing physical and cyber threats. Complex Eng. Syst. 2024, 4, 17. [Google Scholar] [CrossRef]
  4. Roșca, C.M.; Stancu, A.; Gortoescu, I.A. Advanced Sensor Integration and AI Architectures for Next-Generation Traffic Navigation. Appl. Sci. 2025, 15, 4301. [Google Scholar] [CrossRef]
  5. Micko, K.; Papcun, P.; Zolotova, I. Review of IoT Sensor Systems Used for Monitoring the Road Infrastructure. Sensors 2023, 23, 4469. [Google Scholar] [CrossRef] [PubMed]
  6. Kubina, M.; Bubelíny, O. The Smart City Concept to Incentivize Public Transport in the v4 Countries in the Post-COVID-19 Period. Commun.-Sci. Lett. Univ. Zilina 2022, 24, 15–23. [Google Scholar] [CrossRef]
  7. Khanmohamadi, M.; Guerrieri, M. Advanced Sensor Technologies in CAVs for Traditional and Smart Road Condition Monitoring: A Review. Sustainability 2024, 16, 8336. [Google Scholar] [CrossRef]
  8. Hassan, M.U.; Steinnes, O.M.H.; Gustafsson, E.G.; Løken, S.; Hameed, I.A. Predictive Maintenance of Norwegian Road Network Using Deep Learning Models. Sensors 2023, 23, 2935. [Google Scholar] [CrossRef]
  9. Mohsen, B.M. AI-Driven Optimization of Urban Logistics in Smart Cities: Integrating Autonomous Vehicles and IoT for Efficient Delivery Systems. Sustainability 2024, 16, 11265. [Google Scholar] [CrossRef]
  10. Căpriță, H.V.; Selişteanu, D. Improvement of Automotive Sensors by Migrating AUTOSAR End-to-End Communication Protection Library into Hardware. Elektron. Ir Elektrotechnika 2022, 28, 34. [Google Scholar] [CrossRef]
  11. Xue, X.; Hui, J.; Chen, L.; Liang, M.; Yao, Z. Monitoring the Internal Conditions of Road Structures by Smart Sensing and In Situ Monitoring Technology: A Review. Appl. Sci. 2025, 15, 3945. [Google Scholar] [CrossRef]
  12. Fan, Z.; Pang, C.; Tang, H. Sensors on Internet of Things Systems for the Sustainable Development of Smart Cities: A Systematic Literature Review. Sensors 2024, 24, 2074. [Google Scholar] [CrossRef]
  13. Liu, L.; Guo, X.; Liu, W.; Lee, C. Recent Progress in the Energy Harvesting Technology—From Self-Powered Sensors to Self-Sustained IoT, and New Applications. Nanomaterials 2021, 11, 2975. [Google Scholar] [CrossRef] [PubMed]
  14. Nguyen, H.; Ha, Q.P. Wireless Sensor Network Dependable Monitoring for Urban Air Quality. IEEE Access 2022, 10, 40051. [Google Scholar] [CrossRef]
  15. Šećerov, I.; Popov, S.; Sladojević, S.; Milin, D.; Lazić, L.; Milošević, D.; Arsenović, D.; Savić, S. Achieving High Reliability in Data Acquisition. Remote Sens. 2021, 13, 345. [Google Scholar] [CrossRef]
  16. Xu, K. Silicon electro-optic micro-modulator fabricated in standard CMOS technology as components for all silicon monolithic integrated optoelectronic systems. J. Micromech. Microeng. 2021, 31, 054001. [Google Scholar] [CrossRef]
  17. Sufyan, M. I2C vs SPI vs UART: A Comprehensive Comparison. 2025. Available online: https://www.wevolver.com/article/i2c-vs-uart (accessed on 11 September 2025).
  18. Chen, C.; Huang, S. Analysis and Comparison of UART, SPI and I2C. In Proceedings of the 2023 IEEE 2nd International Conference on Electrical Engineering, Big Data and Algorithms (EEBDA), Changchun, China, 24–26 February 2023; p. 272. [Google Scholar] [CrossRef]
  19. Ďuďák, J.; Gašpar, G. Design and Implementation of Sensory Solutions for Industrial Environment; Springer Nature: Berlin/Heidelberg, Germany, 2023. [Google Scholar] [CrossRef]
  20. Gaspar, G.; Dudak, J.; Mikolajcikova, M.; Gurin, D. Proposal of a Skin Temperature Measurement System Based on Digital Thermometers. IEEE Access 2023, 11, 25050–25062. [Google Scholar] [CrossRef]
  21. Gašpar, G.e.a. IoT-ready data logger with simple file system and data logging method, 2024. SK Utility model 10005.
  22. Kwon, S.W.; Jeong, S.G.; Lee, J.; Koo, Y.S. Design of Destruction Protection and Sustainability Low-Dropout Regulator Using an Electrostatic Discharge Protection Circuit. Sustainability 2023, 15, 10126. [Google Scholar] [CrossRef]
  23. Dey, S.; Mallik, A. A Comprehensive Review of EMI Filter Network Architectures: Synthesis, Optimization and Comparison. Electronics 2021, 10, 1919. [Google Scholar] [CrossRef]
  24. Chen, W.C.; Ker, M. Surge protection design with surge-to-digital converter for microelectronic circuits and systems. Microelectron. Reliab. 2018, 88, 2–5. [Google Scholar] [CrossRef]
  25. SENSIRION AG. Datasheet SHT3x-DIS. Ver. 7. 2022. Available online: https://sensirion.com/media/documents/213E6A3B/63A5A569/Datasheet_SHT3x_DIS.pdf (accessed on 11 September 2025).
  26. STM32F0x1—Arm Cortex-M0 Cost-Effective Microcontrollers (MCU)—STMicroelectronics. Available online: https://www.st.com/en/microcontrollers-microprocessors/stm32f0x1.html (accessed on 11 September 2025).
  27. COMMU Module Extend RS485/TTL CAN/I2C Port—shop.m5stack.com. Available online: https://shop.m5stack.com/products/commu-module (accessed on 5 August 2025).
  28. RS485 I2C Converter—I2C Master|Coptonix—coptonix.com. Available online: https://coptonix.com/en/products/rs485-i2c-adapter-master/ (accessed on 5 August 2025).
  29. TIDA-01281 Reference Design|TI.com—ti.com. Available online: https://www.ti.com/tool/TIDA-01281 (accessed on 5 August 2025).
Figure 1. A block diagram of the module’s functional units.
Figure 1. A block diagram of the module’s functional units.
Electronics 14 03675 g001
Figure 2. SHT30 sensor.
Figure 2. SHT30 sensor.
Electronics 14 03675 g002
Figure 3. SHT30 sensor [25]: (a) temperature tolerance, (b) relative humidity tolerance.
Figure 3. SHT30 sensor [25]: (a) temperature tolerance, (b) relative humidity tolerance.
Electronics 14 03675 g003
Figure 4. Power supply circuitry.
Figure 4. Power supply circuitry.
Electronics 14 03675 g004
Figure 5. Microcontroller circuitry.
Figure 5. Microcontroller circuitry.
Electronics 14 03675 g005
Figure 6. Communication module: (a) front side, (b) back side.
Figure 6. Communication module: (a) front side, (b) back side.
Electronics 14 03675 g006
Figure 7. Module: (a) connection detail, (b) enclosure detail.
Figure 7. Module: (a) connection detail, (b) enclosure detail.
Electronics 14 03675 g007
Figure 8. Location of the module during test operation.
Figure 8. Location of the module during test operation.
Electronics 14 03675 g008
Figure 9. Recorded data: (a) temperature, (b) relative air humidity.
Figure 9. Recorded data: (a) temperature, (b) relative air humidity.
Electronics 14 03675 g009
Table 1. I2C and RS485 buses comparison.
Table 1. I2C and RS485 buses comparison.
ParameterI2CRS485
Communication typeSerial, synchronous, two-wireSerial, asynchronous, differential (two wires)
Transfer rate100 kHz (standard), up to 5 MHz (ultra-fast mode)Up to 10 Mbit/s (short bus)
Maximum distance∼1 mUp to 1200 m (at 100 kbps)
Number of devices on the busUp to 127 devices (at 7-bit address)Up to 32 (without repeater), more with repeaters
Network topologyStar or busBus (multipoint)
AddressingYes, 7- or 10-bit addressesNot native—depends on higher layer protocol (e.g., Modbus)
Interference immunityLow (sensitivity to electromagnetic interference)High (differential transmission reduces the impact of interference)
Shared wiresYes (SDA and SCL)No—separate bus, not dependent on shared clock signal
Cabling intensityLow—only 2 wires to communicateHigher—requires separate communication link
Power consumption with more devicesHigher—continuous monitoring of shared busLower—devices can be addressed selectively
Address management and conflictsPotential conflicts—each sensor must have a unique addressAddress management depends on higher layer protocol (e.g., Modbus)
Robustness in case of device failureLow—failure of one device can affect othersHigh—failure of one node does not affect the rest of the network
Suitability for islanded systems (e.g., IoT)High—low power, simplicityLimited—higher energy and communication interface requirements
Possibility to integrate with other protocolsLimitedHigh—often used with Modbus, BACnet, DMX, and others
Table 2. SHT30 sensor [25] characteristics.
Table 2. SHT30 sensor [25] characteristics.
ParameterValue
Supply Voltage2.15 V to 5.5 V
Temperature Measurement Range−40 °C to +125 °C
Relative Humidity Measurement Range0% to 100% RH V
Measurement Accuracy±2% RH over the 20% to 80% RH range ±0.2 °C over the 0 °C to 90 °C range
Measurement Resolution0.01% RH, 0.01 °C
Communication InterfaceI2C, including support for CRC (Cyclic Redundancy Check) to ensure data transmission integrity
I2C Address Options0x44 or 0x45 (selectable)
Table 3. Summary of different components for two supply voltage ranges.
Table 3. Summary of different components for two supply voltage ranges.
Part5.5–12 VDC7.5–24 VDC
CF1NFM21PC104NFM21PC222
F1SN020-30SN020-30
D1PESD15VS1UBPESD24VS1UB
IC1MCP1703-5002UA78M05DCY
Table 4. Comparison with available solutions.
Table 4. Comparison with available solutions.
SolutionType/UsageInterfacesAdaptabilityKey FeaturesLimitations
Proposed solutionUniversal moduleI2C, RS-485Very high (open firmware on STM32, open hardware)Full control over firmware, hardware protections, optimization for specific applications, low component costs.Requires development and testing, lacks industrial certification.
M5Stack COMMU [27]Commercial moduleI2C, CAN, RS-485, TTLLow (module designed for the M5Stack ecosystem)Simple integration, small size, multiple interfaces in one.Limited customization options, more suited for prototyping than industrial deployment.
Coptonix RS485 I2C Adapter [28]Industrial converterI2C, RS-485Medium (configuration via ASCII commands)Industrial standard, I2C level shifter, adjustable address via DIP switches.Higher price, limited firmware flexibility, focused only on conversion.
TI TIDA-01281 [29]Reference designIsolated I2C, CAN, RS-485High (reference design for further development)Fully isolated interfaces, complies with industry standards (IEC), robust solution for demanding environments.Requires implementation and production, and has a higher design complexity.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Sládek, I.; Skovajsa, M.; Kuchár, P.; Kafková, J.; Šedivý, Š.; Gašpar, G. A Universal I2C-to-RS-485 Module for Industrial Sensing. Electronics 2025, 14, 3675. https://doi.org/10.3390/electronics14183675

AMA Style

Sládek I, Skovajsa M, Kuchár P, Kafková J, Šedivý Š, Gašpar G. A Universal I2C-to-RS-485 Module for Industrial Sensing. Electronics. 2025; 14(18):3675. https://doi.org/10.3390/electronics14183675

Chicago/Turabian Style

Sládek, Ivan, Martin Skovajsa, Pavol Kuchár, Júlia Kafková, Štefan Šedivý, and Gabriel Gašpar. 2025. "A Universal I2C-to-RS-485 Module for Industrial Sensing" Electronics 14, no. 18: 3675. https://doi.org/10.3390/electronics14183675

APA Style

Sládek, I., Skovajsa, M., Kuchár, P., Kafková, J., Šedivý, Š., & Gašpar, G. (2025). A Universal I2C-to-RS-485 Module for Industrial Sensing. Electronics, 14(18), 3675. https://doi.org/10.3390/electronics14183675

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop