HANKERILA HKL-ER6

Contents

HKL-ER6-S3 ESP32 Smart Relay Control Board User Manual

Model: HKL-ER6 | Brand: HANKERILA

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.

HKL-ER6-S3 ESP32 Smart Relay Control Board with labeled components
Figure 1.1: HKL-ER6-S3 ESP32 Smart Relay Control Board with key components labeled, including power input, NPN inputs, analog inputs, DAC outputs, RS485, Ethernet, RTC module, OLED display, LORA/2.4G module, ESP32-S3, IIC Expansion, and Free GPIOs.
Play video
Watch video online
Video 1.1: HKL-ER6-S3 Product Overview. This video demonstrates the physical board and its various interfaces and features.

2. Specifications

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

HKL-ER6 Parameter List
Figure 2.1: HKL-ER6 Parameter List detailing the module's capabilities.
Table 2.1: HKL-ER6-S3 Technical Parameters
FeatureSpecification
ESP32 ChipESP32-S3-WROOM-1 N16R8 (16M Large Flash)
Power SupplyDC 12V ~ 24V
Digital Input Port6 Channels NPN (Active Low)
Relay Output Port6 Channels
RS485 Interface1 Channel
Analog Input0-10V 2 Channels (ADC1 ADC2), 4-20mA 2 Channels (ADC3 ADC4)
0-10V DAC Output2 Channels (DAC1 DAC2)
Ethernet CommunicationSupport
I2C Interface1 Channel (12V GND SDA SCL)
RS232 Interface1 Channel (TX GND RX)
1-Wire Interface3 Channels (connect DS18B20)
Real-time ClockSupport
OLED DisplaySupport SSD1306 driver (0.96-Inch)
Lora / 2.4G CommunicationSupport
Demo CodeProvided example code

Dimensions

HKL-ER6-S3 Dimensions
Figure 2.2: Dimensions of the HKL-ER6-S3 module: 175mm (length) x 90mm (width) x 40mm (height).

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.

Wide Voltage Power Supply Connection
Figure 3.1: Wiring diagram for the wide voltage power supply (DC 12V~24V) and location of the power indicator LED and signal indicator LED (GPIO46).

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.

6-Channels NPN Signal Input Wiring
Figure 3.2: Wiring diagram for 6-channels NPN active low signal input, demonstrating connection with a self-reset switch. Includes digital input address and GPIO mapping.

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.

6-Groups Relay Output Wiring
Figure 3.3: Wiring diagram for 6-groups relay output (NO/COM/NC), showing connection to light bulbs. Includes output address and GPIO mapping.

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.

DAC Output Connection
Figure 3.4: Wiring diagram for 2-groups DAC (0-10V) signal output, showing connection to a 0-10V control valve. Includes an example of Arduino DAC code and Esphome dashboard representation.

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.

ADC 0-10V Input Detection
Figure 3.5: Wiring diagram for 2-groups ADC (0-10V) signal input, showing connection to a 0-10V 3-wire pressure transmitter. Includes ADC detect address, pinout, Arduino ADC code, and Esphome dashboard representation.
ADC 4-20mA Input Detection
Figure 3.6: Wiring diagram for 2-groups ADC (4-20mA) signal input, showing connection to a 4-20mA 2-wire pressure transmitter. Includes Arduino ADC code and Esphome dashboard representation.

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.

RS232 Communication Interface Wiring
Figure 3.7: Wiring diagram for the RS232 communication interface, showing connection to a DB9 connector. Includes pinout details.

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.

RS485/MODBUS Communication Interface Wiring
Figure 3.8: Wiring diagram for the RS485/MODBUS communication interface, showing connection to a PLC industrial display screen. Includes MODBUS-RTU protocol parameters and register address data.

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.

1-Wire Communication Interface Wiring
Figure 3.9: Wiring diagram for 3-groups 1-WIRE communication interface, showing connection of DS18B20 and DHT11 sensors. Includes example output for temperature readings.

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.

IIC Expansion Interface Wiring
Figure 3.10: Wiring diagram for the IIC expansion interface, showing connections for an output relay expansion (DO8) and an input expansion (ADI16).

3.10 Pin Definitions

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

HKL-ER6 Pin Definitions
Figure 3.11: HKL-ER6 PIN define diagram, showing electrical identification and corresponding GPIO pins for various interfaces.

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.

RTC Clock Function
Figure 4.1: Close-up of the RTC module with example Arduino code for reading time.

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.

OLED Display Function
Figure 4.2: OLED display showing temperature readings with example Arduino code for display.

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.

LORA Wireless Communication Diagram
Figure 4.3: Diagram illustrating LORA wireless communication between multiple HKL-ER6 modules, demonstrating data transmission over distances up to 10KM.

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.

Arduino IDE Demo Programs
Figure 4.4: Screenshot showing the directory structure of Arduino IDE demo programs available for the HKL-ER6-S3.

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.

ESPhome Demo Code YAML File
Figure 4.5: Example of an ESPhome YAML configuration file for the HKL-ER6-S3, showing settings for RTC, display, ESP32, logging, API, OTA, and Ethernet.
ESPhome Dashboard Examples
Figure 4.6: Screenshots of the ESPhome dashboard, illustrating control of outputs (lights), digital inputs, DAC outputs (virtual 0-10V), and ADC detection (0-10V).
ESPhome Mobile App Control
Figure 4.7: Mobile phone interface demonstrating remote control of the HKL-ER6-S3 device via the Home Assistant application, showing output and input controls.

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

Documents and downloads

Ask a question about this manual

Ask about setup, troubleshooting, compatibility, parts, safety, or missing instructions. Manuals+ will review the question and use this page’s manual context to help answer it.

After a successful submission, we securely hash the supplied account or form email before sending it to Microsoft Advertising for conversion attribution. Privacy details.

Rate this product if you’ve used it

Was this page helpful?