Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By trackerj
#48849 Because information related with the MPDMv4 AC MAINS dimmer board is spreaded all over the place in different Forum threads, I think is better to have a dedicated one here, where people can find all the related info's in one place.

What is MPDMv4: Universal (110/240VAC) MAINS Triac driven Dimmer board with integrated Phase detection and ZCD functions.

Main advantage : keeping your real-time processing functions away from your Application MCU/Processor. To do that , moved the Phase detection / ZCD processing function from the ESP8266/whatever MCU you want to the MPDM Driver itself. No more CPU/interrupt intensive overhaed on your MCU!!

As been a Voltage controled AC MAINS Dimmer you can control it with:
    - PWM signal
    - DAC output Voltage
    - or if you don't want any kind of MCU involved, just user a 10k Potentiometer in a voltage divider as part of a simple VCNT input circuit!

If you use a DAC for example, You can use the "set-and-forget" technique using DAC internal nonvolatile memory (EEPROM) and also have the same level on the next power-off/on cycle.

WIth a 12 bit DAC you have 4096 levels of dimming!!

MPDMv4 Driver example 1: using a 12 Bit DAC and NodeMCU LUA




MPDMv4 - Voltage Control explained:


MPDMv4 - VCNT Conenctor explained:


MPDMv4 Driver example 2: Arduino IDE




MPDMv4 Driver example 3: using the beautiful ESPBasic




MPDMv4 Driver example 4: ESP8266 + Arduino IDE + Blynk (some sound encoding problems, sorry about that :( )

User avatar
By trackerj
#48867
wififofum wrote:Next time reverse phase control?


Do be used for what purpose?