Controller is re-installed on the bike after sealing and additional connectors (see 7).
I did an extended test run (emulated commute on Sunday evening, up to 90km/h and 20°C->~40°C in the uphill leg) and deemed it safe to commute for real today. See my build thread as well.
View attachment 337049View attachment 337052
However I'm still struggling with the launch performance. Once it reaches 15 km/h and FOC kicks in it's smooth and seems to deliver full power up to the configured limits.
Post initial configuration with Roger the journey was as follows:
- transition to FOC was rough & unreliable at 1500 eRPM
- dropped phase current from 300 to 150A, re-autocompleted at 200A (for higher error currents) and items further down then just reduce phase for this tweak. Note battery current is limited at 150A due to fuse and contactor ratings.
- consecutitvely raised i\R from 53 to 90 mOhm, which got me going
- I have it now at 175A and 100 mOhm, which is still reliable:
Code:
version:2B0_
0x019A 0xE000 0xFFFF 0xFFFF 0x02C8 0x0003 0x4F80 0x000F
0x66B0 0x0000 0x0000 0x0000 0x0000 0x0000 0x017E 0x0000
0x00E9 0x0705 0x01C1 0x0400 0x0400 0x000E 0xFFDA 0x41EC
0xFFE2 0x5517 0xFFFF 0x08F2 0x00BA 0x0396 0x044E 0x0AA4
0x00E9 0x0150 0x0348 0x0026 0x01A4 0xFF8F 0xFFB0 0xE4D8
0xE86C 0x08F3 0x16F7 0x7FBC 0x7D2E 0x0010 0x795E 0x0000
0x4CCC 0x0018 0x0000 0x01E0 0xFFFF 0xB334 0xFFE8 0x0000
0xFE20 0x0000 0x4CCD 0x0018 0x0000 0x01E0 0xFFFF 0xB333
0xFFE8 0x0000 0xFE20 0x05B8 0x02C4 0x0064 0x0017 0x36CF
0xFF00 0x3A37 0x9033 0x6A37 0xEA37 0x1033 0xBA39 0xFF00
0x1122 0x0026 0x000B 0x0005 0x00C2 0x0000 0x0000 0x051E
0x028F 0x0400 0x0400 0x0400 0x085D 0x0357 0x0093 0x042D
0x0008 0x0D1A 0xFFC0 0x08F2 0x1000 0x0000 0x0000 0x0000
0x0000 0x0000 0x00BB 0x02AF 0xFFFF 0xFFFF 0x147B 0x0106
0x118E 0x05DA 0x0578 0x0258 0x0064 0x0004 0x0004 0x000E
0x0298 0x0003 0x0000 0x0078 0x0000 0x0000 0xFFFD 0x0000
0xFF88 0x0000 0x0000 0x0005 0x0000 0x0064 0xFFFB 0x0000
0xFF9C 0x000C 0x0000 0x00F0 0xFFF4 0x0000 0xFF10 0x0619
0x01D3 0x08C7 0x004D 0x014E 0x01D3 0x002E 0x0010 0x0E10
0x07D0 0x03B6 0x6000 0x0624 0x0074 0xBC10 0xA9A6 0x0803
0x8600 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x00A0 0xFFFF 0xFFFF
0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0x0052 0xFFFF 0xFFFF
0xFFFF 0xFFFF 0xFFFF 0xFFFF 0xFFFF 0x0001 0x0000 0x0005
0xA000 0x3CA8 0x0038 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0xFFDA 0x41EC 0xFFE2 0x5517
0x6C1C 0x010E 0x2800 0x098A 0x0000 0x0CA8 0x005F 0x003E
0x0A80 0x1062 0x0285 0x0206 0x0000 0xFFF8 0xFFDA 0x41EC
0xFFE2 0x5517 0xDB91 0x0005 0x8000 0x059D 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0xFFDA 0x41EC 0xFFE2 0x5517 0x059D 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0324 0x0648 0x096A
0x0C8C 0x0FAB 0x12C8 0x15E2 0x18F9 0x1C0B 0x1F1A 0x2223
0x2528 0x2826 0x2B1F 0x2E11 0x30FB 0x33DF 0x36BA 0x398C
0x3C56 0x3F17 0x41CE 0x447A 0x471C 0x49B4 0x4C3F 0x4EBF
0x5133 0x539B 0x55F5 0x5842 *
Since then I tried to tweak the transition:
- D\f (erpm dr2 jump to dr3) from 1000 to 750, which is too low even on N\h (minimum # of cycles going from drive 2 to 3 = 5000), 900 is OK even on 2000 cycles.
- 190A phase is too much for a neat transition even at D\f of 5000 (still based on 200A)
- G\g (phase control loop, drive 2, 3rd order) autocompletes to 0.03 but as per Roger's recommendation is 0.3, tried doubling it to .6 to see if I get better acceleration under Drive_2 (Halls), but did not notice a difference, so reverted
- G\n (immediate motor phase step) autocompletes to 64 and was at 16 per Roger's recommendation (for hub motors), tried 8 (more "jumpy") and now 24, which causes a bit of humming but feels more responsive. This value seems to affect both Drive_2 and Drive_3 (FOC)
TBH, I don't have a full understanding of the parameters but I can change a value at a time. I'm especially wary of increasing the error currents (I only autocompleted based on 200A instead of Roger's recommendation of 300A) until I'm a little more confident.
I might try calibration based on 250A next and a phase current of 190-200A.
Edit: tried the 250A, autocomplete then 190A phase current settings this morning. Worked OK, but the transition has become more "rough" and it conked out once (only) on an incline.
Further tuning of my setup starts
on this post in my build threa Did you manage to implement the electric motorcycle project?