My Hbridge consists of 4 nchannel mosfets, high side is driven by basic bootstrap circuit, lowside is directly from mcu. Using PID function to control motor by its position, set by setpoint. And 8-bit pwm is generated by timer/s inside AVR. Current is readed thru shunt res and op-amp fed into ADC. Highest adc value in graph is about 6amps. Tried many different PID libs, issue still remains. What could cause such a random current spikes?
It MUST be included, and you MUST understand the timing, or you will fry the MOSFETS and probably the power supply. You need a scope to make absolutely sure the timing is correct.
Can it be true that shoot thru in this one is much worse because of pre-drivers?
P.S i had inverted input ic... thats why pull-up resistors and bootstrap caps was about 1uF
I have a current limit function which looks if current is greater than 5.5amp for more than 1 second, but at this time its not active.
Will look into signedness
In your picture in post #5 there is L1 marked as transformer... usually transformers have a secondary winding (L2).
But you talk about a motor....
So, will you replace L1 with your motor? Or what is L1 for?
Oh, i think you misinterpreted - what i was asking is if that schematic would work better than what i made. I think nothing changes so drastically if its a transformer or motor
I see a considerable loss of voltage on the high side switches. The transformer (solenoid?) seems to be an essential part of the circuit, elevating the high side gate voltage. The 100µF caps may be guilty of heavy current spikes.
OP uses the scheme in post #3. And thinks of scheme in post #5. To me it seems scheme in post #5 is designed to produce 230V AC from 12 or 24V DC (cigaret lighter in car). But I am no expert on this... if so, it is no good for OP's DC motor.