dimmer

hi guys.

first sorry for my english.

I want create my own dimmer controller by ARDUINO.

my english is bad so i do this shema for you that you can understand what i want:

https://www.hostingpics.net/viewer.php?id=84258314997805104439dfg1.jpg

The charger will remplace my Arduino with power supply (220V to 5V for keep my arduino on all times).

now, if the LAMP is off, my arduino have 220V so i can controll my lampe and turn it on.

BUT

if i turn on the LAMP my arduino will have 0V then i cant turn off my LAMP.

what should i do that my arduino keep have 220V ?

thank you

The 5 volt supply must be connected between phase and neutral, not in series with the phase wire.

Hi,
If you want to dim your lamp you will need more than a SSR , Arduino and a 5V supply.
You need to research how an AC lamp is dimmed, it is called phase control and this link will help.

https://playground.arduino.cc/Main/ACPhaseControl

Tom... :slight_smile:

hi

https://www.hostingpics.net/viewer.php?id=729801Dimmer2fils.jpg

this product use only the phase to work.

i think that i need to add a capacitor in my schema(my picture) but i dont know how i can do that if someone can help me to complet my picture(schema)

and sorry for my english

This picture?

There is an SSR (wired correctly) and the 5 volt power supply (wired incorrectly).

Where are you doing phase control (dimming) in this schematic? The SSR shown does not dim, only on and off control. Please clarify what you want to do, a capacitor has no place in the schematic shown.

Your second image here:

Shows a proper dimmer, wired correctly.

i want create something like this product: Dimmer - YouTube

with arduino can you help me ?

how i can turn on arduino with only phase line ?

thank you

If you have to ask, you shouldn’t be playing with 220 volts AC. I’m not trying to be cruel, but it’s the truth.

yep and thats why am here, just for talking with people who have experience.

i want just know how i can keep work my ATMEGA328P using only the phase

You can't.

And that's not what your examples do either.
The example you show in that video clearly says wireless dimmer module.
It relies on a WiFi signal which could be controlled by an Arduino or any other controller.

shell_traywnd:
yep and thats why am here, just for talking with people who have experience.

i want just know how i can keep work my ATMEGA328P using only the phase

You just want to talk about it? Not build it?

If you’re unsure of electrical principles, don’t work with high voltages. You could easily kill yourself, or worse, someone else.