# Increasing current loop bandwidth

**URL:** <https://community.simplefoc.com/t/increasing-current-loop-bandwidth/5340>\
**Category:** Uncategorized\
**Created:** [August 18, 2024, 6:40pm UTC](https://community.simplefoc.com/t/increasing-current-loop-bandwidth/5340 "2024-08-18T18:40:38Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Candas1](https://community.simplefoc.com/user_avatar/community.simplefoc.com/candas1/32/5296_2.png) [@Candas1](https://community.simplefoc.com/u/Candas1)\
**Post date:** [August 18, 2024, 6:45pm UTC](https://community.simplefoc.com/t/increasing-current-loop-bandwidth/5340/2 "2024-08-18T18:45:17Z")

</div>

Hi,

Maybe you want to check this ongoing discussion:

> <https://github.com/simplefoc/Arduino-FOC/pull/426>
>
> Shared by @mcells from his fork https://github.com/mcells/Arduino-FOC/blob/d40c7…d7fddff4c3e58b26ebd2e2cc846fddfc09e/src/HFIBLDCMotor.cpp#L71 
> 
> \### if phase resistance and phase inductance are known:
> Will initialize Kp and Ki for q and d current PI controllers automatically based on phase resistance, phase inductance and current bandwidth (default 300).
> Needs to be adapted if Ld and Lq are available in the future.
> ⚠️ What if users have set phase resistance and phase inductance but were using default PI parameters ? Is there an impact ?
> 
> \### if phase resistance and phase inductance are not known:
> Same SimpleFOC default values as before are used.
> \### Users that have already tuned their PIs:
> They will overwrite Kp and Ki from their code.

---

_[View the full topic](https://community.simplefoc.com/t/increasing-current-loop-bandwidth/5340)._
