A dimmer is an electronic device that is used to control the brightness of a light source or the speed of a motor. It works by varying the voltage and waveform applied to the device it controls. Dimmers are commonly used in lighting applications to create ambiance and save energy, and in motor control applications to adjust the speed of fans, pumps, and other motor-driven equipment.
Pin Number | Description | Notes |
---|---|---|
1 | AC Input (Live) | Connects to live wire of AC mains |
2 | AC Input (Neutral) | Connects to neutral wire of AC mains |
3 | Output (Live) | Connects to the load (e.g., light bulb) |
4 | Output (Neutral) | Connects to the neutral side of the load |
5 | Control Signal Input | Accepts PWM signal for dimming control |
6 | Ground (for Control Signal) | Connects to system ground |
// Example code to control a dimmer module with an Arduino UNO
int dimmerPin = 3; // Connect to the control signal input of the dimmer
int brightness = 0; // Variable to store the brightness level
void setup() {
pinMode(dimmerPin, OUTPUT);
}
void loop() {
for (brightness = 0; brightness <= 255; brightness += 5) {
// Increase the brightness gradually
analogWrite(dimmerPin, brightness);
delay(30); // Wait for 30 milliseconds
}
for (brightness = 255; brightness >= 0; brightness -= 5) {
// Decrease the brightness gradually
analogWrite(dimmerPin, brightness);
delay(30); // Wait for 30 milliseconds
}
}
Q: Can I use a dimmer with any type of light bulb? A: Not all light bulbs are dimmable. Check the bulb's specifications to ensure it is compatible with dimming.
Q: What is the maximum power I can control with a dimmer? A: This depends on the specific model of the dimmer. Always refer to the technical specifications for maximum power ratings.
Q: Can I use a dimmer to control the speed of an AC motor? A: Dimmers designed for lights are not suitable for AC motors. Use a motor speed controller specifically designed for that purpose.