5.14-FOC Firmware
Leaf Gen2 Inverter with Rev3 O.I. Board
EM57 Motor
The system works with idlespeed = -100 (disabled). I can apply power, apply the start signal, and the motor spins happily with throttle input.
If I try idlemode = 0 (always) and idlespeed = 500, nothing happens.
I read the Brake Input must be active on start, which seems like a logical safety step. So here is my sequence:
1. Apply 12V power (ignition "ON")
2. Apply Brake +12V (din_brake = ON)
3. Apply 12V to start (din_start = ON)
4. Release start and then release brake
I would expect the motor to slowly ramp up to idle speed shortly after din_start goes high. But nothing. In fact, the positive contactor does not even engage (negative contactor is tied to ignition). Instead:
opmode = Off
lasterr = NONE
status = PotPressed
What the heck is PotPressed?
Would the above sequence be wrong? I've seen mention of people "idling" motors but nobody describes the start sequence.
Any help would be greatly appreciated!!!!
FYI - other parameters which I'm currently using for testing (idle disabled):
Code: Select all
{
"curkp": 32,
"curki": 10000,
"curkifrqgain": 50,
"fwkp": -150,
"ffwstart": 200,
"syncofs": 0,
"syncadv": 10,
"polepairs": 4,
"sincosofs": 2048,
"fmax": 500,
"dirchrpm": 100,
"dirmode": 1,
"snsm": 14,
"pwmfrq": 1,
"deadtime": 78,
"ocurlim": 700,
"il1gain": 1.65,
"il2gain": 1.65,
"udcgain": 5.43,
"udcofs": 299,
"udclim": 540,
"potmin": 0,
"potmax": 4095,
"pot2min": 4095,
"pot2max": 4095,
"potmode": 0,
"throtramp": 4,
"throtramprpm": 20000,
"throtcur": 4.5,
"brknompedal": -35,
"regenramp": 0.25,
"brknom": 20,
"brkmax": -25,
"brkcruise": -20,
"brkrampstr": 10,
"brkout": -50,
"bmslimhigh": 50,
"bmslimlow": -1,
"udcmin": 30,
"udcmax": 520,
"idcmax": 250,
"idcmin": -250,
"idckp": 2,
"idcflt": 9,
"tmphsmax": 150,
"tmpmmax": 300,
"throtmax": 100,
"throtmin": 0,
"chargemode": 0,
"chargecur": 0,
"chargekp": 80,
"chargeki": 10,
"chargeflt": 8,
"chargepwmin": 0,
"chargepwmax": 83.5,
"idlespeed": -100,
"idlethrotlim": 50,
"idlemode": 0,
"speedkp": 0.25,
"speedflt": 5,
"cruisemode": 2,
"udcsw": 30,
"tripmode": 0,
"bootprec": 0,
"pwmfunc": 0,
"pwmgain": 100,
"pwmofs": 0,
"canspeed": 1,
"canperiod": 1,
"nodeid": 1,
"manualiq": 0,
"manualid": 0
}