AC Dimmer for ESPeasy

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
DeNB3rt
Normal user
Posts: 119
Joined: 15 Dec 2015, 14:07

AC Dimmer for ESPeasy

#1 Post by DeNB3rt » 16 Nov 2016, 14:44

Hi Guy's

Are there some of you familiar with AC dimmers and ESPeasy?

I don't mean the low voltage DC led dimmer like H801, but the normal household AC voltage :) .

I found a project around with phase detection mpdmw4 project,
http://www.esp8266-projects.com/2016/04 ... witch.html

I want to let my nodemcu control a dimmer to dim my 230V GU10 led bulbs or regular lights.

Thanks! :ugeek:
Located in Belgium, Bruges. Working on a full DIY domoticz setup with ESPEasy.

uhrheber
Normal user
Posts: 22
Joined: 26 Sep 2016, 14:03

Re: AC Dimmer for ESPeasy

#2 Post by uhrheber » 17 Nov 2016, 12:17

DeNB3rt,

I doubt that it's doable with the current structure of ESPEasy.
You'd be better off using an Arduino Nano (or bare AVR) as an I/O expander. You can use the expansion interface and the example code to send an analog value to the Arduino, and let it do the phase cut dimming. There's a lot of example code for this on the web that you could easily merge with the I/O expansion code.

I was thinking of doing so, but until now had no need for it.

Maybe in the future.

mgennip
Normal user
Posts: 22
Joined: 17 Jun 2016, 19:22

Re: AC Dimmer for ESPeasy

#3 Post by mgennip » 17 Nov 2016, 13:03

I have made an ESP8266 AC dimmer with an Atmega328 for phase control. Next week I will post the schematic and code on my website http://www.van-gennip.com

An ESP8266 runs on ESPEasy firmware and i have made a plugin that talks I2C to the Atmega328. It is similar to the pro mini extender, but my Atmega does the zero crossing detection and phase shifting.

It is in an earlyworking stage, but when i share my thoughts, i am sure that this will be picked up by others.

papperone
Normal user
Posts: 497
Joined: 04 Oct 2016, 23:16

Re: AC Dimmer for ESPeasy

#4 Post by papperone » 17 Nov 2016, 14:32

Anyway the MDPMV4 shoudl work with ESP8266 without any issue as the zero crossing detection has been implemented in its hardware.
As far as I can read the microcontroller needs to send only a control signal to control the duty cycle and not bother anymore with ZC and interrupts...

I did not test anythign as I believe AC dimmer are not in my plans due to the move to LED lights for many reasons... :)
My TINDIE Store where you can find all ESP8266 boards I manufacture --> https://www.tindie.com/stores/GiovanniCas/
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone

DeNB3rt
Normal user
Posts: 119
Joined: 15 Dec 2015, 14:07

Re: AC Dimmer for ESPeasy

#5 Post by DeNB3rt » 17 Nov 2016, 14:54

papperone wrote:Anyway the MDPMV4 shoudl work with ESP8266 without any issue as the zero crossing detection has been implemented in its hardware.
As far as I can read the microcontroller needs to send only a control signal to control the duty cycle and not bother anymore with ZC and interrupts...

I did not test anythign as I believe AC dimmer are not in my plans due to the move to LED lights for many reasons... :)
Indeed, everything is done by the MDPMV4.
But I can't find anyone who tried it with ESPEasy.
The reason why I want to dim AC, is that all my current led/conventional lights are AC 230V ;)
Located in Belgium, Bruges. Working on a full DIY domoticz setup with ESPEasy.

DeNB3rt
Normal user
Posts: 119
Joined: 15 Dec 2015, 14:07

Re: AC Dimmer for ESPeasy

#6 Post by DeNB3rt » 17 Nov 2016, 14:55

mgennip wrote:I have made an ESP8266 AC dimmer with an Atmega328 for phase control. Next week I will post the schematic and code on my website http://www.van-gennip.com

An ESP8266 runs on ESPEasy firmware and i have made a plugin that talks I2C to the Atmega328. It is similar to the pro mini extender, but my Atmega does the zero crossing detection and phase shifting.

It is in an earlyworking stage, but when i share my thoughts, i am sure that this will be picked up by others.
Please, let us know.
I already visited ur site, but the message say's '230v AC Dimmer under construction' ;)
Located in Belgium, Bruges. Working on a full DIY domoticz setup with ESPEasy.

papperone
Normal user
Posts: 497
Joined: 04 Oct 2016, 23:16

Re: AC Dimmer for ESPeasy

#7 Post by papperone » 17 Nov 2016, 15:50

DeNB3rt wrote:
papperone wrote:Anyway the MDPMV4 shoudl work with ESP8266 without any issue as the zero crossing detection has been implemented in its hardware.
As far as I can read the microcontroller needs to send only a control signal to control the duty cycle and not bother anymore with ZC and interrupts...

