









The 1 gang socket typically has three terminals for wiring:
| Terminal Name | Description | Wire Connection Type |
|---|---|---|
| Live (L) | Connects to the live/hot wire | Brown (or Red) |
| Neutral (N) | Connects to the neutral wire | Blue (or Black) |
| Earth (E) | Connects to the ground/earth wire | Green/Yellow |
Note: Wire color codes may vary by country. Always follow local electrical standards.
Installation:
Important Considerations:
Best Practices:
Arduino UNO Integration: While the 1 gang socket is not directly compatible with low-voltage microcontrollers like the Arduino UNO, it can be controlled indirectly using a relay module. Below is an example of how to control a device connected to a 1 gang socket using an Arduino and a relay:
/*
Example: Controlling a 1 Gang Socket with Arduino and Relay
This code toggles a relay to control a device connected to the socket.
WARNING: Ensure proper isolation between high-voltage and low-voltage circuits.
*/
const int relayPin = 7; // Pin connected to the relay module
void setup() {
pinMode(relayPin, OUTPUT); // Set relay pin as output
digitalWrite(relayPin, LOW); // Ensure relay is off initially
}
void loop() {
digitalWrite(relayPin, HIGH); // Turn on the relay (socket powered)
delay(5000); // Keep the socket powered for 5 seconds
digitalWrite(relayPin, LOW); // Turn off the relay (socket off)
delay(5000); // Wait for 5 seconds before repeating
}
Warning: High-voltage wiring should only be handled by qualified personnel. Always use a relay module with proper isolation to control mains power.
Socket not providing power:
Overheating socket:
Device not turning on when controlled via Arduino:
Can I use a 1 gang socket outdoors?
What is the difference between a 1 gang and 2 gang socket?
Can I install a 1 gang socket myself?
Is surge protection included in all 1 gang sockets?