

Alternative Current (AC) is a type of electrical current in which the flow of electric charge periodically reverses direction. Unlike Direct Current (DC), where the flow of charge is unidirectional, AC is characterized by its sinusoidal waveform, which alternates between positive and negative values. This property makes AC highly efficient for transmitting electricity over long distances, which is why it is the standard for household and industrial power supply systems.








The characteristics of AC can vary depending on the application and region. Below are the general technical specifications:
| Parameter | Description |
|---|---|
| Frequency | Typically 50 Hz (Europe, Asia) or 60 Hz (North America). |
| Voltage | Commonly 110V, 120V, 220V, or 240V, depending on the region. |
| Waveform | Sinusoidal (most common), but can also be square or triangular in some systems. |
| Phase | Single-phase or three-phase configurations. |
| Current Direction | Alternates periodically, reversing direction at the specified frequency. |
| Term | Definition |
|---|---|
| Peak Voltage (Vp) | Maximum voltage reached by the waveform. |
| Root Mean Square (RMS) | Effective voltage value, typically used for power calculations. |
| Period (T) | Time taken for one complete cycle of the waveform. |
| Frequency (f) | Number of cycles per second, measured in Hertz (Hz). |
While Arduino boards typically operate on DC, you can use AC indirectly by employing a step-down transformer and a rectifier circuit to convert AC to DC. Below is an example of how to measure the frequency of an AC signal using an Arduino UNO and a voltage divider circuit to step down the AC signal to a safe level.
// Example code to measure AC signal frequency using Arduino UNO
// Ensure the AC signal is stepped down and rectified to a safe DC level
// before connecting to the Arduino's analog input pin.
const int acSignalPin = 2; // Digital pin to read the AC signal
volatile unsigned long pulseCount = 0; // Counter for AC signal pulses
unsigned long startTime = 0; // Start time for frequency calculation
void setup() {
pinMode(acSignalPin, INPUT); // Set the pin as input
attachInterrupt(digitalPinToInterrupt(acSignalPin), countPulse, RISING);
Serial.begin(9600); // Initialize serial communication
startTime = millis(); // Record the start time
}
void loop() {
unsigned long currentTime = millis();
if (currentTime - startTime >= 1000) { // Calculate frequency every second
noInterrupts(); // Disable interrupts to read pulseCount safely
unsigned long frequency = pulseCount; // Frequency in Hz
pulseCount = 0; // Reset pulse count
interrupts(); // Re-enable interrupts
startTime = currentTime; // Reset start time
Serial.print("Frequency: ");
Serial.print(frequency);
Serial.println(" Hz");
}
}
void countPulse() {
pulseCount++; // Increment pulse count on each rising edge
}
Note: Ensure the AC signal is stepped down and rectified to a safe DC level (e.g., 5V peak) before connecting it to the Arduino. Use a voltage divider and a diode for this purpose.
AC Device Not Powering On
Overheating of Components
Electric Shocks
Noise or Flickering in AC-Powered Devices
Q1: Can AC be converted to DC?
Yes, AC can be converted to DC using a rectifier circuit, which typically consists of diodes and capacitors.
Q2: Why is AC preferred for power transmission?
AC is preferred because it can be easily stepped up or down in voltage using transformers, reducing energy losses during long-distance transmission.
Q3: What is the difference between single-phase and three-phase AC?
Single-phase AC has one sinusoidal voltage waveform, while three-phase AC has three waveforms, each 120° out of phase, providing more consistent power delivery.
Q4: Is AC dangerous?
Yes, AC can be dangerous due to its high voltage and current levels. Always follow proper safety precautions when working with AC systems.