Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use HLK-PM12: Examples, Pinouts, and Specs

Image of HLK-PM12
Cirkit Designer LogoDesign with HLK-PM12 in Cirkit Designer

Introduction

The HLK-PM12 is a compact and efficient AC-DC power module manufactured by Shenzhen Hi-Link Electronic Co., Ltd. It is designed to convert a wide range of AC input voltages (85-265V AC) into a stable 12V DC output. This module is widely used in applications requiring a reliable and space-saving power supply solution, such as IoT devices, home automation systems, industrial control circuits, and embedded systems.

Explore Projects Built with HLK-PM12

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
ESP32-Based Smart Power Monitoring and Control System with OLED Display
Image of Sistem monitoring terminal listrik rumah tangga: A project utilizing HLK-PM12 in a practical application
This circuit is designed to monitor and control a 120V AC outlet using an ESP32 microcontroller. It includes a PZEM004t module for measuring voltage, current, and power, and a 12V relay to switch the outlet on and off. An OLED display is used to show real-time data, and the HLK-PM12 module provides the necessary 5V and 3.3V power to the components.
Cirkit Designer LogoOpen Project in Cirkit Designer
Wi-Fi Controlled Relay System with ESP32 and LED Indicators
Image of GIZMO_CONTROL_ONLY: A project utilizing HLK-PM12 in a practical application
This circuit is a control system using an ESP32 microcontroller to manage a 4-channel relay module, which in turn controls various loads. The relays are activated by rocker switches and provide visual feedback through LEDs, while power is supplied and regulated by an HLK-PM12 module and protected by a fuse and circuit breaker.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32C3 Supermini-Based Smart Environment Monitor and Lighting Control System
Image of Bedside RGB and Lamp: A project utilizing HLK-PM12 in a practical application
This is a smart control system featuring an ESP32C3 Supermini microcontroller for interfacing with various sensors and actuators. It includes temperature and humidity sensing, RGB LED strip control, user input via a pushbutton and rotary encoder, and AC power control through a two-channel relay. The system is powered by an AC source converted to DC by the HLK-PM12 module.
Cirkit Designer LogoOpen Project in Cirkit Designer
Cellular-Enabled IoT Device with Real-Time Clock and Power Management
Image of LRCM PHASE 2 BASIC: A project utilizing HLK-PM12 in a practical application
This circuit features a LilyGo-SIM7000G module for cellular communication and GPS functionality, interfaced with an RTC DS3231 for real-time clock capabilities. It includes voltage sensing through two voltage sensor modules, and uses an 8-channel opto-coupler for isolating different parts of the circuit. Power management is handled by a buck converter connected to a DC power source and batteries, with a fuse for protection and a rocker switch for on/off control. Additionally, there's an LED for indication purposes.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with HLK-PM12

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of Sistem monitoring terminal listrik rumah tangga: A project utilizing HLK-PM12 in a practical application
ESP32-Based Smart Power Monitoring and Control System with OLED Display
This circuit is designed to monitor and control a 120V AC outlet using an ESP32 microcontroller. It includes a PZEM004t module for measuring voltage, current, and power, and a 12V relay to switch the outlet on and off. An OLED display is used to show real-time data, and the HLK-PM12 module provides the necessary 5V and 3.3V power to the components.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of GIZMO_CONTROL_ONLY: A project utilizing HLK-PM12 in a practical application
Wi-Fi Controlled Relay System with ESP32 and LED Indicators
This circuit is a control system using an ESP32 microcontroller to manage a 4-channel relay module, which in turn controls various loads. The relays are activated by rocker switches and provide visual feedback through LEDs, while power is supplied and regulated by an HLK-PM12 module and protected by a fuse and circuit breaker.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Bedside RGB and Lamp: A project utilizing HLK-PM12 in a practical application
ESP32C3 Supermini-Based Smart Environment Monitor and Lighting Control System
This is a smart control system featuring an ESP32C3 Supermini microcontroller for interfacing with various sensors and actuators. It includes temperature and humidity sensing, RGB LED strip control, user input via a pushbutton and rotary encoder, and AC power control through a two-channel relay. The system is powered by an AC source converted to DC by the HLK-PM12 module.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of LRCM PHASE 2 BASIC: A project utilizing HLK-PM12 in a practical application
Cellular-Enabled IoT Device with Real-Time Clock and Power Management
This circuit features a LilyGo-SIM7000G module for cellular communication and GPS functionality, interfaced with an RTC DS3231 for real-time clock capabilities. It includes voltage sensing through two voltage sensor modules, and uses an 8-channel opto-coupler for isolating different parts of the circuit. Power management is handled by a buck converter connected to a DC power source and batteries, with a fuse for protection and a rocker switch for on/off control. Additionally, there's an LED for indication purposes.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Powering microcontrollers and sensors in IoT projects
  • Home automation devices
  • Industrial control systems
  • LED lighting systems
  • Small appliances and consumer electronics

Technical Specifications

The HLK-PM12 is designed to provide a stable and efficient power supply with the following key specifications:

