

An AC source is an electronic component or device that provides alternating current (AC), a type of electrical current that periodically reverses direction. Unlike direct current (DC), which flows in a single direction, AC is characterized by its sinusoidal waveform and is the standard form of electricity supplied to homes, businesses, and industries. AC sources are essential for powering a wide range of devices, from household appliances to industrial machinery.








Below are the key technical details of a typical AC source:
| Parameter | Specification |
|---|---|
| Voltage Range | 110V to 240V (common household range) |
| Frequency Range | 50 Hz or 60 Hz (region-dependent) |
| Output Waveform | Sinusoidal |
| Power Rating | Varies (e.g., 100W, 500W, 1kW, etc.) |
| Phase Configuration | Single-phase or three-phase |
| Output Terminals | Live (L), Neutral (N), and Ground (G) |
The AC source typically has three output terminals:
| Pin | Name | Description |
|---|---|---|
| 1 | Live (L) | Provides the active phase of the AC voltage. |
| 2 | Neutral (N) | Completes the circuit and provides the return path for current. |
| 3 | Ground (G) | Safety connection to prevent electric shock and protect against power surges. |
While the Arduino UNO operates on DC, you can use an AC source to power devices controlled by the Arduino. For example, you can use a relay module to switch an AC load on or off. Below is an example code snippet:
/*
Example: Controlling an AC load with an Arduino UNO and a relay module.
This code toggles the relay on and off every 2 seconds.
*/
const int relayPin = 7; // Pin connected to the relay module
void setup() {
pinMode(relayPin, OUTPUT); // Set the relay pin as an output
}
void loop() {
digitalWrite(relayPin, HIGH); // Turn the relay ON (AC load powered)
delay(2000); // Wait for 2 seconds
digitalWrite(relayPin, LOW); // Turn the relay OFF (AC load off)
delay(2000); // Wait for 2 seconds
}
Note: Ensure the relay module is rated for the AC voltage and current of your load.
No Output from the AC Source:
Circuit Overload or Tripping:
Electric Shock Risk:
Device Not Operating Properly:
By following these guidelines, you can safely and effectively use an AC source in your electronic projects.