A plug is a device used to connect an electrical appliance to a power source, typically featuring prongs that fit into a socket. It serves as a critical interface between electrical devices and the power supply, ensuring a safe and reliable connection. Plugs are commonly used in households, industries, and commercial settings to power various appliances such as lamps, computers, and kitchen equipment.
Below is a table describing the pin configuration for a standard three-prong plug:
Pin Name | Description |
---|---|
Live (L) | Carries the current from the power source to the appliance. |
Neutral (N) | Completes the circuit by returning current to the power source. |
Ground (G) | Provides a safety path for fault currents to prevent electric shock. |
For two-prong plugs, only the Live (L) and Neutral (N) pins are present, and they lack a grounding pin.
If you are using a plug to power an Arduino UNO via an external power adapter, follow these steps:
// Example Arduino code to blink an LED
// This assumes the Arduino UNO is powered via a plug and external adapter
void setup() {
pinMode(13, OUTPUT); // Set pin 13 as an output for the onboard LED
}
void loop() {
digitalWrite(13, HIGH); // Turn the LED on
delay(1000); // Wait for 1 second
digitalWrite(13, LOW); // Turn the LED off
delay(1000); // Wait for 1 second
}
Plug Does Not Fit the Socket:
Appliance Does Not Power On:
Overheating Plug:
Sparks When Plugging In: