How to Make an Arduino Powered Lamp Dimmer
Ever wondered how to bring an Arduino board into your daily life? We often adjust the display brightness of our mobile phones to suit to our need. With this project, you can do that for your bedside lamps or any other lighting at home. We are going to teach you how to make an Arduino lamp dimmer. Using this project, you can control the brightness of your table lamp according to your needs and start building one!
- Resistors: 330ohm(1No.s), 33k(2no.s), 22k(1No.s), 220ohm(1No.s)
- Optocoupler: 4N35(1No.s)
- Diode: 1N4508(4No.s), 1N4007(1No.s), Zener 10V.4W(1No.s)
- Capacitor 2.2uF/63V(1No.s), 220nF/275V(1No.s)
- MOSFET: IRF830A
- Lamp: 100W
- 230V Supply
- Solder dot board and Soldering kit
How Does it Work?
In this project, we are going to adjust the brightness of the lamp connected to the circuit by serial port. The brightness can be changed according to the commands we provide to the serial port. We will be using these particular commands in this Arduino project:
- ‘0’ to TURN OFF.
- ‘1’ for 25% brightness.
- ‘2’ for 50% brightness.
- ‘3’ for 75% brightness.
- ‘4’ for 100% brightness.
We will design a Pulse Wave Modulated (PWM) dimmer circuit which will use an IRF830A in a diode bridge which is used to control the voltage across the bulb with pulse wave modulation (PWM). The power supply voltage for driving the gate is supplied with the voltage across the Metal Oxide Semiconductor Field-Effect Transistor (MOSFET).
Circuit for the Arduino Lamp Dimmer
The figure above explains the positioning of the different electrical components in the circuit. Follow the circuit diagram to solder your dot board.
You can use this picture as a reference when you solder your board.
To start, we have the diode D6, the load resistor R5, and the capacitor C2 connected. This forms our rectifier. Also, in the circuit, the positioning of the resistor R5 is such that it limits the current pulses through D6 to about 1.5A. This shows that the rectifier is not a pure peak rectifier.
Talking about the capacitor C2, the voltage across it is regulated to a maximum value of 10V by the resistors R3 and R4, capacitor C1, and diode D1.
The optocoupler and the remaining resistor R2 are used for driving the gate.
The function of R1 is to protect the LED in the optocoupler. Like R5, R1 also limits the current so that a ‘hard’ voltage can be applied safely. The optocoupler, CNY65, provides class-II isolation. (A class-II or double insulated electrical appliance is the one which has been designed in such a way that it does not require a safety connection to electrical earth). This is good enough to ensure safety to the regulator.
Now we need the conduction in the MOSFET as quickly as possible. For this, we connect the transistor in the optocoupler to the positive power supply. We have to make a compromise between the switching loss and the inductive voltages as we keep the rating of R2 a bit high, i.e., 22 K-ohm. This is done to reduce the switching spikes as a consequence of parasitic inductances.
One additional advantage of the MOSFET is that it helps in the conduction. It conducts for a longer duration than a PWM would do single headedly. Some interesting information is that when the voltage across the MOSFET reduces, the voltage across D1 remains equal to 10V upon a duty cycle of 88%.
A duty cycle is the percentage of one period up to which a signal is active. A period is the time it takes to complete an on-and-off cycle. The expression for the duty cycle is:
D = (T/P)*100%
D is the duty cycle.
T is the time the signal is active.
P is the total period of the signal.
A higher duty cycle results in lowering of the voltage. For an instance, at 94% duty cycle, the voltage of 4.8A proved to be just enough to cause the MOSFET to conduct sufficiently. This value is therefore considered as the maximum duty cycle. Also, at this value, the transistor conducts just about cent percent. Measuring with a 100W bulb, the voltage across a 230V mains supply is just 2.5V lower.
Note: This circuit should not be used to control inductive loads. The MOSFET is switched asynchronously and this can cause the DC current to flow.
Read More: How to Make an Arduino Powered Lamp Dimmer
EasyEDA: Ideas for Circuit Design, Innovation for Electronics Access
Free Circuit Design: Schematic – Simulation – PCB Layout – Gerber Viewer
JLCPCB Prototype: Only $2 for 10pcs 10×10cm, 24 hours Quick Turn, DHL Delivery in 3 days