Go Down

Topic: Arduino high power PWM (Read 193 times) previous topic - next topic

sorcerxl

I'm trying to build an arduino controlled pwm circuit for a DC motor (aprox 300w at 12v, max 30A). I use two irf1404 and a stps30l40cw schotky diode as flyback (parallel to the dc motor). The circuit is based on Tahmid's ideea : https://tahmidmc.blogspot.com/2013/05/using-tlp250-for-isolated-mosfet-gate.html?fbclid=IwAR0TRQBiXNkf9EJ9d6C_zA0SH8pe9OPhI0Tqeu6HoFABrFOP07o-hDLuBuQ

Now I have a problem if I connect the ground from arduino to the ground of the pwm circuit it blows the regulator from arduino and fries the atmel chip. The problem is I can't use 2 different power supplies (it work's perfect if the arduino and the led from TLP250 are on separate power supply completely isolated from the motor power source) because it all has to be powered by the same 12V car battery.

Can anyone tell me what I'm doing wrong ?


MarkT

Since the TLP250 is opto-isolated there is no need to connect it to the PWM circuit at all, but clearly you've done something badly wrong to blow the Arduino - without a schematic there's no way to understand what though.
[ I will NOT respond to personal messages, I WILL delete them, use the forum please ]

sorcerxl

The first picture is what works (instead of 1 mosfet I have 2 in paralel), the second is what I need but it blows the arduino regulator each time (i also tried with separate ams1117 and same result).

sorcerxl

Since the TLP250 is opto-isolated there is no need to connect it to the PWM circuit at all, but clearly you've done something badly wrong to blow the Arduino - without a schematic there's no way to understand what though.
I understand , but I need to power them both from the same 12v battery.

MarkT

Ah, you connected the motor supply direct to the Arduino - that's extremely spikey and noisey since you
have no effective decoupling (the 100nF is irrelevant here as the motor draws huge currents - 1000uF or
more of low-ESR electrolytic plus some high value ceramic (10uF?) would be needed to make inroads into
30A switching noise).

If you put a 'scope on that 12V supply you'd see the problem instantly!  

You may have made matters worse by poor layout (not using twisted pair everywhere).

Use a separate power supply for the Arduino, perhaps an LM2596 buck converter whose input is an RC filtered
version of the motor 12V supply (and add decoupling to the motor supply anyway, 1,000uF 25V or so).
[ I will NOT respond to personal messages, I WILL delete them, use the forum please ]

sorcerxl

the 100nF is a must for the TLP250 , I'll try adding a 1000uF and see what happens.

sorcerxl

Adding the 1000uF cap (first a tried two 470uF and then added another 2200uF) almost resolved the issue, there are still some issues at full load . I wonder adding a choke coil before the arduino regulator would help ?

Go Up