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 electric charge flows in a single direction, AC is characterized by its oscillating nature. This makes it highly efficient for transmitting power over long distances, which is why it is commonly used in power supplies and household electrical outlets.
Parameter | Value |
---|---|
Voltage Range | 110V - 240V |
Frequency | 50Hz or 60Hz |
Phase | Single-phase or Three-phase |
Power Rating | Varies based on application |
Since AC is typically delivered through power outlets and not through pins like other electronic components, the following table describes the standard wiring configuration for a typical household AC outlet.
Pin Name | Description |
---|---|
Live (L) | Carries the current to the load |
Neutral (N) | Returns the current to the source |
Ground (G) | Safety ground to prevent electric shock |
No Power to Device:
Electric Shock:
Overheating:
Q1: Can I use AC for all electronic devices?
Q2: What is the difference between single-phase and three-phase AC?
Q3: How do I measure AC voltage?
While AC is not directly used with microcontrollers like the Arduino UNO, you can use an AC voltage sensor to measure AC voltage. Below is an example code to read AC voltage using an AC voltage sensor.
// Example code to read AC voltage using an AC voltage sensor with Arduino UNO
const int sensorPin = A0; // Pin connected to the sensor output
float voltage = 0.0; // Variable to store the voltage value
void setup() {
Serial.begin(9600); // Initialize serial communication
}
void loop() {
int sensorValue = analogRead(sensorPin); // Read the sensor value
voltage = sensorValue * (5.0 / 1023.0); // Convert the sensor value to voltage
// Print the voltage value to the Serial Monitor
Serial.print("AC Voltage: ");
Serial.print(voltage);
Serial.println(" V");
delay(1000); // Wait for 1 second before the next reading
}
This code reads the output from an AC voltage sensor connected to the Arduino UNO and prints the measured voltage to the Serial Monitor. Note that this is a simplified example and actual implementation may require additional components and safety measures.
This documentation provides a comprehensive overview of Alternative Current (AC), including its technical specifications, usage instructions, troubleshooting tips, and an example code for interfacing with an Arduino UNO. Whether you are a beginner or an experienced user, this guide aims to help you understand and effectively use AC in your projects.