logo
transparent

Szczegóły wiadomości

Created with Pixso. Do domu Created with Pixso. Nowości Created with Pixso.

AC-DC Working Principle + PCB Design Essentials: Understand Power Supply Design in Seconds!

AC-DC Working Principle + PCB Design Essentials: Understand Power Supply Design in Seconds!

2026-04-20

Have you ever wondered: Your home sockets use 220V AC, but your phone, computer, and router only accept 5V/3.3V DC? What happens in between?

Why doesn't the power grid directly supply DC, but instead goes through a circuitous route?

Today, we'll use simple language and clear diagrams to explain the AC-DC principle, the two conversion methods, the complete circuit, and PCB pitfalls to avoid—a must-have for hardware engineers!

 

I. First, understand: Why is AC to DC conversion necessary?

1. Appliances Only Use DC Power

Phone phones, microcontrollers, chips, sensors… almost all household/electronic devices operate on low-voltage DC (mostly 5V/3.3V). AC voltage constantly changes direction, which chips simply cannot understand; without DC conversion, they cannot power on.

2. The power grid must use alternating current (AC) for transmission. Power plants are mostly located in mountainous areas or near the coast. For long-distance power transmission:

✅ Advantages of AC: High-voltage, low-current transmission with minimal loss;

❌ Direct current (DC): Difficult to boost voltage, high loss, and high cost. Therefore, the power grid first transmits power at high voltage (AC), then reduces it to 220V AC in residential areas, and finally, the equipment converts it to DC.

In short:

The power grid uses AC for efficient power transmission, while equipment uses DC for safe operation. AC-DC converters act as the "translators" between the two!

 

II. There are only two paths for AC→DC: Have you chosen the right one?

There are two main AC-to-DC conversion methods, with completely different principles, structures, advantages, and disadvantages, which are easy to understand at a glance

Method 1: Traditional Transformer Conversion (Old-school, stable)

Three-step simplified process:

A low-frequency transformer first converts high-voltage AC to low-voltage AC (suitable for 50/60Hz AC mains);
A rectifier circuit converts the low-voltage AC to pulsating DC;
A capacitor filter smooths out the ripple, resulting in a relatively stable DC output.

Key features:

✅ Simple circuit, low interference, low cost;

❌ Large size, bulky, high heat generation, low efficiency. Suitable for: Low-power, low-requirement, low-cost scenarios.

najnowsze wiadomości o firmie AC-DC Working Principle + PCB Design Essentials: Understand Power Supply Design in Seconds!  0

Figure 1: Rectification Method Schematic Diagram

najnowsze wiadomości o firmie AC-DC Working Principle + PCB Design Essentials: Understand Power Supply Design in Seconds!  1
Figure 2: AC-DC Transformer Implementation Block Diagram

najnowsze wiadomości o firmie AC-DC Working Principle + PCB Design Essentials: Understand Power Supply Design in Seconds!  2
Figure 3: Transformer Method Waveform Change Diagram

Method 2: Switching Power Supply Conversion (Mainstream High-Efficiency Type)

Now used in chargers, adapters, and switching power supplies, it offers precise conversion in 6 steps:

Bridge Rectification: AC → High-Voltage DC;
Input Capacitor: Smooths the voltage;
Switching Transistor Chopper: Cuts DC into high-frequency pulses;
High-Frequency Transformer: Steps down and isolates, converting to a square wave;
Output Diode: Half-Wave Rectification;
Output Capacitor: Filters again, providing stable DC output.

Core Features:

✅ Small size, light weight, ultra-high efficiency;

❌ Complex circuitry, high interference, difficult EMC management. Suitable for: Mobile phone chargers, PC power supplies, industrial power supplies, and most other scenarios.

najnowsze wiadomości o firmie AC-DC Working Principle + PCB Design Essentials: Understand Power Supply Design in Seconds!  3

Figure 4: Block Diagram of AC-DC Switching Implementation

najnowsze wiadomości o firmie AC-DC Working Principle + PCB Design Essentials: Understand Power Supply Design in Seconds!  4
Figure 5: Waveform Change Diagram of Switching Mode

najnowsze wiadomości o firmie AC-DC Working Principle + PCB Design Essentials: Understand Power Supply Design in Seconds!  5
Figure 6: Comparison Table of Advantages and Disadvantages of Two Conversion Methods

 

III. Complete AC-DC Circuit: More Than Just Conversion, Safety and Reliability

Don't think it's over after conversion! A qualified AC-DC power supply must include 6 major modules:

Input Filtering: Filters out high-frequency noise and interference, protecting downstream stages;
Rectifier Bridge: Composed of 4 diodes, AC → Pulsating DC;
Filtering Circuit: Capacitors/Inductors, smoothing out ripple;
Voltage Regulator Circuit: Feedback regulation, ensuring stable output voltage;
Protection Circuit: Overcurrent, overvoltage, and short-circuit protection, preventing blow-up;
Control Circuit: Chip + feedback, managing the overall operation.

 

IV. Practical Circuit Explanation: Taking the HFC0500 Chip as an Example

