I am trying to design an AC dimmer using the FL5150, based on the datasheet reference circuit.
I want to control it using a 3.3V MCU:
My main doubts
1. Ground connection
In the datasheet circuit, the IC ground is connected to the source/common node (mains side).
Can I connect my MCU ground directly to this node?
Or will this be unsafe / incorrect?
do i have to separate IC FL5150 ground and mcu ground
2. Optocoupler requirement
Since MCU is low voltage (3.3V) and the IC is on AC mains side:
Do I need optocouplers for PWM and GPIO signals?
Or can I interface directly?
3. Basic feasibility
Will this design work reliably with a 3.3V MCU controlling FL5150?
Datasheet does not clearly explain MCU interfacing, so looking for guidance.
Thanks in advance.
1 Like
As per datasheet the VDD pin is internal 5V supply for digital logic on FL5150, which means the IC works on a 5V logic. The microcontroller works on a 3.3V logic, now a days most of the ICs are compatible with 3.3V and 5V but better to not assume that. The simple solution would be an optocoupler which is to provide isolation between microcontroller DC side and high power AC side. 3.3V will easily drive the photo diode of optocoupler and on the photo transistor side the VDD can be used to operate the digital pins of FL5150. Do not use direct connections between controller and AC side, isolation is must. In your circuit do not connect nets DIMC and DIMM to the microcontroller directly. they should be pulled up to VDD pin of FL5150 and then connect photo transistor of optocoupler between GND pin of FL5150 and the respective pin 2 or 4. Two optocpuplers will be needed. I assumed by default the two pins should be High, you can do the opposite also as per the application.
2 Likes