Why does Arduino keep burning?

Hello, I've designed a PID fan controlling system which takes air quality measurements via sensors and set the AC fan motor speed by changing the H bridge frequency. Circuit is as below:
full:


top:

bottom:

Working principle: Arduino gives a pwm signal that is two times more frequent than the desired, because the same pwm will control both half cycles of AC signal. The CD4013 inverts the output with each rising edge (that's why duty ratio is limited up to %99.6 but not %100). The 74HCT08 is just an "and" gate and it forces the output to turn off when there is no input from Arduino, that allows me to control the duty ratio. pin10 and !pin10 are the outputs of the and gates and they are applied to MOSFET drivers. Duty cycle of PWM is related to PWM signal frequency, there is a constant V/Hz ratio "220/50 = 4.4" to not overheat or underdrive the fan.

While I was testing the circuit, I used an 220V neon light instead of a fan. I noticed that the light didn't light up, probably MOSFETs wasn't firing. I saw 310V across the capacitor as expected but the load wasn't taking it. One more thing I noticed was that when I plug the Ac input to wall, the Arduino turns on but the OLED screen displayed only a portion of the text and rest of the screen was whitish grunge image. This didn't occur with USB connection. I thought It was because of the unstable voltage at the first instance when I plug in. I didn't care much because the screen was normal when the second page is loaded. The sensors were giving normal measurements and the display was showing that normal AC frequencies were being applied by Arduino.

I prepared to take measurements, I plugged in the system this time I saw that power supply LED, Arduino power LED and Sensor LED was blinking. I was surprised, I thought the power supply was corrupted and it was giving positive output then zero output in turns. I plugged out but I couldn't think of what to do so I plugged it back in. The blinking occurred again, I didn't care this time, I just wanted to take measurements from H bridge so I approached the system. When I sat down near it I realized a burning smell, I ran and unplugged the system. I thought the power supply was just dead, it was a cheap low power supply after all (12V 6Watt 0.5amps LED driver).

Btw I was constantly touching the IR2110, CD4013, 74HCT08N and Atmega chip after I plugged out the system. They weren't hot. I didn't touch the voltage regulator during tests but I remember I felt hot air over it, I was even concerned if it was going to affect the temperature sensor, I wasn't more concerned.

I waited the capacitor to discharge then I connected the Arduino with USB, I touched the regulator and it burned my finger. I removed the power supply and tested the Arduino solely, it burned my finger again. I turned my focus onto the power supply, tested the power supply with multimeter and a 12V LED and surprisingly it was working perfectly. I measured the resistance between Arduino VCC and GND pin and it was only 10 ohms, something was basically penetrated by current (if that's the right term) I removed the regulator and this time I saw only 18 ohms. I plugged in the USB cable, as there was no voltage regulator, this time, the ATmega chip was burning. I desoldered everything that's connected to VCC pin but still the resistance between VCC and GND was 18 ohms. The MOSFET drivers (IR2110) are completely fine. I checked the resistance between their output and ground pins, it was large.

On the voltage regulator it says: 4MBD and I don't know what model that is.

My question is: What could possibly cause the Arduino to burn like that? Cheap Arduino clone has a poor regulator that can't keep up with 12V Raw input? The cheap Led driver has voltage spikes at start up and that killed the regulator? The 310 DC Voltage was finding a way to Arduino (this option is unlikely because Arduino performed normal for some time during tests, if 310V were there it would die instantly right, also no led or screen was brighter than it should've been)?

Tons of text. Can You tell the question again?
It's an art to make a reader interested and continue reading. Your massive text didn't make me interested, only the opposite.

1 Like

If I don't give every detail how can I expect you to solve it. The problem is basically the Arduino has burned even though it is connected to 12V power supply. Why is that?

The converter sold as a LED driver might not be whats needed.

Give us a link.


Place a 500mA load on the converter and check the voltage and ripple.

How are you feeding the Arduino with this converter ?


Show us the underside on the breadboard.

One clear end to start with. Where does that 12 volt come from and where was it connected? What other things are connected to the controller?

The IR2110 based H bridge appears very similar to this circuit: Arduino IR2110 Based H-Bridge HIGH Voltage Motor Control . However, you seem to have missed the ground connection on the low side of the H bridge. Is that just an omission on the schematic ?

1 Like

But the link wont be english: Güç Kaynağı Modülü AC-DC Voltaj Regülatörü 220V AC 12V DC Satın Al | Robotistan

I connect + pin to Raw and gnd pin to gnd

It is such a mess, I don't think it will be convenient

OLED display, SGP30 sensor, SHT31 sensor, 4 10k potentiometers, CD4013 D-latch IC

Haha you got me, I copied him.

Do you mean earth ground or circuit ground? First of all there is no earth ground, just two cables are coming to the system, secondly the ground of H bridge occurs at the negative terminal of the capacitor. The ground terminal of the rest of the circuit is 12V power supply negative DC side. Oh, these two grounds must be connected actually. But still, there is a bridge rectifier in the Power supply and the ground will be the same as the H bridge ground right? Do I miss something?

The 220 volt to ?? transformer is likely printed the wrong way. What is the secondary side of the transformer voltage? I fear there's where the mistake is.
How is the controller powered? Can't see that clearly. It looks like it's powered from the 220 volt AC. Can't be right.

OFC noo. Look at that:
image
This is a module which is equal to:

the module is connected to Line and Neutral from one side and it has two pins on the other side which have 12V of difference from each other. So did you really think I connected Arduino Raw to Line and Arduino ground to neutral :smiley:

That looks really really really really dangerous !

AC mains feeding the diode bridge directly !

I wouldn’t want to be anywhere near this thing !

Do not connect the MOSFET bridge to GND !

Stop right now !

1 Like

You made me laugh thanks :smiley:
Okay seriously, take a look at that commercial SMPS schematic:

This is no special SMPS just to prove something. Look at the bridge rectifier, it is connected just like I did. Why are you so concerned about it?

Any link to the datasheet of that J2 thing? That's a symbol for a 2 pole connector block. Does it contain a 12 volt regulator?

Nothing would surprise me.... No, but Your drawing has issues.

You made me cry, burning controllers....

Do you see the difference between schematic 1/2 and schematic 3?
This is the schematic you posted

the 230V AC go straight forward to that part of the circuit that should only have low voltage


.
.

schematic 3


.
The original schematic HAS electrical isolation

You are a lucky guy that you are still alive.
Put this DIY PCB into a complete block of epoxy without connecting wires!
or desolder all parts
user @LarryD is absolutely right

Stop right now !

Well, I used the wrong symbol but there was a description. I don't blame anyone, I'll explain more when I use different symbols than what I meant from now on.

OMG you understood everything completely wrong. The 12V shouldn't be there. I AM SORRY MY SCHEMATIC IS CONFUSING.

The 12V appears at J2. J2 is the power supply, sorry I used a simple 4 pin connector symbol for it and it is confusing. The transformer you thought was wrongly connected is a choker, it is to filter high frequency components of AC main :smiley:

So AC main supplies both the 12V power supply and the rectifier-inverter circuit. The rectifier-inverter circuit is controlling a 220V AC fan so ofc there is no 12V expected there, it must be 310V DC.

BTW I guess I found the problem, it probably the fact that in the IR2110, Com(pin2) and VDDGND(pin13) are connected to the Arduino ground even though the grounds for both circuits are different. I'll update here when I come to a certain conclusion

What voltage number do you read here?
image

You forgot to add the rest of the calculation

220V - 208V resulting in 12V

Your initial posting was way too long to read. maybe you have written there that you are experienced in electronics.

The 220V is there is correct, it represents the wall plug. What you don2t understand is I purposefully obtain high voltages, that's the goal of the circuit. The goal is not to obtain 12V and feed an Arduino. The goal is to obtain 310V DC voltage and convert it back to AC voltage to control a fan.

Also I don't understand what you meant by 220 - 208 = 12
12 is DC voltage which is obtained by the power supply and 220V is RMS voltage of AC mains. Why do you subtract them ???

Just for confusion. Mission to confuse accomplished

Maybe your real parts are chosen the right way and your schematic has more things that are named false
For H-bridges you need different MOS-FETs on the high-side as on the lowside
like shown in this schematic


You are using - at least in the schematic - the IRF830 which is a n-channel MOS-FET but the highside would need p-channel MOS-FETs

My last word, a non electronics expert should not be dabbling in this stuff using a messy point to point wired breadboard.

Hope you don’t go to heaven just yet.
:innocent:

Nope, I am using a bootstrap MOSFET driver and I can use N channel MOSFETs at high side if I am doing bootstrapping. That's the whole perk of IR2110

Thanks.