Let's walk through the design process using the commonly used HFC0500 chip. After reading, you can easily copy the design.

Fuse + Common Mode Inductor + X Capacitor: Overcurrent Protection + Interference Filtering (Y Capacitor Filters Common Mode);
Rectifier Bridge + Large Capacitor: AC → Smooth High Voltage DC;
RCD Snubber Circuit: Protects the Switching Transistor and Withstands Voltage Spikes;
HFC0500 Pin 5 Output Driver: Controls the Switching Transistor for High-Frequency Chopping;
High-Frequency Transformer T1: Step-Down + Electrical Isolation;
Output Diode + Capacitor: Rectification and Filtering, Output Target Voltage;
Optocoupler Feedback: Isolation Sampling, Precise Voltage Regulation.

najnowsze wiadomości o firmie AC-DC Working Principle + PCB Design Essentials: Understand Power Supply Design in Seconds!  6

najnowsze wiadomości o firmie AC-DC Working Principle + PCB Design Essentials: Understand Power Supply Design in Seconds!  7

Figure 7: HFC0500 Pin Layout + Application Circuit Diagram

 

V. 5 Golden Rules of PCB Design: 90% of People Fail Here!

AC-DC is high-voltage + high-frequency. One wrong step in PCB design can lead to interference, overheating, and even system failure! Remember these 5 points for a successful first attempt 

1. Minimize the three main loops!

Power supply interference immunity depends on the loop size; the smaller the loop, the stronger the immunity:

Input loop: C1→T1→Q1→R11/12/13→C1
Auxiliary winding loop: T1→D4→R4→C3→T1
Output loop: T1→D6→C10→T1
The smaller the loop, the lower the radiation and the stronger the interference immunity.

2. Strictly separate GND
Input ground and control ground are connected at a single point, converging only at C1 to avoid ground loop interference.

3. Isolate high-frequency interference
Connect the heatsink of the switching transistor Q1 to the main GND; Clear the board frame in the high-frequency switching area to physically isolate noise.

4. Feedback lines are the "lifeline"
Completely separate power lines from feedback lines;
The shorter the feedback line, the better, and keep it away from interference sources.

5. Optocouplers must be isolated. The optocoupler's core is hollowed out to ensure electrical isolation between the primary and secondary sides, improving safety and interference immunity.

 

VI. Final Summary

AC-DC conversion looks complex, but it boils down to three layers of logic:

1. Why convert: The power grid uses AC, the equipment uses DC;

2. How to convert: Transformer-type / Switching-type, switching-type is the mainstream;

3. How to do it well: Complete circuit + protection + meticulous PCB details.

transparent
Szczegóły wiadomości
Created with Pixso. Do domu Created with Pixso. Nowości Created with Pixso.

AC-DC Working Principle + PCB Design Essentials: Understand Power Supply Design in Seconds!

AC-DC Working Principle + PCB Design Essentials: Understand Power Supply Design in Seconds!

Have you ever wondered: Your home sockets use 220V AC, but your phone, computer, and router only accept 5V/3.3V DC? What happens in between?

Why doesn't the power grid directly supply DC, but instead goes through a circuitous route?

Today, we'll use simple language and clear diagrams to explain the AC-DC principle, the two conversion methods, the complete circuit, and PCB pitfalls to avoid—a must-have for hardware engineers!

 

I. First, understand: Why is AC to DC conversion necessary?

1. Appliances Only Use DC Power

Phone phones, microcontrollers, chips, sensors… almost all household/electronic devices operate on low-voltage DC (mostly 5V/3.3V). AC voltage constantly changes direction, which chips simply cannot understand; without DC conversion, they cannot power on.

2. The power grid must use alternating current (AC) for transmission. Power plants are mostly located in mountainous areas or near the coast. For long-distance power transmission:

✅ Advantages of AC: High-voltage, low-current transmission with minimal loss;

❌ Direct current (DC): Difficult to boost voltage, high loss, and high cost. Therefore, the power grid first transmits power at high voltage (AC), then reduces it to 220V AC in residential areas, and finally, the equipment converts it to DC.

In short:

The power grid uses AC for efficient power transmission, while equipment uses DC for safe operation. AC-DC converters act as the "translators" between the two!

 

II. There are only two paths for AC→DC: Have you chosen the right one?

There are two main AC-to-DC conversion methods, with completely different principles, structures, advantages, and disadvantages, which are easy to understand at a glance

Method 1: Traditional Transformer Conversion (Old-school, stable)

Three-step simplified process:

A low-frequency transformer first converts high-voltage AC to low-voltage AC (suitable for 50/60Hz AC mains);
A rectifier circuit converts the low-voltage AC to pulsating DC;
A capacitor filter smooths out the ripple, resulting in a relatively stable DC output.

Key features:

✅ Simple circuit, low interference, low cost;

❌ Large size, bulky, high heat generation, low efficiency. Suitable for: Low-power, low-requirement, low-cost scenarios.

najnowsze wiadomości o firmie AC-DC Working Principle + PCB Design Essentials: Understand Power Supply Design in Seconds!  0

Figure 1: Rectification Method Schematic Diagram

najnowsze wiadomości o firmie AC-DC Working Principle + PCB Design Essentials: Understand Power Supply Design in Seconds!  1
Figure 2: AC-DC Transformer Implementation Block Diagram

najnowsze wiadomości o firmie AC-DC Working Principle + PCB Design Essentials: Understand Power Supply Design in Seconds!  2
Figure 3: Transformer Method Waveform Change Diagram

Method 2: Switching Power Supply Conversion (Mainstream High-Efficiency Type)

Now used in chargers, adapters, and switching power supplies, it offers precise conversion in 6 steps:

Bridge Rectification: AC → High-Voltage DC;
Input Capacitor: Smooths the voltage;
Switching Transistor Chopper: Cuts DC into high-frequency pulses;
High-Frequency Transformer: Steps down and isolates, converting to a square wave;
Output Diode: Half-Wave Rectification;
Output Capacitor: Filters again, providing stable DC output.

Core Features:

✅ Small size, light weight, ultra-high efficiency;

❌ Complex circuitry, high interference, difficult EMC management. Suitable for: Mobile phone chargers, PC power supplies, industrial power supplies, and most other scenarios.

najnowsze wiadomości o firmie AC-DC Working Principle + PCB Design Essentials: Understand Power Supply Design in Seconds!  3

Figure 4: Block Diagram of AC-DC Switching Implementation

najnowsze wiadomości o firmie AC-DC Working Principle + PCB Design Essentials: Understand Power Supply Design in Seconds!  4
Figure 5: Waveform Change Diagram of Switching Mode

najnowsze wiadomości o firmie AC-DC Working Principle + PCB Design Essentials: Understand Power Supply Design in Seconds!  5
Figure 6: Comparison Table of Advantages and Disadvantages of Two Conversion Methods

 

III. Complete AC-DC Circuit: More Than Just Conversion, Safety and Reliability

Don't think it's over after conversion! A qualified AC-DC power supply must include 6 major modules:

Input Filtering: Filters out high-frequency noise and interference, protecting downstream stages;
Rectifier Bridge: Composed of 4 diodes, AC → Pulsating DC;
Filtering Circuit: Capacitors/Inductors, smoothing out ripple;
Voltage Regulator Circuit: Feedback regulation, ensuring stable output voltage;
Protection Circuit: Overcurrent, overvoltage, and short-circuit protection, preventing blow-up;
Control Circuit: Chip + feedback, managing the overall operation.

 

IV. Practical Circuit Explanation: Taking the HFC0500 Chip as an Example

Let's walk through the design process using the commonly used HFC0500 chip. After reading, you can easily copy the design.

Fuse + Common Mode Inductor + X Capacitor: Overcurrent Protection + Interference Filtering (Y Capacitor Filters Common Mode);
Rectifier Bridge + Large Capacitor: AC → Smooth High Voltage DC;
RCD Snubber Circuit: Protects the Switching Transistor and Withstands Voltage Spikes;
HFC0500 Pin 5 Output Driver: Controls the Switching Transistor for High-Frequency Chopping;
High-Frequency Transformer T1: Step-Down + Electrical Isolation;
Output Diode + Capacitor: Rectification and Filtering, Output Target Voltage;
Optocoupler Feedback: Isolation Sampling, Precise Voltage Regulation.

najnowsze wiadomości o firmie AC-DC Working Principle + PCB Design Essentials: Understand Power Supply Design in Seconds!  6

najnowsze wiadomości o firmie AC-DC Working Principle + PCB Design Essentials: Understand Power Supply Design in Seconds!  7

Figure 7: HFC0500 Pin Layout + Application Circuit Diagram

 

V. 5 Golden Rules of PCB Design: 90% of People Fail Here!

AC-DC is high-voltage + high-frequency. One wrong step in PCB design can lead to interference, overheating, and even system failure! Remember these 5 points for a successful first attempt 

1. Minimize the three main loops!

Power supply interference immunity depends on the loop size; the smaller the loop, the stronger the immunity:

Input loop: C1→T1→Q1→R11/12/13→C1
Auxiliary winding loop: T1→D4→R4→C3→T1
Output loop: T1→D6→C10→T1
The smaller the loop, the lower the radiation and the stronger the interference immunity.

2. Strictly separate GND
Input ground and control ground are connected at a single point, converging only at C1 to avoid ground loop interference.

3. Isolate high-frequency interference
Connect the heatsink of the switching transistor Q1 to the main GND; Clear the board frame in the high-frequency switching area to physically isolate noise.

4. Feedback lines are the "lifeline"
Completely separate power lines from feedback lines;
The shorter the feedback line, the better, and keep it away from interference sources.

5. Optocouplers must be isolated. The optocoupler's core is hollowed out to ensure electrical isolation between the primary and secondary sides, improving safety and interference immunity.

 

VI. Final Summary

AC-DC conversion looks complex, but it boils down to three layers of logic:

1. Why convert: The power grid uses AC, the equipment uses DC;

2. How to convert: Transformer-type / Switching-type, switching-type is the mainstream;

3. How to do it well: Complete circuit + protection + meticulous PCB details.