1. Introduction
The HKL-ER6-S3 is an advanced industrial control board based on the ESP32-S3-WROOM-1 module. It offers a rich set of features including multiple digital and analog I/O channels, various communication interfaces (RS485, RS232, 1-WIRE, IIC), real-time clock (RTC), and an OLED display. This board is designed for versatile applications, allowing users to write custom code for specific functions and supporting wireless communication options like LORA and 2.4G.
2. Specifications
The HKL-ER6-S3 control board features the following technical specifications:
| Feature | Description |
|---|---|
| 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 (RTC) | Support |
| OLED Display | 0.96-Inch, Supports SSD1306 driver |
| Wireless Communication | Lora / 2.4G (optional modules) |
| Demo Code | Provided example code |
2.1 Pin Definitions (GPIO)
The following table details the electrical identification and corresponding GPIO pins for various interfaces:
| Electrical Identification | GPIO PIN / Address |
|---|---|
| IIC_SDA | IO17 |
| IIC_SCL | IO18 |
| 232RX | IO19 |
| 232TX | IO20 |
| TEM1 | IO1 |
| TEM2 | IO2 |
| TEM3 | IO3 |
| UOT | TXD0 |
| UOR | RXD0 |
| LORA_RX | IO41 |
| LORA_TX | IO38 |
| LED_I046 | IO46 |
| W5500_RST | IO9 |
| W5500_INT | IO10 |
| W5500_MOSI | IO11 |
| W5500_MISO | IO12 |
| W5500_SCLK | IO13 |
| W5500_SCS | IO14 |
| 485_RX | IO47 |
| 485_TX | IO48 |
| PCF8574_INPUT | Address:0X25 |
| PCF8574_OUTPUT | Address:0X24 |
| ADS1115_ADC | Address:0X49 |
| MCP4728_DAC | Address:0X60 |
2.2 Dimensions
The HKL-ER6-S3 board has the following approximate dimensions:
- Length: 175mm
- Width: 90mm
- Height: 40mm
3. Setup and Installation
3.1 Power Supply Connection
The HKL-ER6-S3 board supports a wide voltage DC input ranging from 12V to 24V. Connect your DC power supply to the designated terminals. Ensure correct polarity (positive to +V, negative to GND). A power indicator LED will illuminate upon successful power-up.
3.2 Digital Input (NPN Active Low)
The board features 6 channels for NPN-type digital signal input. These inputs are active low, meaning they trigger when a low-level signal is received. Connect your NPN sensors or switches to the X1-X6 terminals and the common ground (GND).
3.3 Relay Output (NO/COM/NC)
The board provides 6 relay output channels. Each relay has Normally Open (NO), Common (COM), and Normally Closed (NC) contacts. These relays can control devices up to 10A at 277VAC or 12A at 125VAC. Connect your loads to the appropriate relay contacts (e.g., for a simple switch, connect the load between COM and NO).
(Note: A specific wiring diagram for relay output was not provided in the allowed image URLs. Please refer to Figure 1 for relay locations and standard relay wiring practices.)
3.4 DAC Output Connection (0-10V)
The board includes 2 channels for 0-10V Digital-to-Analog Converter (DAC) output. These can be used to control devices that accept a 0-10V analog signal, such as control valves or motor speed controllers. Connect the DAC output terminals (DAC1 G, DAC2 G) to your analog input device.
(Note: A specific wiring diagram for DAC output was not provided in the allowed image URLs. Please refer to Figure 1 for DAC output locations and device-specific wiring instructions.)
3.5 ADC Input Connection (0-10V and 4-20mA)
The board supports 4 channels of Analog-to-Digital Converter (ADC) input: 2 channels for 0-10V (ADC1, ADC2) and 2 channels for 4-20mA (ADC3, ADC4). These inputs are suitable for connecting various sensors like pressure transmitters. Ensure proper wiring according to your sensor's specifications, connecting the sensor's output to the corresponding ADC input and power/ground as required.
(Note: Specific wiring diagrams for ADC inputs were not provided in the allowed image URLs. Please refer to Figure 1 for ADC input locations and sensor-specific wiring instructions.)
3.6 RS232 Communication Interface
The HKL-ER6-S3 features a 1-channel RS232 asynchronous serial communication interface. This is suitable for short-distance connections (up to 15 meters) to devices such as computers, serial printers, or external controllers. Connect the TX, RX, and GND pins of the board's RS232 port to the corresponding pins on your external device.
3.7 RS485 Communication Interface (MODBUS)
A 1-channel RS485 interface is available for MODBUS communication. This allows for robust, multi-drop communication over longer distances. Connect the A and B terminals of the RS485 interface to your MODBUS network. The communication parameters are typically Modbus-RTU, Baud rate: 9600bps, Data bits: 8, Stop bits: 1, Parity: EVEN. The Modbus read function is 03.
(Note: A specific wiring diagram for RS485 was not provided in the allowed image URLs. Please refer to Figure 1 for RS485 locations and MODBUS device wiring instructions.)
3.8 1-WIRE Communication Interface
The board provides 3 independent 1-WIRE bus communications, enabling connection of multiple 1-WIRE protocol devices such as DS18B20 temperature sensors and DHT11 sensors. This is ideal for multi-point temperature collection and device identification. Connect the sensors to the S1, S2, S3 terminals, along with GND and 5V. Refer to Figure 2 for the 1-WIRE wiring diagram.
3.9 IIC Expansion Interface
A standard IIC expansion interface (1 group) is available, featuring four terminals: 12V, GND, SCL, and SDA. This allows for expanding the module's functions by connecting other IIC protocol devices such as IIC temperature/humidity sensors, IIC relay modules, or IIC memory chips.
(Note: A specific wiring diagram for IIC Expansion was not provided in the allowed image URLs. Please refer to Figure 1 for IIC expansion locations and device-specific wiring instructions.)
4. Operation
4.1 Real-Time Clock (RTC) Function
The integrated RTC module provides accurate timing (year, month, day, hour, minute, second) and includes a power-off clock retention function. This ensures timekeeping even when the main power is disconnected. The RTC module is an optional feature.
(Note: A specific image for the RTC module was not provided in the allowed image URLs. Its location is indicated on Figure 1.)
4.2 OLED Display (0.96-Inch)
The board supports an external 0.96-inch OLED display, driven by the SSD1306 chip. This display can show the module's real-time operating status, including power supply voltage, signal input values, communication status, and RTC time, aiding in on-site viewing and debugging.
(Note: A specific image for the OLED display was not provided in the allowed image URLs. Its location is indicated on Figure 1.)
4.3 Wireless Communication (LORA / 2.4G)
The HKL-ER6-S3 reserves a wireless communication interface for optional LORA or 2.4G wireless modules. These modules enable wireless data transmission for various applications:
- LORA: Suitable for long-distance and low-power scenarios, with a maximum range of 10KM and 30dBm power.
- 2.4G: Suitable for short-distance and high-speed scenarios, with a maximum range of 2.5KM and 20dBm power.
4.4 Programming with Arduino IDE
HANKERILA provides a wide range of Arduino sample programs to assist both beginners and experienced developers. These programs cover various functional areas and come with detailed explanations.
Demo Code Download Link: https://github.com/hankerila-MA/HKL-ER6.git
The unzip code for the ZIP file is typically found on the label of the packaging box.
(Note: An image showing the Arduino IDE demo program files was not provided in the allowed image URLs. The provided link contains the necessary code.)
4.5 Programming with ESPHOME
The HKL-ER6-S3 also supports ESPHOME, allowing for easy configuration and integration with Home Assistant. You can use ESPHOME to define the board's behavior and interact with its various components.
By installing the Home Assistant application on your mobile phone, you can conveniently control the HKL-ER6 device remotely, managing its functions and settings directly from the app.
(Note: Images showing ESPHOME YAML configuration and Home Assistant dashboards were not provided in the allowed image URLs. These are typically software interfaces.)
5. Maintenance
- Cleaning: Keep the board clean and free from dust and debris. Use a soft, dry cloth for cleaning. Avoid using liquids or abrasive cleaners.
- Environment: Operate the board within its specified environmental conditions (temperature, humidity) to ensure optimal performance and longevity.
- Firmware Updates: Regularly check the manufacturer's website or GitHub repository for firmware updates. Keeping the firmware updated can provide new features, performance improvements, and bug fixes.
- Connections: Periodically inspect all wiring connections to ensure they are secure and free from corrosion. Loose connections can lead to intermittent operation or damage.
6. Troubleshooting
- Board Not Powering On:
- Verify the DC 12V~24V power supply is correctly connected and providing the specified voltage.
- Check for correct polarity.
- Ensure the power indicator LED illuminates.
- Relays Not Activating:
- Confirm that the control signal to the relay is correct (e.g., from your ESP32-S3 code).
- Check the load connected to the relay for proper wiring and functionality.
- Ensure the load's current and voltage requirements do not exceed the relay's specifications (10A 277VAC / 12A 125VAC).
- Communication Issues (RS232/RS485/LORA/2.4G):
- Verify wiring connections for TX/RX/GND (RS232), A/B (RS485).
- Check communication parameters (baud rate, data bits, stop bits, parity) match between devices.
- For wireless communication, ensure modules are correctly installed and within range. Check antenna connections.
- Sensor Readings Incorrect (ADC/1-WIRE):
- Ensure sensors are correctly wired to the appropriate input channels (0-10V, 4-20mA, 1-WIRE).
- Verify sensor power supply.
- Check your code for correct sensor reading and conversion logic.
- OLED Display Not Working:
- Ensure the SSD1306 driver is correctly initialized in your code.
- Check I2C connections (SDA, SCL).
7. User Tips
- Custom Tasmota: One user successfully compiled custom Tasmota firmware for the board, getting most features working. This suggests flexibility for alternative firmwares.
- LORA Module: If you ordered Bundle05, it includes the LORA module E220-900T22D. Ensure compatibility with local frequency regulations (e.g., 868 MHz for Italy).
- Programming: The seller provides sample programs for both Arduino and ESPHOME, which are excellent starting points for development.
8. Support and Documentation
For further detailed instructions, programming guides, and technical support, please refer to the following resources:
- Official User Manual (PDF): A comprehensive user manual in PDF format is available for download. Download PDF User Manual
- Demo Code Repository: Access the latest demo code and examples on GitHub: HKL-ER6 GitHub Repository