Lebowski's motor controller IC, schematic and setup manual

Electric Motors and Controllers

Re: Lebowski's motor controller IC, schematic and setup manu

Postby deVries » Sun May 13, 2012 3:43 am

Lebowski wrote:We had a rainy weekend here with unpredictable weather, so lots of time to work on the PCB.


Only one sunny day allowed per week, well, until the kit arrives. :twisted:

May it rain rain rain... :P
deVries
1 MW
1 MW
 
Posts: 1652
Joined: Thu Jul 10, 2008 11:29 pm
Location: Solar Powered 3000w Austin Texas

Re: Lebowski's motor controller IC, schematic and setup manu

Postby nieles » Tue May 22, 2012 7:22 am

Got my controller working again! i replaced the driver chip, and it works like before!

now the "bad" news, i definitely need to add some snubbers!

this is the high side gate signal
h_a_gate1.jpg
h_a_gate1.jpg (17.71 KiB) Viewed 213 times

h_a_gate.jpg
h_a_gate.jpg (18.46 KiB) Viewed 213 times

h_a_gate2.jpg
h_a_gate2.jpg (21.02 KiB) Viewed 213 times


this is the phase a to gnd signal going to the motor
h_a_source.jpg
h_a_source.jpg (17.79 KiB) Viewed 213 times

h_a_sourc1.jpg
h_a_sourc1.jpg (22.29 KiB) Viewed 213 times


and the low side gate signal. not sure what is going on here?
l_a_gate.jpg
l_a_gate.jpg (17.96 KiB) Viewed 213 times
nieles
1 kW
1 kW
 
Posts: 469
Joined: Mon Jul 14, 2008 5:39 pm
Location: The Netherlands

Re: Lebowski's motor controller IC, schematic and setup manu

Postby Lebowski » Tue May 22, 2012 7:54 am

The snubber are between the drain and source.
To chose snubber component values I follow the following cookbook:

- As you can see in your picturs, there's ringing on the drain/source voltage of the FET. Measure the frequency of the ringing.
- Experiment by placing different values of capacitors across the drain / source. Determine the capacitor value for which the
frequency of the ringing is about half to one-third of the original ringing frequecy. This gives you the capacitor value for
the snubber. For a 4115 I found 3.3 to 4.7 nF a good fit (depends on battery voltage, more voltage -> lower cap).
- calculate the impedance of the capacitor at the new (lower) ringing frequecy using X = 1 / (2 * pi * f_new_ring * C_snub)
- the snubber resistor should be taken as 1.5 times the capacitor impedance X.

Now the only thing to watch out for is the power dissipated in the snubber resistor. This is given by:

P_snub_r = f_pwm * C_snub * (V_bat)^2

First put snubbers between all drain/sources of the FET's (see also attached picture where the snubbers are the 4.7 nF and 6.8 Ohm components)

After this is done, look at the gate / source signals. Chose the gate resistors such that there's no significant overshoot which can
blow the gate oxide. Im my controller I didn't need gate resistors, the gate signals looked nice and clean after snubbing the drain/source's.
If the drain/sources are not snubbed the ringing will 'transfer' to the gate by means of the Cgd, this is what you're seeing.

sine_controller-output_stage_B.jpg
(127.91 KiB) Downloaded 3 times
User avatar
Lebowski
100 kW
100 kW
 
Posts: 1468
Joined: Tue Jun 28, 2011 1:38 am
Location: beautiful Zurich, Switzerland

Re: Lebowski's motor controller IC, schematic and setup manu

Postby nieles » Tue May 22, 2012 8:30 am

i have 10 ohm gate resistors in place.

i also have a 10k (or 20k) and a 15v (or 17v) zener diode beteween the gate and source of each fet.

i have ordered some 1nf 2.2nf and 4.7nf capacitors along with a few 100 low value 0.25w resistors to make a snubber.

Thanks for posting the calculations again. i have them written down somewhere, but this saves me a few hours of searching :D

Will post again when i have some progress.

can i damage something by only snubbing one phase first? i would think this is not a problem but i am not 100% sure
nieles
1 kW
1 kW
 
Posts: 469
Joined: Mon Jul 14, 2008 5:39 pm
Location: The Netherlands

Re: Lebowski's motor controller IC, schematic and setup manu

Postby Lebowski » Tue May 22, 2012 8:42 am

nieles wrote:i have 10 ohm gate resistors in place.

