i need control AC 220v brightness with IR and relay any idea ?
any idea ?
Use google. It isn't rocket science (to use google).
Crosspost removed
MouadAd:
i need control AC 220v brightness with IR and relay any idea ?
Do you mean adjust the brightness of a lamp from 0 to max by using an infrared remote?
If so, please let me say a few things:
First and foremost (please don't be insulted) if you have to ask such a question, then I worry that you may not know just how dangerous working with AC mains power (ESPECIALLY 220 volts) can be. If you do not know exactly what you are doing, you could very easily kill yourself. No exaggeration. Please be careful. If you don't have experience working with AC mains, get some help from a knowledgeable person and in ANY event NEVER work alone (have someone else present). If you get zapped and you are alone, you could be found dead days later whereas a buddy could immediately call for help and save you. .Seriously.
Now, to your question. In order to "dim" (control) an AC lamp, you need to use pulse width modulation. Normally, this is done with a lamp dimmer which is setup to begin conducting (turn on) at various points on the AC sine waveform, depending on where the dimmer is set. Since you vary the START time and the END time is fixed, you get pulse width modulation (that is, you send little, more, most or all of the sine waveform to the lamp, depending on the brightness setting).
It is not possible to directly control a lamp dimmer with an Arduino board, so the next option would be to use a solid state relay controlled by the Arduino to control the AC waveform.
But, this has it's own problems, because many solid state relays cannot be turned on and off fast enough (50 or 60 times per second), and you would need some way to synchronize the turn on signals from the Arduino with the AC line frequency (actually, even PHASE matched).
All in all, not practical to set up (too complicated - both in wiring and coding).
In summary, I don't think it's possible (at least it's not practical) to try to use an Arduino to control a lamp's brightness.
Receiving and decoding IR signals is a piece of cake for an Arduino, but there's no practical way (that I know of) to make use of the control signals to vary an AC lamp's brightness.
I may have missed an idea though... wait for others to provide their input.. there may BE a way to do it.
Sorry I can't give you more.