Hi all.
Here's a summary of this thread I made as preparation for my 6 FET 116 controller project that its been suggested I post. Its mostly just cut and pasted but will save people wading through the 51 pages of this meandering tale to find the right tech stuff :wink: I've updated it to include recent info also.
Cheers, Ben.
Summary notes re building 116 chip 18 FET controllers
Re preventive mods/proceedures:
Methods:
Check for PCB traces near the case and coat/trim if nec.
I cut back the +5V trace at the corner on the top and bottom
I also cut back the VCC trace next to the big caps on the top left corner
Make sure you put some glue over the cut traces so as not to leave exposed copper
Discharge the big caps before removing/returning a board to its case [short them thru a resistor. Or, disconnect the battery with the CA still connected then switch on the "ignition" switch (from Vcc to Vcc-L) the CA should come on discharging the caps.]
Testing:
Methods:
When you are done take these measurements at a minimum:
Resistance: turn on the controller (with no battery attached) to drain the caps before test. If there is voltage in the system (even a little) it can give you screwy measurements.
+V to GND
(Should *not* read low resistance, but will read some arbitrary value in the Kohms - maybe 10K ohm)
GND to +V (habit, stray voltages can fool you, always reverse the leads)
(Should not read low resistance, but will read some arbitrary value in the Kohms)
Heatsink to +V
(Must be totally isolated - completely as in no change what so ever on the meter - not even a blip - OL)
Heatsink to GND
(Must be totally isolated - completely as in no change what so ever on the meter)
Building up traces:
Can use solder wick or bus wire - If you can get the iron up over 700F and use high-flux solder it is easy.
see pics p 21 for the various locations to build up
Re controller features:
Methods:
We considered wiring in all the functions like Cruise Control, Regen, Multi-speed, LED Indicate, etc. but I think that simplicity is better, cleaner, and more reliable. We can add those features upon request. I was considering bringing all those features out on one large connector and leaving it to the user to chose what functions to use. For now we are going to keep it simple for the serious ebike folks.
I really like Justin's idea of keeping it simple.
I also like the idea of bringing out one master connector that has all the bells and whistles in it that most people wont use
-
Your idea of adding an optional sensor is actually fairly easy.
In that case, I would add a micro controller to the mix with an opto-isolator
For instance, the uC could limit the throttle setting to 50% (like the CA does) if the input voltage (say and RTD) crosses a certain threshold.
Something like this is an investment up front but nearly free on the back end.
I work with a specific uC (the MSP430) that comes on a board the size of your thumbnail with everything ready to go - A/D's, D/A's, Capture Compare, Timers, Counters, Digital I/O, a 16Mhz clock, Ultra Low (sub 1uA) power consumption, ...
geoff57:
I have just started [to use a 4p] connection with a throttle that keywin sells, a full grip throttle with a green button momentary make switch on it, this last wire can be connected to the X1 pad then you have a throttle that works in cycle mode, which is what I have been asked for by Team Hybrid, and by choosing the speed setting carfully I was able to get the controller to work with both a standard or green button throttle.
-
The xtlyte brakes are hall and i am not sure if they are compatable cannot see why not, I have a pair here but I never tried to get them to work with the Infineons it would require a ground wire,+5v and a signal wire, they are made from plastic and have short reach levers(2 finger)
Connectors:
Doctorbass:
What i do for real 10 gauge with 30A anderson is that i only solder them.. it is so thight than just soldering them give a very low resistance lost...
You can enlarge a bit the hole in the connector to allow the full size of the 30A anderson connector.. .I use a long nose plyer nd enlarge it and it fit well..time saving!
methods:
If you have ever tried to make 45A anderson connections to 10AWG wire without the special tool you will know what hell it can be...
Sure it is easy enough to crimp them, but getting them to fit into the housing is nearly impossible.
Some people just shove them in there with force, but that fubar's the connection. The tabs must move freely in the housing.
Re heat sinking:
Stevo:
What i can not stress enough is making sure you have 100% thermal contact ..
I've had over a dozen controller blow due to poorly machined sinks that where warpped .. CHECK THAT BUS BAR .. put it on a flat surface .. see if any of the ends rock .. put a flat edege to the bus bar and check if its flush by eye ..
properly thermal paste everything .. Done overkill on the paste .... just put enough!! can't wait to see your results!!
[Don't need paste with grey pad b/t FETs and heat spreader. Can also use Kapton tape here. Kenny doesn't combine with paste but others recommend paste on none adhesive side.]
Doctorbass:
Also a great upgrade would be to use true MICA instead of that grey "rubber".. the heat transfer is alot better! and would make the jonction work cooler... giving higher current capability!
Shunts:
Methods:
The shunts that Keywin put in are NOT matched to the software. The software expects about half the impedance. If you want to get up near 100A cont. you must solder the shunt down to 250uOhms. If you lay two pieces of solder wick on top of the shunt and then drench the entire thing in solder you should get close.
1 mOhm: allows stay in the high resolution mode with the CA (2.5W loss at 50A)
[However] the CA actually has a very good input resolution so you may not even take a hit on your Ah readings [by using <1 mOhm].
Only need to change/mod shunt if max current will exceed the shunts power rating or if power loss is considered too wasteful (eg >2.5W).
Calibration:
methods: I am working on a new shunt programing method that can be done externally to the controller. During assembly a "best shot" is taken to get the shunt resistance near 250uOhms. I then complete assembly.
A 10A current is run from one of the 3 phase wires, through the internal diodes of the 4110's, through the shunt, and back through the main system ground.
With the CA already installed all you have to do is monitor that current on the CA and on the ammeter.
Apply the percent difference formula, repeat twice, and you are done.
No more sketchy alligator clips etc.
I got this idea from Justin in another thread many moons ago.
The 10A comes from a 5V 20A supply with some inline resistance.
More details p 29.
[Me: Couldn't I just send a sense wire out some distance (Approx 10" of 10ga = 1 mohm) up the GND batt wire to pick up the V drop? No extra power loss or heat required to measure current and stay in the high resolution mode with the CA. One issue is the high temp dependence of resistance in copper - not too bad to have the current limit drop with temp but instability of shunt resistance will effect accuracy of Ah calculations. Shunt calibration would also be required. Need to know temp change of batt ground wire durring operation to evaluate. ]
Re. caps:
Glue down with quick grip/ silicone (non vinegar type)
methods:
100V caps are fine for 100V assuming they are high quality low ESR. Like fechter said - it is about the quality of the capacitors. Better to have 100V low ESR caps than 160V "so-so" caps. I would rather have more capacitance at 100V than less at 160V as well. for people running more than 24S - they will need 160V caps for sure.
Doctorbass:
The trick would be to put many low uf value in parallel over the rails.. that would be more stable for capacitance and inductance for the mosfet.
dnmun:
it may be worthwhile to reconsider the placement of the caps also and the type of conductor from the battery perhaps a ribbon rather than a round conductor, and mount the caps very close to the main S/D <Sink/Drain?> busses to reduce the total inductance. keywin added some at each end, but it may behoove you to consider having the case open to test out the idea of using large caps soldered directly onto the S/D busses from underneath, perhaps having them sticking out the bottom, normal to the pcb. the legs should be as short as possible, not sure if the voltage rating will matter that much then.
liveforphysics:
We seem to be going about it the wrong way. We aren't concerned at all with storing energy in these caps, that's why we have batteries. We have the caps to resist the change in voltage each time a FET bank switches on or off. The peak capacitance we need to be store to do this is under 50uF (from my crude estimation).
All the effects our performance is the final ESR of the system of caps we use. In other words, any cap solution that provides a lower combined ESR, regardless of the capacity values is going to result in higher performance.
-
Rubycon makes some caps that look pretty good, but you would need 3 in series... which would be lame to setup.
35v 470uF 0.014Ohms ESR 10mm x 20mm
So, it would be 42mOhms for a 105v cap with 156uF, and it would fit in a very small space. I think using a group (3s8p) of these caps you could get a board down to maybe 5mOhms.
dnmun has 30 cent 100V 1000uF caps for sale from eBay
4110 FETs:
greasypants:
I known Lowell said the 4110's should be ok up to 112 volts but I have never tried it.
Re. voltage mods for Voltage regulator for control circuit::
methods:
This regulator works by putting 3 power resistors in parallel
This makes for much higher power handling than the old design
I consider the below conservative numbers. Even at the 70V - 105V setting I have run 44V and it worked fine.
1.8 || 1.8 || 1.8
input 70v~ 105v
1.5 || 1.5 || 1.5
input 60v~ 86v
1.8 || 1.8 || 0.68
input 50v~64v
1.5 || 1.5 || 0.68
input 30v~54v
[Can also use a switch to change resistance for 50V and 100V modes. See methods' 100V 100A controller thread]
If going over 75V, should replace voltage regulator SMD resistors with higher power, leaded one/s ( total R = 3K , Power = 3W). see p 17 and p 21 for pics
dnmun:
why not do what knuckles did originally with the infineon transistor modification. first he latched the 12V rail with the 15V zener and then latched the input of the LM317T at 51V with the 36V zener, maybe you could go extreme and use an 18V zener to latch the 12V bus and add a 40V zener on top to peg the VR input to 58V-Vbe. that would work with the 107V Vcc, dropping the 50V with a 1k6R and 1k5R 2W in parallel. about 3.2W total. plus it would run all the way down to LVC on the battery pack then too. my education from knuckles. - methods says: too much work for production model.
SAM-pilot: For voltages over 86V you need to lower R12. Otherwise you will have a overvoltage on the voltage measurement input of the uC. I have lowered R12 to 960R, which is good for input voltages till 107V.
Doctorbass: .. just replacing the 3 serie resistor for a 3.0K 3Watts and replaced the 3 parallel 3W flameproof resistors for 3 x 2.4K,
I have absolutly no problem using up to 105V input and up tp 172A using 18 PURE IR 4110 mosfet on cooper bar heat sink.
Wiring:
methods:
pics on p 21, p 26 is v good (but the throttle position wrong throttle output is to the SP pad, TB is to do with 'securety' which is all anyone knows)
Also: methods: Please check out Knuckles threads in the Technical Section, everything is clearly laid out (Most everything still applies. The regulator is different, the programming hole is a little different, some locations are different. All of the "normal stuff" is still the same though.
"Infineon Controller Technical"
Hall – 6P
RED - +5V
YEL - GND
GRN - A
BRN- B
GRY - C
BLK - N/C
Throttle – 3S
RED - SP
YEL - GND
BLK - +5V
Brake – 3P
RED BRK
YEL GND
BLK +5V
CA – 6S short
BLK VBAT
GRY GND
BRN SHUNT-
GRN SHUNT+
YEL SPEED
RED THR_INH
(bikeraider has pics of CA wiring p46)
If you analyze the way I set up those pins it will be come apparent that I did 2 things:
1) Maintained compatibilty with the Crystalyte Throttle and Brake as well as the CA
2) Set it up so that plugging the connectors together in an incorrect manner will not cause damage.
Q: On the CA connector, do you wire the Ebrake to the EB+ or EB- ?
A: There are 2 ways to do it:
1. Brakes Only: EB-
(EB+ would be for a 12V input)
2. Variable Throttle Control by CA
(Follow instructions for CA, attach to throttle line)
Q: On the CA connector, where to wire the Hall to the amplified hall circuitry on the board?
A: Attach it to any of the three hall signals, A, B, or C. [I think methods drills a hole and taps a hall on the bottom of the board. BTW, don't worry abut "the amplified hall circuitry on the board" it doesn't seem to work].
Q: Is the ON/OFF switch use for enable the controller circuitry? If so, should I connect the VB2+ & Vcc-L?
A: Connect the switch between V+ (anywhere) and VCC-L
I suggest drilling a hole on the left side cover between the top of the caps and the fets.
This will lock in the switch and allow you to tighten the nut while still allowing easy assembly and access.
Remember to power the CA from VCC-L so that when you turn the switch off the CA turns off.
Q: 5v E-brake for c/a?
A: The ebrake is EBS-
Just apply your active low to this pin.
Dont forget to solder the diodes I gave you into D32.
You can run the CA there or you can run the CA to the Throttle line via a diode and a resistor per the CA Instructions.
Q: LED: Led Ground?
A: To me it just looks like Doc hooked an LED into the VCC-L circuit
Button is on, LED is lit
Button is off, LED has no power.
geoff57: I think Doc found somthing about what LED did I'm not sure.
p1 and p2 are for leds they will show what "gear" you are in p1 for speed 1 p2 for speed 3, now P3 can have 1 of 2 uses depending on how you set it in the software, it can be set to indecate that cruise controll is active or it can be set to a diffrent function as normal chineese to english translation was not up to the explnation so I will have to workit out myself but whatever it is it is anothe led indicator.
methods: I would not bother with all the trouble of a Status LED. The CA turns on and off with the board and that is a much better indicator of status in my opinion. The diode just makes for a lot more work, more current draw on the regulator, and one more thing that can go wrong. You have to drill a hole for it, glue it in, calculate a current limiting resistor, bah!
USB programming cable:
Ships with a mating header connector.
Solder that into the row of holes right above the date stamp.
Orientate it to the left. You can confirm you have it right by seeing that the red/orange go to +5 and the black goes to ground.
Software/ programming:
See page 12 for translations
See page 18 for S/W installation instructions
Connecting controller to computer see p 19
A driver is required for the USB to PC link.
Knuckles has downloads on p 25
.OCX files are no p 41 if needed (ie computer reports them missing)
See method's settings and procedure p 22
methods: The purpose of my mod is to allow you to solder in the header and program the controller after the case is on.
An alternate to my mod would be to solder in the connector and then add a second connector that could be broken/reconnected outside the case to transfer.
No matter what power must be toggled to transfer data.
[When flashing has occured, a program bar goes across screen and the message box tell you that you were successful].
You need a switch on the negative pole of the USB cable to activate de transfer data. [ZapPat doesnt use/need a switch. See his post p51]
geoff57: by setting the block time to a large value you can go over the [software, "57A"] amp limmit for a short time.
Other software parameters:
"Bar Protect" option: ZapPat: I don't know if this was mentioned before, but the "Bar Protect" option in the parameter designer software is actually a throttle fault protection feature. If your throttle cuts off when close to it's full position, then deactivate this option to get it functioning normaly. Gotta love these funny translations!
"Tolerance(V)": SAM -pilot:
I am quite sure that "Tolerance(V)" is a delta voltage. After a low voltage cut off the input voltage needs to rise the programmed "Tolerance(V)" over the low voltage level to turn the controller on again.
One time I have programmed the "Tolerance(V)" to 1V and as my battery voltage gose down to the low voltage level at high current, the motor goes on off on ... quite fast. [hysterisis for the LVC]
Also see Infineon Programming Help thread (applies to 116 chip controller also)
http://endless-sphere.com/forums/viewtopic.php?f=2&t=13139
Pics:
Doctorbass's inside view - p13
Diagnostic LEDs:
Doctorbass knows where to put - can kind of see in his pic p 13 (and geof57 also I think)
External current adjuster:
Alternative to using a 2- 3 speed switch.
Doctorbass: installed a 10K pot + a 4.7K in series to replace the R44 10K resistor that set the current sensing amplification that the Uc reads. Update: "I removed the external pot and resistor cause the that induced alot of noise and alarmous current spikes at low RPM."
Regen:
Enable in s/w
For regen to activate you must jumper BK to GND - see pic p 26. Grounding BK switches on the regen circuit so when the brake
is pulled regen is applied at the same time( knuckles has a regne brake button as well, just a button wired to the Ebrake line, as a brake an uses that to brake a lot pure regen braking ).
V max mod:
Stock max on the 18 FET is 75V, set by R12 at 1200Ohms.
geoff57: check first [as "75V" may be lower than actual max allowed]
SAM - pilot: For regen at a higher voltage then 75 you need to make the LVC mod on R12. I have lowered R12 from 1.2K to 960R. This means the real voltage is the programmed voltage +25%. So 75V max regen voltage is now 94V.
note: Lowering the R12 value will increase the (programmed) regen voltage limit and also increase the (programmed) LVC.
Knuckles:
In theory, regen braking voltages should be limited according to the battery in use on the EV.
24V battery … Max charge voltage = 30V.
36V battery … Max charge voltage = 45V.
48V battery … Max charge voltage = 60V (default Infineon value).
60V battery … Max charge voltage = 75V.
72V battery … Max charge voltage = 90V.
(Note that regen braking is disabled by the processor over the max charge voltage.)
In reality, it is virtually impossible to overcharge batteries using regen braking in the real world.
And, of course, ONLY mechanical brakes can make your tires skid to a stop.
Also: geoff57:
"the mod was ok I think Knuckles knows more about the mod than me, I have not had DD motors for long only been working with geared so I never concentrated on regen with an X5 and a 409 I will have to now. As far nas the switch is concerned if you want to be able to switch off regen as by putting a switch in there you may want to you need a on of switch not a momentary switch, but I think you have got the whole braking system wired up wrong, what you want is to push a button and the regen is activated charging your battery and braking the bike, the way YOU wired it up just activates the regen circuitry so when the Ebrake is applyed the regen is applyed as well and since you used a momentary switch it was on then off.
Regen is used in conjuntion with the EBS or Ebrake system.The EBS or Electronic Braking System pads that are connected to ground are just a switch that stop the motor while the switch is closed most often found fitted to brake levers (EBS+ is as I said before used with a 12v brake light supply but the prisiple is the same) the strength of regen is controlled in the software and then the yser can choose when to piggyback the regen signel onto the Ebrake signel by grounding BK. from what I can gess of your setup I think you will want somthing like knuckles has he has his BKlinked to groung permantly(this is an option) then on the handlebars he has his standard Ebrake levers with a microswitch in them connected to the Ebrake EBS to GND connector, PLUS he has an extra push button momentary switch on the handlebars that is also connected to the Ebrake connector, very often he uses just the push button to stop him and saves on brake pads as well !!" more discussion p 27.
Cruise control:
Enable in s/w
geoff57: Cruise control: is activated by useing a momentary switch between CR and GND. the way it works is that you turn the throttle as far as you want to then press the cruise control switch you then let the throttle return to rest and the controller will ceep the motor going at throttle place you had it in UNTIL either the Ebrake is applied ,the throttle is turned or the cruise controll is presesd again, I think that the setting in the software on cruise controll is to do with how long you have to get the throttle to rest befor going into cruise control is ignored I am going to test this theory, at high speeds or in built up areas I would not advise cruise control.
Ebrakes:
geoff57: The Ebrakes are on the EBS pads, a switch ebrale between EBS- and GND will activate the brakes as would the output of a hall ebrake though I have Yet to test hall brakes.
Other stuff:
methods:
Keywin forgot to populate D32. This is the diode that links the -EBS (ebrake) pad trio. It is suggested that you use a 1N4007 or an M7.
12V rear brake lights:
The ebs+ pad is disabled on both 12 and 18 fet boards it requires Q6 to work and it is missing.
SAM - pilot: You need just added a NPN transistor (Q6) and then it works fine. I used a SC2240 I had in my stock. But on this one I had to adapt the pining.
SL pad:
Is for speed limit. Ground that and you get a limited speed BUT unlike the speed settings you get full torque until you reach your speed limit(this could be at only half throttle though)
Regen:
Controled by 2 factors,
1: the software settings as to how high a voltage the cut off point is , in the software this is a max of 75V not enough for 100v 18 fet controllers knuckles has worked out that a regen mod will be able to be done with no problem after I sent him some hi res pcb shots, it will require a rethink of the software lvc to make sure the lvc is still correct and the regen will have to be worked out but both of these problems are easy to solve.
2: the other factor that controlls regen is to actualy to switch it ON so that when you brake the regen circut activates, grounding BK switches on the regen circuit so when the brake
is pulled regen is applied at the same time( knuckles has a regne brake button as well, just a button wired to the Ebrake line, as a brake an uses that to brake a lot pure regen braking ).
cruise control:
is activated by useing a momentary switch between CR and GND. the way it works is that you turn the throttle as far as you want to then press the cruise control switch you then let the throttle return to rest and the controller will ceep the motor going at throttle place you had it in UNTIL either the Ebrake is applied ,the throttle is turned or the cruise controll is presesd again, I think that the setting in the software on cruise controll is to do with how long you have to get the throttle to rest befor going into cruise control is ignored I am going to test this theory, at high speeds or in built up areas I would not advise cruise control.
The Ebrakes are on the EBS pads, a switch ebrale between EBS- and GND will activate the brakes as would the output of a hall ebrake though I have Yet to test hall brakes, EBS+ is for a +12 v brake light found in say a car or a motorbike on earlyer boards this worked as the transistor Q6 is required and was surface mounted on these boards it is not the transistor is missing there is just 3 holes very few of us use EBS+ so it does not matter that much but for those that need it sam has the fix.
I think Doc found somthing about what LED did I'm not sure.
p1 and p2 are for leds they will show what "gear" you are in p1 for speed 1 p2 for speed 3, now P3 can have 1 of 2 uses depending on how you set it in the software, it can be set to indecate that cruise controll is active or it can be set to a diffrent function as normal chineese to english translation was not up to the explnation so I will have to workit out myself but whatever it is it is anothe led indicator.
Speed Limit:
the SL pad is for speed limit. Ground that and you get a limited speed BUT unlike the speed settings you get full torque until you reach your speed limit(this could be at only half throttle though)
Reverse:
the DX3 pad is the reverse switch. ground that to go in reverse. only of use on direct drive motors as regen would be, in theory it should be X3 but there is a diode missing why i don't know there holes for it .
Separate charging lines:
methods:
I will be adding new lines to the controllers for charging.
On my old bike I used to charge through the shunt so that I could measure negative AH. It is a nice feature... Just turn on the CA while charging and you can monitor Charge Voltage, Charge Current, etc.
I will be running a pair of charge wires out of all future controllers.
These will be tied to V+ and PHASE(-)
This will force the current to run backwards through the shunt and roll back AH while charging
You guys will love it.
I will size the wires to about 20A charging.
3 speed selectior:
Pads X1 and X2 grounded with a switch (only one never both at the same time so use a 3 way switch) activate speed 1 and speed 3 respectivly with neither grounded the default is used speed 2.