i also have a 10k (or 20k) and a 15v (or 17v) zener diode beteween the gate and source of each fet.

i have ordered some 1nf 2.2nf and 4.7nf capacitors along with a few 100 low value 0.25w resistors to make a snubber.

Thanks for posting the calculations again. i have them written down somewhere, but this saves me a few hours of searching :D

Will post again when i have some progress.

can i damage something by only snubbing one phase first? i would think this is not a problem but i am not 100% sure


I snubbed one phase first too, I used the 'generate test signal' from the PWM menu when I chose the snubber values.
Just don't put any power through the output stage before it's snubbed. When you use the 'generate test signal' option
all 3 PWM channels move in sync, so no effective voltage is put accross the motor. I did not have my motor connected
when I chose the snubber values. Very important is to have a 0.47 uF high voltage cap on the battery supply. Put this cap
as close as possible to the power FETs but inbetween the FET's and the battery. The job of this cap is to shorten
the (to be snubbed) inductive loop.

Make sure that the snubber caps have the correct voltage rating ! (must be higher than the battery voltage)
User avatar
Lebowski
100 kW
100 kW
 
Posts: 1468
Joined: Tue Jun 28, 2011 1:38 am
Location: beautiful Zurich, Switzerland

Re: Lebowski's motor controller IC, schematic and setup manu

Postby nieles » Tue May 22, 2012 8:54 am

i have 8 of these beteween V+ and gnd. close to the fets
http://www.ebay.nl/itm/470nF-100V-Phili ... 1c1afc3ca3

so i should be okay there!

the capacitors i have for the snubbers are these:
http://www.ebay.nl/itm/20-Polyester-Pol ... 1242wt_794
nieles
1 kW
1 kW
 
Posts: 469
Joined: Mon Jul 14, 2008 5:39 pm
Location: The Netherlands

Re: Lebowski's motor controller IC, schematic and setup manu

Postby Arlo1 » Tue May 22, 2012 9:47 am

