# Setting FSESC 200A 60V for a 65161 / 120KV

**URL:** https://foil.zone/t/setting-fsesc-200a-60v-for-a-65161-120kv/11492
**Category:** efoils – Electric Hydrofoil Surfboards
**Created:** [January 11, 2021, 12:35pm UTC](https://foil.zone/t/setting-fsesc-200a-60v-for-a-65161-120kv/11492 "2021-01-11T12:35:35Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![darilar](https://foil.zone/letter_avatar_proxy/v4/letter/d/67e7ee/32.png) [@darilar](https://foil.zone/u/darilar)
#### Post date: [January 11, 2021, 12:35pm UTC](https://foil.zone/t/setting-fsesc-200a-60v-for-a-65161-120kv/11492/1 "2021-01-11T12:35:35Z")

</div>

Hi everyone, I’m having some problems setting up the ESC for my e-foil.

I have a FSESC 200A 60V for a 65161 / 120KV motor (all flipsky) with a Maytech remote controler.

12S 10P Li-ion battery.

With firmware ‘VESC\_default\_no\_hw\_limits’ I configured the motor as FOC, everything works fine but the motor does not exceed 2500 RPM, I think it should go faster.

I hope I was able to explain the problem, thanks in advance for your help, and sorry for my English.

Flavio

---

<div class="post-metadata">

### Author: ![darilar](https://foil.zone/letter_avatar_proxy/v4/letter/d/67e7ee/32.png) [@darilar](https://foil.zone/u/darilar)
#### Post date: [January 11, 2021, 12:40pm UTC](https://foil.zone/t/setting-fsesc-200a-60v-for-a-65161-120kv/11492/2 "2021-01-11T12:40:52Z")

</div>

the exported configurations:

-

\<pwm\_mode\>1\</pwm\_mode\>

\<comm\_mode\>0\</comm\_mode\>

\<motor\_type\>2\</motor\_type\>

\<sensor\_mode\>0\</sensor\_mode\>

\<l\_current\_max\>120\</l\_current\_max\>

\<l\_current\_min\>-93.72\</l\_current\_min\>

\<l\_in\_current\_max\>120\</l\_in\_current\_max\>

\<l\_in\_current\_min\>-60\</l\_in\_current\_min\>

\<l\_abs\_current\_max\>150\</l\_abs\_current\_max\>

\<l\_min\_erpm\>-10000\</l\_min\_erpm\>

\<l\_max\_erpm\>100000\</l\_max\_erpm\>

\<l\_erpm\_start\>0.8\</l\_erpm\_start\>

\<l\_max\_erpm\_fbrake\>300\</l\_max\_erpm\_fbrake\>

\<l\_max\_erpm\_fbrake\_cc\>1500\</l\_max\_erpm\_fbrake\_cc\>

\<l\_min\_vin\>8\</l\_min\_vin\>

\<l\_max\_vin\>57\</l\_max\_vin\>

\<l\_battery\_cut\_start\>40.8\</l\_battery\_cut\_start\>

\<l\_battery\_cut\_end\>36\</l\_battery\_cut\_end\>

\<l\_slow\_abs\_current\>1\</l\_slow\_abs\_current\>

\<l\_temp\_fet\_start\>85\</l\_temp\_fet\_start\>

\<l\_temp\_fet\_end\>100\</l\_temp\_fet\_end\>

\<l\_temp\_motor\_start\>85\</l\_temp\_motor\_start\>

\<l\_temp\_motor\_end\>100\</l\_temp\_motor\_end\>

\<l\_temp\_accel\_dec\>0.15\</l\_temp\_accel\_dec\>

\<l\_min\_duty\>0.005\</l\_min\_duty\>

\<l\_max\_duty\>0.95\</l\_max\_duty\>

\<l\_watt\_max\>6000\</l\_watt\_max\>

\<l\_watt\_min\>-6000\</l\_watt\_min\>

\<l\_current\_max\_scale\>1\</l\_current\_max\_scale\>

\<l\_current\_min\_scale\>1\</l\_current\_min\_scale\>

\<l\_duty\_start\>1\</l\_duty\_start\>

\<sl\_min\_erpm\>150\</sl\_min\_erpm\>

\<sl\_min\_erpm\_cycle\_int\_limit\>1100\</sl\_min\_erpm\_cycle\_int\_limit\>

\<sl\_max\_fullbreak\_current\_dir\_change\>10\</sl\_max\_fullbreak\_current\_dir\_change\>

\<sl\_cycle\_int\_limit\>62\</sl\_cycle\_int\_limit\>

\<sl\_phase\_advance\_at\_br\>0.8\</sl\_phase\_advance\_at\_br\>

\<sl\_cycle\_int\_rpm\_br\>80000\</sl\_cycle\_int\_rpm\_br\>

\<sl\_bemf\_coupling\_k\>600\</sl\_bemf\_coupling\_k\>

\<hall\_table\_\_0\>-1\</hall\_table\_\_0\>

\<hall\_table\_\_1\>1\</hall\_table\_\_1\>

\<hall\_table\_\_2\>3\</hall\_table\_\_2\>

\<hall\_table\_\_3\>2\</hall\_table\_\_3\>

\<hall\_table\_\_4\>5\</hall\_table\_\_4\>

\<hall\_table\_\_5\>6\</hall\_table\_\_5\>

\<hall\_table\_\_6\>4\</hall\_table\_\_6\>

\<hall\_table\_\_7\>-1\</hall\_table\_\_7\>

\<hall\_sl\_erpm\>2000\</hall\_sl\_erpm\>

\<foc\_current\_kp\>0.0255\</foc\_current\_kp\>

\<foc\_current\_ki\>21.18\</foc\_current\_ki\>

\<foc\_f\_sw\>25000\</foc\_f\_sw\>

\<foc\_dt\_us\>0.12\</foc\_dt\_us\>

\<foc\_encoder\_inverted\>0\</foc\_encoder\_inverted\>

\<foc\_encoder\_offset\>180\</foc\_encoder\_offset\>

\<foc\_encoder\_ratio\>7\</foc\_encoder\_ratio\>

\<foc\_encoder\_sin\_gain\>1\</foc\_encoder\_sin\_gain\>

\<foc\_encoder\_cos\_gain\>1\</foc\_encoder\_cos\_gain\>

\<foc\_encoder\_sin\_offset\>1.65\</foc\_encoder\_sin\_offset\>

\<foc\_encoder\_cos\_offset\>1.65\</foc\_encoder\_cos\_offset\>

\<foc\_encoder\_sincos\_filter\_constant\>0.5\</foc\_encoder\_sincos\_filter\_constant\>

\<foc\_sensor\_mode\>0\</foc\_sensor\_mode\>

\<foc\_pll\_kp\>2000\</foc\_pll\_kp\>

\<foc\_pll\_ki\>30000\</foc\_pll\_ki\>

\<foc\_motor\_l\>2.545e-05\</foc\_motor\_l\>

\<foc\_motor\_r\>0.0212\</foc\_motor\_r\>

\<foc\_motor\_flux\_linkage\>0.015314\</foc\_motor\_flux\_linkage\>

\<foc\_observer\_gain\>4.26e+06\</foc\_observer\_gain\>

\<foc\_observer\_gain\_slow\>0.05\</foc\_observer\_gain\_slow\>

\<foc\_duty\_dowmramp\_kp\>10\</foc\_duty\_dowmramp\_kp\>

\<foc\_duty\_dowmramp\_ki\>200\</foc\_duty\_dowmramp\_ki\>

\<foc\_openloop\_rpm\>1000\</foc\_openloop\_rpm\>

\<foc\_sl\_openloop\_hyst\>0.1\</foc\_sl\_openloop\_hyst\>

\<foc\_sl\_openloop\_time\>0.1\</foc\_sl\_openloop\_time\>

\<foc\_sl\_d\_current\_duty\>0\</foc\_sl\_d\_current\_duty\>

\<foc\_sl\_d\_current\_factor\>0\</foc\_sl\_d\_current\_factor\>

\<foc\_hall\_table\_\_0\>255\</foc\_hall\_table\_\_0\>

\<foc\_hall\_table\_\_1\>255\</foc\_hall\_table\_\_1\>

\<foc\_hall\_table\_\_2\>255\</foc\_hall\_table\_\_2\>

\<foc\_hall\_table\_\_3\>255\</foc\_hall\_table\_\_3\>

\<foc\_hall\_table\_\_4\>255\</foc\_hall\_table\_\_4\>

\<foc\_hall\_table\_\_5\>255\</foc\_hall\_table\_\_5\>

\<foc\_hall\_table\_\_6\>255\</foc\_hall\_table\_\_6\>

\<foc\_hall\_table\_\_7\>255\</foc\_hall\_table\_\_7\>

\<foc\_sl\_erpm\>4000\</foc\_sl\_erpm\>

\<foc\_sample\_v0\_v7\>0\</foc\_sample\_v0\_v7\>

\<foc\_sample\_high\_current\>0\</foc\_sample\_high\_current\>

\<foc\_sat\_comp\>0\</foc\_sat\_comp\>

\<foc\_temp\_comp\>0\</foc\_temp\_comp\>

\<foc\_temp\_comp\_base\_temp\>25\</foc\_temp\_comp\_base\_temp\>

\<foc\_current\_filter\_const\>0.1\</foc\_current\_filter\_const\>

\<foc\_cc\_decoupling\>2\</foc\_cc\_decoupling\>

\<foc\_observer\_type\>0\</foc\_observer\_type\>

\<foc\_hfi\_voltage\_start\>20\</foc\_hfi\_voltage\_start\>

\<foc\_hfi\_voltage\_run\>4\</foc\_hfi\_voltage\_run\>

\<foc\_hfi\_voltage\_max\>10\</foc\_hfi\_voltage\_max\>

\<foc\_sl\_erpm\_hfi\>2000\</foc\_sl\_erpm\_hfi\>

\<foc\_hfi\_start\_samples\>65\</foc\_hfi\_start\_samples\>

\<foc\_hfi\_obs\_ovr\_sec\>0.001\</foc\_hfi\_obs\_ovr\_sec\>

\<foc\_hfi\_samples\>1\</foc\_hfi\_samples\>

\<gpd\_buffer\_notify\_left\>200\</gpd\_buffer\_notify\_left\>

\<gpd\_buffer\_interpol\>0\</gpd\_buffer\_interpol\>

\<gpd\_current\_filter\_const\>0.1\</gpd\_current\_filter\_const\>

\<gpd\_current\_kp\>0.03\</gpd\_current\_kp\>

\<gpd\_current\_ki\>50\</gpd\_current\_ki\>

\<s\_pid\_kp\>0.004\</s\_pid\_kp\>

\<s\_pid\_ki\>0.004\</s\_pid\_ki\>

\<s\_pid\_kd\>0.0001\</s\_pid\_kd\>

\<s\_pid\_kd\_filter\>0.2\</s\_pid\_kd\_filter\>

\<s\_pid\_min\_erpm\>900\</s\_pid\_min\_erpm\>

\<s\_pid\_allow\_braking\>1\</s\_pid\_allow\_braking\>

\<p\_pid\_kp\>0.03\</p\_pid\_kp\>

\<p\_pid\_ki\>0\</p\_pid\_ki\>

\<p\_pid\_kd\>0.0004\</p\_pid\_kd\>

\<p\_pid\_kd\_filter\>0.2\</p\_pid\_kd\_filter\>

\<p\_pid\_ang\_div\>1\</p\_pid\_ang\_div\>

\<cc\_startup\_boost\_duty\>0.01\</cc\_startup\_boost\_duty\>

\<cc\_min\_current\>0.05\</cc\_min\_current\>

\<cc\_gain\>0.0046\</cc\_gain\>

\<cc\_ramp\_step\_max\>0.04\</cc\_ramp\_step\_max\>

\<m\_fault\_stop\_time\_ms\>500\</m\_fault\_stop\_time\_ms\>

\<m\_duty\_ramp\_step\>0.02\</m\_duty\_ramp\_step\>

\<m\_current\_backoff\_gain\>0.5\</m\_current\_backoff\_gain\>

\<m\_encoder\_counts\>8192\</m\_encoder\_counts\>

\<m\_sensor\_port\_mode\>0\</m\_sensor\_port\_mode\>

\<m\_invert\_direction\>0\</m\_invert\_direction\>

\<m\_drv8301\_oc\_mode\>0\</m\_drv8301\_oc\_mode\>

\<m\_drv8301\_oc\_adj\>16\</m\_drv8301\_oc\_adj\>

\<m\_bldc\_f\_sw\_min\>3000\</m\_bldc\_f\_sw\_min\>

\<m\_bldc\_f\_sw\_max\>35000\</m\_bldc\_f\_sw\_max\>

\<m\_dc\_f\_sw\>25000\</m\_dc\_f\_sw\>

\<m\_ntc\_motor\_beta\>3380\</m\_ntc\_motor\_beta\>

\<m\_out\_aux\_mode\>0\</m\_out\_aux\_mode\>

\<m\_motor\_temp\_sens\_type\>0\</m\_motor\_temp\_sens\_type\>

\<m\_ptc\_motor\_coeff\>0.61\</m\_ptc\_motor\_coeff\>

\<si\_motor\_poles\>6\</si\_motor\_poles\>

\<si\_gear\_ratio\>1\</si\_gear\_ratio\>

\<si\_wheel\_diameter\>0.001\</si\_wheel\_diameter\>

\<si\_battery\_type\>0\</si\_battery\_type\>

\<si\_battery\_cells\>12\</si\_battery\_cells\>

\<si\_battery\_ah\>30\</si\_battery\_ah\>

\<motor\_brand\>Flipsky\</motor\_brand\>

\<motor\_model\>65161\</motor\_model\>

\<motor\_weight\>3000\</motor\_weight\>

\<motor\_poles\>6\</motor\_poles\>

\<motor\_sensor\_type\>0\</motor\_sensor\_type\>

\<motor\_description\> p, li { white-space: pre-wrap; }

A motor description can be edited here.

\</motor\_description\>

\<motor\_loss\_torque\>0.03\</motor\_loss\_torque\>

\<motor\_quality\_bearings\>0\</motor\_quality\_bearings\>

\<motor\_quality\_magnets\>0\</motor\_quality\_magnets\>

\<motor\_quality\_construction\>0\</motor\_quality\_construction\>

\<motor\_quality\_description\> p, li { white-space: pre-wrap; }

Some comments about the motor quality. Images can be added as well.

\</motor\_quality\_description\>

---

<div class="post-metadata">

### Author: ![HighAltitude](https://foil.zone/letter_avatar_proxy/v4/letter/h/fbc32d/32.png) [@HighAltitude](https://foil.zone/u/HighAltitude)
#### Post date: [January 11, 2021, 2:37pm UTC](https://foil.zone/t/setting-fsesc-200a-60v-for-a-65161-120kv/11492/3 "2021-01-11T14:37:13Z")

</div>

Try this thread. I haven’t updated it like I promised but it’s still good.

[VESC Tool thread - how to program - EFOIL.builders / Electronics (ESC, remote, batteries) - FOIL.zone](https://foil.zone/t/vesc-tool-thread-how-to-program/9670)

---

<div class="post-metadata">

### Author: ![darilar](https://foil.zone/letter_avatar_proxy/v4/letter/d/67e7ee/32.png) [@darilar](https://foil.zone/u/darilar)
#### Post date: [January 11, 2021, 4:33pm UTC](https://foil.zone/t/setting-fsesc-200a-60v-for-a-65161-120kv/11492/4 "2021-01-11T16:33:46Z")

</div>

thanks I do some tests, I’ll let you know

---

<div class="post-metadata">

### Author: ![Alexandre](https://foil.zone/user_avatar/foil.zone/alexandre/32/2884_2.png) [@Alexandre](https://foil.zone/u/Alexandre)
#### Post date: [January 11, 2021, 6:02pm UTC](https://foil.zone/t/setting-fsesc-200a-60v-for-a-65161-120kv/11492/5 "2021-01-11T18:02:20Z")

</div>

Look at your erpm , here you enter 6 poles , calculation are made usually on pair pole , so you may have 5000rpm actually