Parameter Value
Input Voltage Range 85-265V AC
Output Voltage 12V DC
Output Current 250mA (maximum)
Output Power 3W
Efficiency ≥ 70%
Frequency Range 47-63Hz
Operating Temperature -20°C to +60°C
Storage Temperature -40°C to +80°C
Isolation Voltage 3000V AC
Dimensions 35mm x 18mm x 15mm
Weight ~15g

Pin Configuration and Descriptions

The HLK-PM12 module has six pins, as described in the table below:

Pin Number Pin Name Description
1 AC(L) AC live input (connect to the live wire of AC mains)
2 AC(N) AC neutral input (connect to the neutral wire)
3 NC Not connected (leave unconnected)
4 +VOUT Positive DC output (12V DC)
5 -VOUT Negative DC output (ground)
6 NC Not connected (leave unconnected)

Usage Instructions

How to Use the HLK-PM12 in a Circuit

  1. Input Connection: Connect the AC(L) and AC(N) pins to the live and neutral wires of the AC mains supply, respectively. Ensure proper insulation and safety precautions when handling high-voltage AC connections.
  2. Output Connection: Connect the +VOUT and -VOUT pins to the load or circuit requiring a 12V DC power supply. Ensure the load does not exceed the maximum output current of 250mA.
  3. Mounting: Secure the module on a PCB or enclosure using appropriate mounting techniques. Ensure adequate spacing and insulation to prevent short circuits or accidental contact with high-voltage pins.
  4. Filtering: For improved performance and reduced noise, consider adding external capacitors (e.g., 10µF electrolytic and 0.1µF ceramic) across the output terminals.

Important Considerations and Best Practices

  • Safety: Always handle the module with care, as it involves high-voltage AC input. Ensure proper insulation and avoid touching the module while it is powered.
  • Load Requirements: Do not exceed the maximum output current of 250mA to prevent overheating or damage to the module.
  • Ventilation: Ensure adequate ventilation around the module to prevent overheating, especially in high-temperature environments.
  • Testing: Before connecting the module to your final circuit, test it with a dummy load to verify proper operation.

Example: Using HLK-PM12 with Arduino UNO

The HLK-PM12 can be used to power an Arduino UNO by providing a stable 12V DC supply. Below is an example circuit and code to blink an LED using the Arduino UNO powered by the HLK-PM12.

Circuit Connections

  1. Connect the AC(L) and AC(N) pins of the HLK-PM12 to the AC mains supply.
  2. Connect the +VOUT pin of the HLK-PM12 to the VIN pin of the Arduino UNO.
  3. Connect the -VOUT pin of the HLK-PM12 to the GND pin of the Arduino UNO.
  4. Connect an LED and a 220-ohm resistor to pin 13 of the Arduino UNO.

Arduino Code

// Blink an LED connected to pin 13 of the Arduino UNO
// Ensure the HLK-PM12 is providing a stable 12V DC to the Arduino's VIN pin

void setup() {
  pinMode(13, OUTPUT); // Set pin 13 as an output pin
}

void loop() {
  digitalWrite(13, HIGH); // Turn the LED on
  delay(1000);            // Wait for 1 second
  digitalWrite(13, LOW);  // Turn the LED off
  delay(1000);            // Wait for 1 second
}

Troubleshooting and FAQs

Common Issues and Solutions

  1. No Output Voltage

    • Cause: Incorrect AC input connection or insufficient input voltage.
    • Solution: Verify that the AC(L) and AC(N) pins are connected to the live and neutral wires of the AC mains supply. Ensure the input voltage is within the specified range (85-265V AC).
  2. Overheating

    • Cause: Exceeding the maximum output current or poor ventilation.
    • Solution: Ensure the load does not exceed 250mA. Provide adequate ventilation around the module.
  3. Noise or Ripple in Output

    • Cause: Insufficient filtering or high-frequency noise.
    • Solution: Add external capacitors (e.g., 10µF electrolytic and 0.1µF ceramic) across the output terminals to reduce noise.
  4. Module Not Working After Power Surge

    • Cause: Damage due to a power surge or overvoltage.
    • Solution: Use a surge protector or fuse on the AC input to protect the module from power surges.

FAQs

Q: Can the HLK-PM12 power a Raspberry Pi?
A: No, the HLK-PM12 cannot power a Raspberry Pi directly, as the Raspberry Pi typically requires higher current (e.g., 2.5A for Raspberry Pi 4) than the HLK-PM12 can provide (250mA maximum).

Q: Is the HLK-PM12 suitable for outdoor use?
A: The HLK-PM12 is not designed for outdoor use unless it is enclosed in a weatherproof and insulated housing.

Q: Can I use the HLK-PM12 with a 24V DC input?
A: No, the HLK-PM12 is designed for AC input only (85-265V AC). It cannot operate with a DC input.

Q: Does the HLK-PM12 require a heatsink?
A: No, the HLK-PM12 does not require a heatsink under normal operating conditions, as long as the load does not exceed 250mA and there is adequate ventilation.