Niles would you not be able to reduce the ringing by reducing the voltage you are applying to the fet gates?
Thanks Justin of http://www.ebikes.ca/
Also a thanks to Methy at http://www.methtek.com/ :)
And Dave who has some good deals on STUF
RC lipo and most other types of Lithium batteries you MUST know your individual cell voltages while charging and discharging.
Batteries of all kinds need respect they can burn your house down, so don't sleep with them under your bed or any other were you cant afford smoke or fire!
[color=#FF0000][b][size=150]Never above 4.2v never below 2.7v EVER!!!
User avatar
Arlo1
100 GW
100 GW
 
Posts: 5224
Joined: Sun Apr 26, 2009 10:36 pm
Location: Nanaimo BC Canada

Re: Lebowski's motor controller IC, schematic and setup manu

Postby nieles » Tue May 22, 2012 9:53 am

not 100% sure what you mean, but i am only using 12v supply for the gates, going lower will not fully turn the fets on.
nieles
1 kW
1 kW
 
Posts: 469
Joined: Mon Jul 14, 2008 5:39 pm
Location: The Netherlands

Re: Lebowski's motor controller IC, schematic and setup manu

Postby Arlo1 » Tue May 22, 2012 9:58 am

nieles wrote:not 100% sure what you mean, but i am only using 12v supply for the gates, going lower will not fully turn the fets on.

Are you using 4115 fets?
Looks like a 9 volt supply would be OK. I think it was bigmoose who pointed out to me you want to be just above the miller plateau.
Post edited:
Attachments
Capture 4115 gate charge.JPG
Capture 4115 gate charge.JPG (52.61 KiB) Viewed 188 times
Last edited by Arlo1 on Thu May 24, 2012 12:58 pm, edited 1 time in total.
Thanks Justin of http://www.ebikes.ca/
Also a thanks to Methy at http://www.methtek.com/ :)
And Dave who has some good deals on STUF
RC lipo and most other types of Lithium batteries you MUST know your individual cell voltages while charging and discharging.
Batteries of all kinds need respect they can burn your house down, so don't sleep with them under your bed or any other were you cant afford smoke or fire!
[color=#FF0000][b][size=150]Never above 4.2v never below 2.7v EVER!!!
User avatar
Arlo1
100 GW
100 GW
 
Posts: 5224
Joined: Sun Apr 26, 2009 10:36 pm
Location: Nanaimo BC Canada

Re: Lebowski's motor controller IC, schematic and setup manu

Postby Lebowski » Tue May 22, 2012 10:24 am

I use 17V for the gate drive. The nasty bit in the whole curve is the miller plateau, while
the FET is in there it's dissipating power (because it's already conducting and has
a large voltage across it). To get through the plateau quickly you need a lot of 'overvoltage'
above the plateau. So, 17V gives you 10 V overvoltage (10V above the 7V plateau) meaning
that the gate current will be 10V / whatever resistance your gate driver is (typically
5 to 7 Ohm for a NCP 5181).

My FET's are on in 0.2 usec.
User avatar
Lebowski
100 kW
100 kW
 
Posts: 1468
Joined: Tue Jun 28, 2011 1:38 am
Location: beautiful Zurich, Switzerland

Re: Lebowski's motor controller IC, schematic and setup manu

Postby Lebowski » Tue May 22, 2012 10:25 am

Arlo1 wrote:Niles would you not be able to reduce the ringing by reducing the voltage you are applying to the fet gates?


It is all proportional, ringing is proportional in amplitude to the gate voltage.
User avatar
Lebowski
100 kW
100 kW
 
Posts: 1468
Joined: Tue Jun 28, 2011 1:38 am
Location: beautiful Zurich, Switzerland

Re: Lebowski's motor controller IC, schematic and setup manu

Postby Teh Stork » Tue May 22, 2012 12:26 pm

Too long deadtime and too much stray inductance. The ringing is set off by the body diode being shut down. What fets are you using Nieles?
Teh Stork
1 kW
1 kW
 
Posts: 306
Joined: Wed May 25, 2011 8:02 am

Re: Lebowski's motor controller IC, schematic and setup manu

Postby Lebowski » Tue May 22, 2012 12:34 pm

Teh Stork wrote:Too long deadtime and too much stray inductance. The ringing is set off by the body diode being shut down. What fets are you using Nieles?


I don't agree with this.
User avatar
Lebowski
100 kW
100 kW
 
Posts: 1468
Joined: Tue Jun 28, 2011 1:38 am
Location: beautiful Zurich, Switzerland

Re: Lebowski's motor controller IC, schematic and setup manu

Postby Teh Stork » Tue May 22, 2012 1:15 pm

Lebowski wrote:
Teh Stork wrote:Too long deadtime and too much stray inductance. The ringing is set off by the body diode being shut down. What fets are you using Nieles?


I don't agree with this.


Look to this topic for a detailed breakdown of the phenomenon: linksy.
Teh Stork
1 kW
1 kW
 
Posts: 306
Joined: Wed May 25, 2011 8:02 am

Re: Lebowski's motor controller IC, schematic and setup manu

Postby Lebowski » Tue May 22, 2012 1:37 pm

Teh Stork wrote:
Lebowski wrote:
Teh Stork wrote:Too long deadtime and too much stray inductance. The ringing is set off by the body diode being shut down. What fets are you using Nieles?


I don't agree with this.


Look to this topic for a detailed breakdown of the phenomenon: linksy.


I don't agree with that entire thread either :mrgreen:
User avatar
Lebowski
100 kW
100 kW
 
Posts: 1468
Joined: Tue Jun 28, 2011 1:38 am
Location: beautiful Zurich, Switzerland

Re: Lebowski's motor controller IC, schematic and setup manu

Postby Arlo1 » Tue May 22, 2012 3:06 pm

We should get bigmoose to chime in but i think snubbers are the wrong way to bandaid fix this. Is it not better to tune the fet ringing out with the proper voltage/ gate resistor combination?
Thanks Justin of http://www.ebikes.ca/
Also a thanks to Methy at http://www.methtek.com/ :)
And Dave who has some good deals on STUF
RC lipo and most other types of Lithium batteries you MUST know your individual cell voltages while charging and discharging.
Batteries of all kinds need respect they can burn your house down, so don't sleep with them under your bed or any other were you cant afford smoke or fire!
[color=#FF0000][b][size=150]Never above 4.2v never below 2.7v EVER!!!
User avatar
Arlo1
100 GW
100 GW
 
Posts: 5224
Joined: Sun Apr 26, 2009 10:36 pm
Location: Nanaimo BC Canada

Re: Lebowski's motor controller IC, schematic and setup manu

Postby Lebowski » Tue May 22, 2012 3:23 pm

Arlo1 wrote:We should get bigmoose to chime in but i think snubbers are the wrong way to bandaid fix this. Is it not better to tune the fet ringing out with the proper voltage/ gate resistor combination?


this would mean making the transitions on the gate very slow, slowing down the whole
switching behavior and burning more power in the FETs. Zombiess showed in his
thread that the typical china controller has very weak gate drivers and 'survives' without
snubbers by being slow.
User avatar
Lebowski
100 kW
100 kW
 
Posts: 1468
Joined: Tue Jun 28, 2011 1:38 am
Location: beautiful Zurich, Switzerland

Re: Lebowski's motor controller IC, schematic and setup manu

Postby Jeremy Harris » Tue May 22, 2012 3:31 pm

Snubbers are a bit of a band aid, as if the stray inductance can be kept low then the chances are they won't be needed. The point about transition speed is a good one, and certainly the microsecond switching time of a typical Chinese controller helps, but I can say with certainty that you can switch at around 200 to 300 nS and not get spikes or ringing on the FET outputs, IF you ensure that the stray inductance is kept low and that you are rigorous with the placement of good, low ESR, wide bandwidth, commutation capacitors.

I found that a distributed array of capacitors, with a mix of low ESR (but relatively high inductance) electrolytics, together with medium value polypropylene and low value ceramics, placed right next to the FETS, on each pair, worked well at reducing any switching transients, so removing the need for snubbers.
Please ask questions on the forum, rather than by PM, as it helps others and you'll get a better range of answers.
User avatar
Jeremy Harris
10 GW
10 GW
 
Posts: 4635
Joined: Tue Oct 23, 2007 4:15 pm
Location: Salisbury, UK

Re: Lebowski's motor controller IC, schematic and setup manu

Postby bigmoose » Tue May 22, 2012 6:09 pm

Good comments all around. Snubbers are definitely another tool in the tool box. The design method for them is sound. Like said above, use them to cancel layout and parasitic inductance.

Guys remember each designer has a bit of a different style with this. Lebowski has a good design going, and we should all let him roll his optimum out. It is like driving the FETs above the miller plateau, it is about current over time to charge the Q. You can do it with a higher voltage and a high source impedance of the driver, or lower voltage and a low source impedance driver. They will both do the job. I have design rules that won't let me drive a 20V gate to 17 volts due to derating criteria... That does not mean it won't work... just a different optimization, the heart of engineering!
bigMoose's electronic pieces & parts (GENUINE IRFB4110Pbf's, Nomex 410, AntiCorrosion Grease, Current Sensors) available HERE.
Thanks to Justin ebikes.ca for securing the board then setting us FREE! Tech Tips in the WiKi: http://endless-sphere.com/w
"Live simply. Love generously. Care deeply. Speak kindly. Leave the rest to God..." all the best, Dave
User avatar
bigmoose
10 MW
10 MW
 
Posts: 2451
Joined: Thu Aug 06, 2009 3:05 pm
Location: Northern Ohio, USA

Re: Lebowski's motor controller IC, schematic and setup manu

Postby Arlo1 » Tue May 22, 2012 6:49 pm

Fast switching is good for hi pwm rates and can help to keep controller efficiency up hmmmmm. Who needs school when i got you guys! :)
Thanks Justin of http://www.ebikes.ca/
Also a thanks to Methy at http://www.methtek.com/ :)
And Dave who has some good deals on STUF
RC lipo and most other types of Lithium batteries you MUST know your individual cell voltages while charging and discharging.
Batteries of all kinds need respect they can burn your house down, so don't sleep with them under your bed or any other were you cant afford smoke or fire!
[color=#FF0000][b][size=150]Never above 4.2v never below 2.7v EVER!!!
User avatar
Arlo1
100 GW
100 GW
 
Posts: 5224
Joined: Sun Apr 26, 2009 10:36 pm
Location: Nanaimo BC Canada

Re: Lebowski's motor controller IC, schematic and setup manu

Postby nieles » Thu May 24, 2012 5:15 am

added a 2.2nf capacitor beteween S-D,
this is what the signal looks like now:

h_a_s_23_5.jpg
h_a_s_23_5.jpg (20.78 KiB) Viewed 359 times


tonight i will add the resistors in series with the capacitor.

should i add an other 1nf in parallel to the 2.2nf? or leave it like this.
nieles
1 kW
1 kW
 
Posts: 469
Joined: Mon Jul 14, 2008 5:39 pm
Location: The Netherlands

Re: Lebowski's motor controller IC, schematic and setup manu

Postby Lebowski » Thu May 24, 2012 5:51 am

nieles wrote:added a 2.2nf capacitor beteween S-D,
this is what the signal looks like now:

h_a_s_23_5.jpg


tonight i will add the resistors in series with the capacitor.

should i add an other 1nf in parallel to the 2.2nf? or leave it like this.


I assume before the 2.2 nF it was 24.5 MHz ? I would just try 2.2, 3.2 and 4.4 and look at the final snubbed waveform and choose what you like best.

With the 2.2 nF and 14.3 MHz the snubber resistors should be roughly 7.6 ohm (8.2, or 2 of 15 in parallel).

For determining snubber values, scope the drain/source voltage, not the gate/source.
Also, the snubber cap decreases with an increase in battery voltage (see the Coss graphs in the FET specs).
Point being, apply close to the final battery voltage when determining snubber values, else you will
larger than necessary snubber caps. Large snubber caps is actually even better for snubbing but it
also increases the power dissipation in the snubber resistor so it's a balancing act (nothing is free in
engineering).
The snubber should be soldered as close as possible to the FET with the shortest possible wires / smallest
inductive loop. DO NOT USE WIRE-WOUND RESISTORS !!! they have too much inductance.
User avatar
Lebowski
100 kW
100 kW
 
