A green pilot lamp is a simple yet crucial component in various electrical and electronic systems. It serves as an indicator light that illuminates when the circuit is energized, providing a visual confirmation of the operational status. Commonly found on control panels, machinery, and household appliances, green pilot lamps are used to indicate power on, system normal, or safe conditions.
Pin Number | Description | Notes |
---|---|---|
1 | Anode (+) | Connect to positive voltage |
2 | Cathode (-) | Connect to ground (0V) |
Note: The pin configuration may vary depending on the specific design of the pilot lamp. Always refer to the manufacturer's datasheet for exact details.
Q: Can I use a green pilot lamp with an Arduino UNO? A: Yes, you can use a green pilot lamp with an Arduino UNO, but ensure you include a current-limiting resistor.
Q: What size of resistor do I need for a 5V circuit? A: For a typical LED pilot lamp with a forward voltage of 2V and current rating of 20mA, use a resistor value of (5V - 2V) / 20mA = 150Ω.
Q: How do I know if my pilot lamp is burnt out? A: If the lamp does not illuminate when voltage is applied and all connections are correct, the lamp may be burnt out and needs replacement.
// Define the pin where the pilot lamp is connected
const int pilotLampPin = 13; // Using the built-in LED pin for demonstration
void setup() {
// Set the pilot lamp pin as an output
pinMode(pilotLampPin, OUTPUT);
}
void loop() {
// Turn on the pilot lamp
digitalWrite(pilotLampPin, HIGH);
// Keep the lamp on for 1 second
delay(1000);
// Turn off the pilot lamp
digitalWrite(pilotLampPin, LOW);
// Keep the lamp off for 1 second
delay(1000);
}
Note: The above code uses the built-in LED on the Arduino UNO for demonstration purposes. When connecting an external pilot lamp, ensure it is connected through a current-limiting resistor to the specified digital pin.