Microprocessor controlled light dimmer?

  • Thread starter dencker
  • Start date
  • Tags
    Light
In summary: If this is a one-off use a J8 (edit: your favorite microcontroller) and bias it off the line with a resistor and shunt regulator, I guess. What's your total current burden?
  • #1
dencker
5
0
Hi folks :smile:

At the moment I'm rebuilding my room, and now I want to make a programmable, remote controlled light dimmer. The remote isn't my problem.
I already have a dimmer with a built-in potentiometer. My AVR Mega16 processors output is digital - either 0V or 5V.
I thought of using a DAC (Digital-Analog Converter), which I will then connect to a MOSFET (i.e. TIP120). Could I just directly replace the potentiometer with a MOSFET which I then control from my micro processor?
Or isn't it that simple? :biggrin:

Thanks in advance,
Dencker.
 
Engineering news on Phys.org
  • #2
dencker said:
Hi folks :smile:

At the moment I'm rebuilding my room, and now I want to make a programmable, remote controlled light dimmer. The remote isn't my problem.
I already have a dimmer with a built-in potentiometer. My AVR Mega16 processors output is digital - either 0V or 5V.
I thought of using a DAC (Digital-Analog Converter), which I will then connect to a MOSFET (i.e. TIP120). Could I just directly replace the potentiometer with a MOSFET which I then control from my micro processor?
Or isn't it that simple? :biggrin:

Thanks in advance,
Dencker.

I'm kinda not clear on what you have and what you don't have. Assuming you want to control it using RF, I would buy an RF rx and tx module on ebay and interface the RX module to your AVR. The RF modules are easy to interface with. When you press "on" on the TX module, the RX module output goes high. Then program your AVR watch for the "high" signal from the RX module and send out the appropriate PWM signal to your mosfet which switches your light.

It will be relativity complicated if you use DAC to control the brightness of your light instead of PWM.
 
  • #3
The remote controlling should be no problem receiving, I already programmed this and made the processor understand certain commands from the remote I want to use :smile:

I'm quite new to this subject, so excuse me for any dumb questions :-) But how would a MOSFET "understand" a PWM signal? Wouldn't it just turn on and off?
 
  • #4
http://screencast.com/t/llDqlQEJl

The mosfet you see on the sketch above is what I intend to replace the potentiometer from the dimmer with, like these:
http://www.elari.com/inside/images/dimmer-ryhma2(net).jpg

Where, instead of the button, is a mosfet. Kinda hard to explain, but I kinda want the mosfet to act like a resistor instead of the 'turning-knob', which I will then control from my AVR Proc.
 
  • #5
Also, nevermind about the GND symbols.
 
  • #6
Is this AC lighting we are talking about? If it is you can't treat it like you would with a DC LED. A reverse bais mosfet controlled by a PWM is not something you can use to control the voltage or current of a 120VAC light.
 
  • #7
There's a potentiometer in your dimmer, but that's usually not what controls the brightness. You usually have a thyristor (triac) whose firing angle is controlled based on the potentiometer setting. It is similar to PWM chopping, but you pass, for instance, 40% of the AC wave form through to achieve 40% light (it's not always one to one like this, but I'll use that to illustrate the point).

There's a nice animation on the Wiki that illustrates what I'm talking about:
http://en.wikipedia.org/wiki/Thyristor

EDIT: And you can use the microprocessor to control the thyristor's firing angle.
 
Last edited:
  • #8
The potentiometer controls the triac, the triac controls the firing angle.

A Mosfet will conduct equally well in both directions. Still, the FET source will tie to Neutral. Either you have to run the control circuit hot, or isolate it with an opto-isolator, for one. Linearity may be a problem. The Fet channel resistance is exponential in the gate-source voltage. You're uController needs to compensate for this. Because it's so nonlinear your uC needs a 16 bit counter, or two in series, or you could do it in software. You can find a uC with a D to A output, or pulse width modulate, then smooth it with a low pass RC arrangement. The FET gate capacitance may serves to some of this purpose.
 
  • #9
Oh alright, I get the idea. So how would you suggest that I solve my problem best?
 
  • #10
dencker said:
Oh alright, I get the idea. So how would you suggest that I solve my problem best?

If this is a one-off use a J8 (edit: your favorite microcontroller) and bias it off the line with a resistor and shunt regulator, I guess. What's your total current burden?
 
Last edited:

Related to Microprocessor controlled light dimmer?

1. What is a microprocessor controlled light dimmer?

A microprocessor controlled light dimmer is a device that uses a microprocessor or small computer chip to regulate the amount of electricity flowing to a light source, allowing for adjustable brightness levels.

2. How does a microprocessor controlled light dimmer work?

A microprocessor controlled light dimmer uses a small computer chip to control the flow of electricity to the light source. The chip receives signals from a dimmer switch or remote control and adjusts the amount of electricity flowing to the light, resulting in a change in brightness.

3. What are the benefits of using a microprocessor controlled light dimmer?

There are several benefits to using a microprocessor controlled light dimmer, including energy efficiency, extended bulb life, and the ability to create different lighting levels for different activities or moods. It can also be used to create a more visually appealing and comfortable environment.

4. Can a microprocessor controlled light dimmer be used with all types of light bulbs?

Most microprocessor controlled light dimmers are designed to work with a variety of light bulbs, including incandescent, halogen, and LED bulbs. However, it is important to check the specifications of the dimmer to ensure compatibility with the specific type of bulb you are using.

5. Is it difficult to install a microprocessor controlled light dimmer?

The difficulty of installing a microprocessor controlled light dimmer depends on the specific model and your level of experience with electrical work. In general, it is recommended to hire a licensed electrician for installation to ensure safety and proper functioning of the dimmer.

Similar threads

Replies
2
Views
6K
Replies
4
Views
3K
  • Electrical Engineering
Replies
13
Views
3K
Replies
3
Views
3K
Replies
13
Views
5K
  • Electrical Engineering
Replies
2
Views
4K
Replies
12
Views
21K
  • Electrical Engineering
Replies
12
Views
14K
Replies
2
Views
3K
  • Aerospace Engineering
Replies
2
Views
7K
Back
Top