Posts: 1468
Joined: Tue Jun 28, 2011 1:38 am
Location: beautiful Zurich, Switzerland

Re: Lebowski's motor controller IC, schematic and setup manu

Postby Teh Stork » Thu May 24, 2012 8:52 am

Uhm, I'd like to suggest using "gate resistors" in series with the bootstrap capacitor - if your components allow it. This will allow you to keep the fall time, but it will limit your rise time. The high side transition normally is the problem.

Regarding rise time and ringing frequency; This is a area where I've heard lots of stuff - but not quite managed to separate the BS from the truth. A 14MHz ringing frequency would imply that the pulse that set it off was extremely slim; one period is ~70nSec. The rise time of the fets isn't slim enough to create this. The only culprit I can find is the body diode of the other fet - being shut down. Minority carriers will shut down in a fast and violent way - mosfets are irradiated and added precious metals to give them soft recovery properties - why would they if they didn't need to?
Teh Stork
1 kW
1 kW
 
Posts: 306
Joined: Wed May 25, 2011 8:02 am

Re: Lebowski's motor controller IC, schematic and setup manu

Postby liveforphysics » Thu May 24, 2012 12:19 pm

Arlo1 wrote:
nieles wrote:Looks like a 9 volt supply would be OK. I think it was bigmoose who pointed out to me you want to be just about the miller plateau.