I did not test anythign as I believe AC dimmer are not in my plans due to the move to LED lights for many reasons... :)
Indeed, everything is done by the MDPMV4.
But I can't find anyone who tried it with ESPEasy.
The reason why I want to dim AC, is that all my current led/conventional lights are AC 230V ;)
Be careful, old bulbs normally can be dimmed with this board but LED bulbs are normally not dimmable, only few of them (and the more expensive!!) are.
Look at the "dimmable" icon on the box:
nodim.png
nodim.png (3.26 KiB) Viewed 11389 times
dim.png
dim.png (2.73 KiB) Viewed 11389 times
Not sure about halogen bulbs as I've read different feedback on the web :?:
My TINDIE Store where you can find all ESP8266 boards I manufacture --> https://www.tindie.com/stores/GiovanniCas/
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone

mgennip
Normal user
Posts: 22
Joined: 17 Jun 2016, 19:22

Re: AC Dimmer for ESPeasy

#8 Post by mgennip » 18 Nov 2016, 09:51

I have uploaded the schematic and code for the ESPEasy AC Dimmer to my website http://www.van-gennip.com

The schematic is drawn from my earlier breadboard setup. I have attached a photo so everyone can see how i did it.

The arduino code for the ATMEGA can be downloaded too. The code is very rough, not well documented, but working.

Also the plugin responsible for the communication with the ATMEGa is experimental. I have modified the existing PCA9685 plugin, but did
not yet copied and modified it to a new plugin.

For detecting the I2C dimmer, you must add the following to the webserver.ino in the void handle_i2cscanner()
case 0x6f:
reply += F("AC Dimmer");
break;

For now i don't have the time to go further with this project, maybe in the near future, i hope to finetune and make a plugin for the dimmer.

trackerj
Normal user
Posts: 44
Joined: 01 Dec 2016, 09:57

Re: AC Dimmer for ESPeasy

#9 Post by trackerj » 01 Dec 2016, 11:08

DeNB3rt wrote:Hi Guy's

Are there some of you familiar with AC dimmers and ESPeasy?

I don't mean the low voltage DC led dimmer like H801, but the normal household AC voltage :) .

I found a project around with phase detection mpdmw4 project,
http://www.esp8266-projects.com/2016/04 ... witch.html

I want to let my nodemcu control a dimmer to dim my 230V GU10 led bulbs or regular lights.

Thanks! :ugeek:
It is working very well if your setup will respect some simple conditions.

I have opened a related post, so everybody that has related questions about, can keep an eye here:
viewtopic.php?f=2&t=2362

Happy breadboarding,
TJ.
www.esp8266-projects.com - ESP8266 Projects and many more!
MPDMv4 Universal AC Dimmer is available also on TINDIE Store: https://www.tindie.com/stores/nEXT_EVO1/

DeNB3rt
Normal user
Posts: 119
Joined: 15 Dec 2015, 14:07

Re: AC Dimmer for ESPeasy

#10 Post by DeNB3rt » 06 Dec 2016, 11:09

okay thanks! my MPDMV4 arrived today :)
Located in Belgium, Bruges. Working on a full DIY domoticz setup with ESPEasy.

davidlightsa
Normal user
Posts: 2
Joined: 09 Jan 2017, 15:34

Re: AC Dimmer for ESPeasy

#11 Post by davidlightsa » 09 Jan 2017, 15:43

DeNB3rt wrote:okay thanks! my MPDMV4 arrived today :)
Did you have success with this board? I am keen to order a couple for my halogen downlighters.

trackerj
Normal user
Posts: 44
Joined: 01 Dec 2016, 09:57

Re: AC Dimmer for ESPeasy

#12 Post by trackerj » 09 Jan 2017, 16:04

davidlightsa wrote:
DeNB3rt wrote:okay thanks! my MPDMV4 arrived today :)
Did you have success with this board? I am keen to order a couple for my halogen downlighters.
Hi David,

You can find more MPDMv4 related informations on this dedicated thread:
viewtopic.php?f=2&t=2362

Happy breadboarding,
TJ.
www.esp8266-projects.com - ESP8266 Projects and many more!
MPDMv4 Universal AC Dimmer is available also on TINDIE Store: https://www.tindie.com/stores/nEXT_EVO1/

DeNB3rt
Normal user
Posts: 119
Joined: 15 Dec 2015, 14:07

Re: AC Dimmer for ESPeasy

#13 Post by DeNB3rt » 11 Jan 2017, 15:35

davidlightsa wrote:
DeNB3rt wrote:okay thanks! my MPDMV4 arrived today :)
Did you have success with this board? I am keen to order a couple for my halogen downlighters.
yes, very happy with it.
Check the thread in projects.
Located in Belgium, Bruges. Working on a full DIY domoticz setup with ESPEasy.

happytm
Normal user
Posts: 47
Joined: 15 Aug 2016, 17:53

Re: AC Dimmer for ESPeasy

