1. Introduction and Overview
The HKL-ER6-S3 is a versatile multi-functional control module designed for industrial automation, intelligent sensor monitoring, and IoT data transmission. It integrates various signal input/output interfaces, communication ports, and expansion capabilities. Powered by the high-performance ESP32-S3-WROOM-1 N16R8 CPU, this module offers stability, reliability, strong expandability, and wide application adaptability, meeting diverse intelligent control needs.

2. Specifications
The HKL-ER6-S3 module features the following technical specifications:

| Feature | Specification |
|---|---|
| ESP32 Chip | ESP32-S3-WROOM-1 N16R8 (16M Large Flash) |
| Power Supply | DC 12V ~ 24V |
| Digital Input Port | 6 Channels NPN (Active Low) |
| Relay Output Port | 6 Channels |
| RS485 Interface | 1 Channel |
| Analog Input | 0-10V 2 Channels (ADC1 ADC2), 4-20mA 2 Channels (ADC3 ADC4) |
| 0-10V DAC Output | 2 Channels (DAC1 DAC2) |
| Ethernet Communication | Support |
| I2C Interface | 1 Channel (12V GND SDA SCL) |
| RS232 Interface | 1 Channel (TX GND RX) |
| 1-Wire Interface | 3 Channels (connect DS18B20) |
| Real-time Clock | Support |
| OLED Display | Support SSD1306 driver (0.96-Inch) |
| Lora / 2.4G Communication | Support |
| Demo Code | Provided example code |
Dimensions

3. Setup and Wiring
This section provides detailed instructions for connecting the HKL-ER6-S3 module. Ensure all connections are secure before powering on the device.
3.1 Power Supply Connection
The module supports a wide DC input voltage range from 12V to 24V. Connect the power supply to the designated GND and DC12V~24V terminals. A power indicator LED will illuminate upon successful power-up.

3.2 Digital Input (NPN Active Low)
The module supports 6 independent NPN-type signal inputs (X1-X6). These inputs trigger signal detection when a low-level input is received. Connect your NPN sensors or switches as shown in the diagram.

3.3 Relay Output (NO/COM/NC)
The module provides 6 relay outputs (NO1-NO6, COM1-COM6, NC1-NC6) for controlling external devices. Each relay can control devices up to 10A 277VAC or 12A 125VAC. Connect your loads to the appropriate NO (Normally Open), COM (Common), or NC (Normally Closed) terminals.

3.4 DAC Output (0-10V)
Two channels of 0-10V DAC signal output (DAC1, DAC2) are available. These can be used to control devices such as control valves. Connect the DAC output to your control device as illustrated.

3.5 ADC Input (0-10V / 4-20mA)
The module features 4-groups of ADC inputs: 2 channels for 0-10V signals (ADC1, ADC2) and 2 channels for 4-20mA signals (ADC3, ADC4). These inputs are suitable for connecting various sensors like pressure transmitters.


3.6 RS232 Communication Interface
A single RS232 asynchronous serial communication interface is provided for short-distance device connections (e.g., computers, serial printers). The recommended communication distance is up to 15 meters. Connect TX, RX, and GND terminals.

3.7 RS485/MODBUS Communication Interface
The module includes one RS485 interface for MODBUS communication, suitable for industrial display screens or other MODBUS-RTU devices. Connect the A and B terminals to your RS485 network.

3.8 1-Wire Communication Interface
Three independent 1-WIRE bus communications are available, allowing connection of multiple DS18B20 temperature sensors, DHT11 sensors, and DS2401 identification chips. This is ideal for multi-point temperature collection and device identification scenarios.

3.9 IIC Expansion Interface
The module provides one standard IIC expansion interface with four terminals: 12V, GND, SCL, and SDA. This allows connection of other IIC protocol devices, such as IIC temperature and humidity sensors, IIC relay modules (DO8), or input expansion modules (ADI16), to extend the module's functionality.

