

A lampholder is a device designed to securely hold a light bulb in place while providing the necessary electrical connections to the bulb's base. It ensures that the bulb receives power and can function effectively in various lighting applications. Lampholders are essential components in lighting systems and are available in various types to accommodate different bulb designs, such as screw-type, bayonet, or pin-based bulbs.








Lampholders do not have traditional "pins" like electronic components but instead have terminals for electrical connections. Below is a table describing the typical terminal configuration:
| Terminal Name | Description |
|---|---|
| Live (L) | Connects to the live wire of the AC supply. |
| Neutral (N) | Connects to the neutral wire of the AC supply. |
| Ground (G) | Optional; connects to the ground wire for safety (available in some models). |
Below is an example of how to control a lamp connected to a lampholder using an Arduino UNO and a relay module:
// This code demonstrates how to control a lamp using an Arduino and a relay module.
// The lamp is connected to the relay, which is controlled by pin 7 on the Arduino.
const int relayPin = 7; // Pin connected to the relay module
void setup() {
pinMode(relayPin, OUTPUT); // Set the relay pin as an output
digitalWrite(relayPin, LOW); // Ensure the relay is off at startup
}
void loop() {
digitalWrite(relayPin, HIGH); // Turn the lamp ON
delay(5000); // Keep the lamp ON for 5 seconds
digitalWrite(relayPin, LOW); // Turn the lamp OFF
delay(5000); // Keep the lamp OFF for 5 seconds
}
Note: Ensure the relay module is rated for the voltage and current of the lamp. The relay should isolate the high-voltage AC circuit from the low-voltage Arduino circuit.
The bulb does not light up:
Sparks or overheating at the lampholder:
Loose bulb connection:
Can I use a plastic lampholder for high-wattage bulbs?
Is it safe to use a lampholder without a ground connection?
Can I connect a lampholder directly to a microcontroller?
By following this documentation, you can safely and effectively use a lampholder in your lighting projects.