#14 Post by happytm » 25 Aug 2017, 01:33

mgennip,

Can this code code be used for 2 channel AC dimmer.If so what do I have to add to your original code?

LisaM
Normal user
Posts: 511
Joined: 11 Apr 2017, 18:29

Re: AC Dimmer for ESPeasy

#15 Post by LisaM » 25 Aug 2017, 13:23

mgennip wrote:
17 Nov 2016, 13:03
I have made an ESP8266 AC dimmer with an Atmega328 for phase control. Next week I will post the schematic and code on my website http://www.van-gennip.com

An ESP8266 runs on ESPEasy firmware and i have made a plugin that talks I2C to the Atmega328. It is similar to the pro mini extender, but my Atmega does the zero crossing detection and phase shifting.

It is in an earlyworking stage, but when i share my thoughts, i am sure that this will be picked up by others.
Did you make a plugin for ArduinoEasy?

arnoldg
Normal user
Posts: 14
Joined: 29 Aug 2017, 07:02

Re: AC Dimmer for ESPeasy

#16 Post by arnoldg » 31 Dec 2017, 16:03

I’m currently in testing my own ac dimmer, and trying to fit it all in a european in wall box.

Curently i’m using a esp-12 for rhe communication, for controlling the light i use a attiny85.

I wrote my own plugin as far as i can see it is working fine, try to adjust a few more things and then going to develope a new pcb, the last one had some mistakes in it.

papperone
Normal user
Posts: 497
Joined: 04 Oct 2016, 23:16

Re: AC Dimmer for ESPeasy

#17 Post by papperone » 02 Jan 2018, 18:24

arnoldg wrote:
31 Dec 2017, 16:03
I’m currently in testing my own ac dimmer, and trying to fit it all in a european in wall box.

Curently i’m using a esp-12 for rhe communication, for controlling the light i use a attiny85.

I wrote my own plugin as far as i can see it is working fine, try to adjust a few more things and then going to develope a new pcb, the last one had some mistakes in it.
Great! Will you be sharing more tech details and/or schematic?
My TINDIE Store where you can find all ESP8266 boards I manufacture --> https://www.tindie.com/stores/GiovanniCas/
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone

arnoldg
Normal user
Posts: 14
Joined: 29 Aug 2017, 07:02

Re: AC Dimmer for ESPeasy

#18 Post by arnoldg » 05 Jan 2018, 16:34

look at the dutch page https://www.circuitsonline.net/forum/view/139309/1
but this was version 1, after getting the print i discoverd some problems, the E-12 needs more connections then i thought.

I let go i2c and now communicating with serial. becaus i need the int0 pin on the tiny for zcd.
now i'm in the process of remoddeling the stuf to get a new, better working dimmer board.

but first i wan't it all to control it over mqtt, here i'm a little stuck still in the processes of fiddeling out code and that kind of stuff :)

Meek
Normal user
Posts: 57
Joined: 31 Oct 2017, 15:50
Contact:

Re: AC Dimmer for ESPeasy

#19 Post by Meek » 17 Feb 2018, 15:16

Just uploaded a video with regards to the development of Meek MD1 ( Meek Wi-Fi enabled Dimmer)
https://www.youtube.com/watch?v=Y9hVDwKcEDw

happytm
Normal user
Posts: 47
Joined: 15 Aug 2016, 17:53

Re: AC Dimmer for ESPeasy

#20 Post by happytm » 22 Feb 2018, 03:08

Do you have code sample for pro mini ?

Meek
Normal user
Posts: 57
Joined: 31 Oct 2017, 15:50
Contact:

Re: AC Dimmer for ESPeasy

#21 Post by Meek » 25 Feb 2018, 23:32

happytm wrote:
22 Feb 2018, 03:08
Do you have code sample for pro mini ?
Yes, I do, but it’s very “dirty” and still "work in progress".
Once I have implemented all the options, I will clean the code and put some explanations in the code for the ease of use/distribution.

Meek
Normal user
Posts: 57
Joined: 31 Oct 2017, 15:50
Contact:

Re: AC Dimmer for ESPeasy

#22 Post by Meek » 09 Mar 2018, 19:37

I have placed the dirty code of the Meek MD1 dimmer, on the following topic :
viewtopic.php?f=2&t=3721

Meek
Normal user
Posts: 57
Joined: 31 Oct 2017, 15:50
Contact:

Re: AC Dimmer for ESPeasy

#23 Post by Meek » 16 Mar 2018, 15:59

I’ve just received the PCB’s for the Meek MD (Wifi Dimmer).
Unfortunately, the ATmega328 has not been delivered yet.

Once I have them in my possession, I will assemble and post some info.
In the meantime I will work on the dimmer codebase.

Attached you’ll find a picture of the dimmer PCB’s.
Meek-MD1.jpg
Meek-MD1.jpg (533.92 KiB) Viewed 4452 times

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests