The AC Detector is a device designed to detect the presence of alternating current (AC) in a circuit. It is commonly used for safety and diagnostic purposes, allowing users to identify live wires and ensure that circuits are de-energized before performing maintenance or repairs. This component is essential for electricians, hobbyists, and engineers who work with AC-powered systems.
Parameter | Value |
---|---|
Operating Voltage | 3.3V - 5V |
Detection Voltage | 90V - 250V AC |
Output Type | Digital (High/Low) |
Response Time | < 100ms |
Operating Temperature | -10°C to 50°C |
Dimensions | 30mm x 20mm x 10mm |
Pin Number | Pin Name | Description |
---|---|---|
1 | VCC | Power supply (3.3V - 5V) |
2 | GND | Ground |
3 | OUT | Digital output (High when AC is detected, Low otherwise) |
// Example code to use AC Detector with Arduino UNO
const int acDetectorPin = 2; // Digital pin connected to OUT pin of AC Detector
const int ledPin = 13; // Onboard LED pin
void setup() {
pinMode(acDetectorPin, INPUT); // Set acDetectorPin as input
pinMode(ledPin, OUTPUT); // Set ledPin as output
Serial.begin(9600); // Initialize serial communication
}
void loop() {
int acStatus = digitalRead(acDetectorPin); // Read the status from AC Detector
if (acStatus == HIGH) {
digitalWrite(ledPin, HIGH); // Turn on LED if AC is detected
Serial.println("AC Detected");
} else {
digitalWrite(ledPin, LOW); // Turn off LED if no AC is detected
Serial.println("No AC Detected");
}
delay(500); // Wait for 500 milliseconds before next reading
}
No Detection: The AC Detector does not detect AC even when placed near a live wire.
False Positives: The AC Detector indicates AC presence even when there is no AC.
Intermittent Detection: The AC Detector's output fluctuates between high and low.
By following this documentation, users can effectively utilize the AC Detector for their safety and diagnostic needs in AC-powered systems.