You MUST switch above the miller plateau by a healthy amount.
For ebike parts, don't be a douche, buy from http://www.ebikes.ca or http://www.MethTek.com

Justin saved the forum at great personal expense! The man is a legend and a hero!
User avatar
liveforphysics
100 GW
100 GW
 
Posts: 10968
Joined: Wed Oct 29, 2008 1:48 am
Location: Santa Cruz, CA, USA

Re: Lebowski's motor controller IC, schematic and setup manu

Postby Arlo1 » Thu May 24, 2012 12:56 pm

liveforphysics wrote:
Arlo1 wrote:
nieles wrote:Looks like a 9 volt supply would be OK. I think it was bigmoose who pointed out to me you want to be just about the miller plateau.



You MUST switch above the miller plateau by a healthy amount.

Sorry post was suposed to say "above" no about. I will edit now. What is a healthy amount? 10% 50% ?????? Bigmoose pointed out on the robotics controller he diagnosed if they have to hi voltage and or to low gate resistor it will cause ringing!
Last edited by Arlo1 on Thu May 24, 2012 3:10 pm, edited 1 time in total.
Thanks Justin of http://www.ebikes.ca/
Also a thanks to Methy at http://www.methtek.com/ :)
And Dave who has some good deals on STUF
RC lipo and most other types of Lithium batteries you MUST know your individual cell voltages while charging and discharging.
Batteries of all kinds need respect they can burn your house down, so don't sleep with them under your bed or any other were you cant afford smoke or fire!
[color=#FF0000][b][size=150]Never above 4.2v never below 2.7v EVER!!!
User avatar
Arlo1
100 GW
100 GW
 
Posts: 5224
Joined: Sun Apr 26, 2009 10:36 pm
Location: Nanaimo BC Canada

PreviousNext

Return to Motor Technology

Who is online

Users browsing this forum: No registered users and 2 guests