Universal AC MAINS WIFI Dimmer solution - Arduino/ESP8266 - Page 1
Forum section: electronics / general

author: TJ232
author_rank: Frequent Contributor
timestamp: April 20, 2016, 11:14:26 am
content: A short example of how easy is to build a WIFI Dimmer unit with a ESP8266 Module and a Universal AC MAINS Dimmer Driver like the MPDMv4:And the realated articles, explaining in more details about:-Universal AC MAINS Dimmer unit - MPDMv4-ESP8266 Driver example

author: TJ232
author_rank: Frequent Contributor
timestamp: April 30, 2016, 04:15:17 pm
content: Arduino IDE code example (yes, it is THAT simple!), using Serial Input for reading Brightness values and PWM with a simple RC filter for VCNT:Code:int VCNT = 3; // MPDMv4 Voltage Control Pin (VCNT) connected to Arduino PIN3void setup(){// initialize the serial communication:Serial.begin(9600);// initialize the VCNT pin as an output:pinMode(VCNT, OUTPUT);}void loop() {byte brightness;// check if data has been sent from the computer:if (Serial.available()) {// read the most recent byte -> range from 0 to 190 : MPDMv4 Calibrated rangebrightness = Serial.parseInt();Serial.print("Command received : ");Serial.println(brightness);// set the brightness -> range from 0 to 190 : MPDMv4 Calibrated rangeanalogWrite(VCNT, brightness);}}GitHUB Link :MPDMv4 Examples

author: Martini
author_rank: Regular Contributor
timestamp: May 01, 2016, 11:45:29 am
content: Great!That MPDMv4 is interesting.

author: TheDirty
author_rank: Frequent Contributor
timestamp: May 01, 2016, 09:56:36 pm
content: I assume this is a product for sale. Saw information on the zero cross detector and driver, but nothing on the middleman mcu that is driving the dimmer.As an almost related side note, I recently made a dimmer with a LPC8xx driving it and used the SCT (timer module) for the first time and the SCT timer is amazing. The most flexible timer I have ever seen. The triac trigger function could be made totally using the timer setup. No running code or even interrupt code needed. Everything setup in the timer and only need to change the reload register to change the dimmer value.

author: TJ232
author_rank: Frequent Contributor
timestamp: May 02, 2016, 08:37:54 am
content: Quote from: TheDirty on May 01, 2016, 09:56:36 pmYes, it is. Don't know if is allowed to put here a link from where but if somebody wants to give it a try can contact me directly.Nice approach with the LPC8xxThe idea behind MPDMv4 AC Dimmer driver was to have a AC Dimmer module that will put 0% overhead on the existing App MCU.After struggling with the MPDMv3 and the ESP8266 software PWM and Intrrupts limitations that are complicating even more a software ZCD implementation I decided that it's enough and designed the new module with integrated Phase detection and ZCD.

author: TJ232
author_rank: Frequent Contributor
timestamp: May 16, 2016, 11:14:41 am
content: Youtube Video Tutorial:How to drive a MPDMv4 AC Dimmer Board with your Arduino:

author: TJ232
author_rank: Frequent Contributor
timestamp: June 09, 2016, 06:43:28 am
content: Giving a try also to the ESPBasic firmware:In terms of speed and PWM accuracy is working way better than NodeMCU LUA, on par with Arduino IDE I can say. The ESPBasic evolution is quite interesting, soon the version 3 will be released and seems to be full of a alot of goodies, including websockets!