A **device that turns DC (Direct Current) into AC (Alternating Current)** is called an **inverter**.
### How it works:
- **DC power** (like from a battery or solar panel) flows in one direction only.
- **AC power** (like from the power grid) reverses direction periodically.
An inverter converts DC to AC by rapidly switching the current direction on and off, creating an alternating flow of electricity. This is usually done with electronic components like **transistors** or **IGBTs (Insulated Gate Bipolar Transistors)**, which can quickly switch the direction of current.
The inverter adjusts the frequency and voltage of the output to match the requirements of the AC power system, making it usable for things like home appliances, grid connection, or even in renewable energy systems like solar power setups.