3.10 Pin Definitions
Refer to the following diagram for detailed pin definitions and their corresponding GPIO assignments on the ESP32-S3-WROOM-1.

4. Operating Instructions
The HKL-ER6-S3 is designed for flexible programming using either the Arduino IDE or ESPhome, allowing users to implement custom logic for various applications.
4.1 Real-Time Clock (RTC) Function
The integrated RTC module supports accurate timing of year, month, day, hour, minute, and second. It also features a power-off clock retention function, ensuring time accuracy even without continuous power. Example Arduino code is provided for RTC functionality.

4.2 OLED Display Operation
The module supports an external 0.96-inch OLED display (using the SSD1306 driver chip). This display can show the module's operating status in real-time, including power supply voltage, signal input values, communication status, and RTC time, which is useful for on-site viewing and debugging. Example Arduino code for displaying temperature is available.

4.3 LORA/2.4G Wireless Communication
The module reserves a wireless communication interface and supports optional LORA or 2.4G wireless modules. LORA is suitable for long-distance and low-power data transmission (up to 10KM), while 2.4G is ideal for short-distance and high-speed scenarios. This enables flexible wireless connectivity for various applications.

4.4 Programming with Arduino IDE
HANKERILA provides a wide range of Arduino sample programs with detailed explanations to assist both beginners and experienced developers. These programs cover various functional areas, facilitating exploration, experimentation, and innovation with the board.

Demo code can be downloaded from: https://github.com/hankerila-MA/HKL-ER6.git. The ZIP file's unzip code is typically found on the packaging box label.
4.5 Programming with ESPhome
The HKL-ER6-S3 supports ESPhome, allowing seamless integration with Home Assistant for convenient remote operation and management via mobile devices. ESPhome YAML files are provided to simplify configuration.



5. Maintenance
- Keep the module clean and free from dust and moisture.
- Ensure proper ventilation to prevent overheating, especially in enclosed environments.
- Regularly check wiring connections for looseness or corrosion.
- Avoid exposing the module to extreme temperatures or direct sunlight.
- For firmware updates or advanced maintenance, refer to the official documentation or support resources.
6. Troubleshooting
- No Power: Verify the DC 12V~24V power supply connection and ensure the power indicator LED is lit. Check for correct polarity.
- Inputs Not Responding: Ensure NPN inputs are correctly wired for active low signals. Check sensor functionality and wiring.
- Relays Not Actuating: Confirm that the control signals to the relays are correct and within the expected voltage range. Check the load connections and ensure they are within the relay's current/voltage limits.
- Communication Issues (RS232/RS485/LORA): Check wiring for communication interfaces. Verify baud rates, parity, and stop bits for serial communication. For LORA, ensure modules are within range and configured correctly.
- OLED Display Blank: Check power to the OLED and I2C connections (SCL, SDA). Verify that the SSD1306 driver is correctly initialized in your code.
- Code Upload Failure: Ensure the correct board (ESP32-S3-WROOM-1) is selected in Arduino IDE. Check USB-C cable connection and driver installation.
7. User Tips
- The HKL-ER6-S3 board is well-suited for home automation tasks, especially when integrated with Home Assistant via ESPhome. The provided examples make setup straightforward.
- For 1-Wire interfaces, it is possible to connect multiple DS18B20 sensors to a single 1-Wire bus by connecting them in parallel to the designated 1-Wire pins (e.g., TEM_01, TEM_02, TEM_03). Ensure proper pull-up resistors are used if not already integrated.
- Utilize the provided Arduino and ESPhome demo codes as a starting point for your projects. They offer clear examples for various functionalities.
8. Warranty and Support
For detailed technical support, additional documentation, or warranty information, please refer to the official product page or contact HANKERILA customer service.
A comprehensive user manual in PDF format is available for download: Download User Manual (PDF). Source · https://manuals.plus/ae/1005006831922622