Hey guys, first let me give you a short introduction, as I don't want to be the rude guy who just go straight and ask his problem on the forum. I'm a hobby machinist CNC enthusiast. I started with a small milling machine, with the size of a 3D printer, but now I have a bigger one. I did studied a subjet on electronics on the university, but you know, a lot of theory and problems, but very little real world practice. Since then I have done some small Arduino projects and the one I will show next, and I can say I have started learning electronics.
Since more than a year ago I have been trying to design a servo driver for my mill, inspired on the Mechaduino project, that once working I can share with the comunity. The problem is that the stepper motors I use are way bigger and powerfull than the ones the Mechaduino can handle. Specially I want to increase the supply voltage. This way I can fight the inductance of my motors, getting faster speed and more torque at high speed.
If anyone want to hear the whole history I will write it. After several circuits and a lot of forum reads, aplication notes and datasheets I got an H-Bridge circuit that kinda works. It uses 4 N-channel MOSFETs and 2 IR2103 gate drivers (with internal dead time). As I didn't wanted to deal with bootstraping on software I used a couple of DC-DC isolated converters to supply 12V to the high side MOSFETs. It drives high impedance loads well on both directions, the problem starts when I want to implement the 20kHz chopper to control the current.
I use a voltage divider to set the reference, a 0.1 Ohm power resisotor between the low side MOSFETs and ground as shunt, and a LM358 Op Amp to compare it. When the amperage through the shunt reaches the point where it's voltage is higher than the set reference, the output of the Op Amp triggers an interrupt on the MCU that drives the high side MOSFET OFF, and the low side one ON (after the dead time set on the gate driver to avoid shoot through condition). But whenever try this, my MOSFETs get killed, sometimes the gate driver too, and my power supply shuts off.
I saw somewhere that the inductance of the DC-DC converters could cause some triggering problems, so I give up and bought a ZS-H1A H-Bridge to see If I could get it working.
It has a couple of H-Bridges in bootstrap configuration (with IR2104), some logic gates to conver the PWM and DIR inputs, and a buck converter to feed the gate drivers and logic gates. I got it wired and feed it with a 90% 20kHz PWM, the high impedance load (a bulb) worked fine.
Unfortunately it has no overcurrent sensing. So I cut the source of the low side MOSFETs of one bridge, and conected them to GND with my shunt and current sensing circuit. Went to connect my low impedance load (the motor) and... puffff, same result as before.
So, at this point, I got no clue about what is exactly killing my circuit and what I can do to avoid it. Any help will be greatly apreciated!