# SimpleFOC on Arduino Giga - BLDC Motor buzzing

**URL:** https://community.simplefoc.com/t/simplefoc-on-arduino-giga-bldc-motor-buzzing/5279
**Category:** developement
**Created:** [August 2, 2024, 12:13am UTC](https://community.simplefoc.com/t/simplefoc-on-arduino-giga-bldc-motor-buzzing/5279 "2024-08-02T00:13:22Z")
**Posts on this page:** 9
**Page:** 3

<div class="post-metadata">

### Author: ![Valentine](https://community.simplefoc.com/user_avatar/community.simplefoc.com/valentine/32/1024_2.png) [@Valentine](https://community.simplefoc.com/u/Valentine)
#### Post date: [September 21, 2024, 11:03pm UTC](https://community.simplefoc.com/t/simplefoc-on-arduino-giga-bldc-motor-buzzing/5279/41 "2024-09-21T23:03:16Z")

</div>

> [@dro178](#):
>
> USA supplier of the SimpleFOC shields

Not really, unless you want one of the contributors here to make it for you and ship it.

It’s not like there is a store with inventory or anything like that.

If you are in a real tight spot and want it, PM/DM me. I don’t sell those, it’s more of doing a favor in extreme cases.

Cheers,  
Valentine

---

<div class="post-metadata">

### Author: ![runger](https://community.simplefoc.com/user_avatar/community.simplefoc.com/runger/32/395_2.png) [@runger](https://community.simplefoc.com/u/runger)
#### Post date: [September 22, 2024, 8:36pm UTC](https://community.simplefoc.com/t/simplefoc-on-arduino-giga-bldc-motor-buzzing/5279/42 "2024-09-22T20:36:15Z")

</div>

> [@dro178](#):
>
> I have been using the fixed new drivers for a few weeks now, and it works great! I will use this to keep my application development going as it works great to have the FOC running on the M4 processor and all my control processing in the M7.

I’m really happy to hear this!!

> [@dro178](#):
>
> I was wondering if this was going to get a formal release? What is the plan for this going forward.

Yes, I’m getting the feeling we will probably make this branch with HAL only stm32 the “official” driver, as it fixes a few problems of the present stm32 driver, and additionally supports the portenta/giga. So I think it will replace the current stm32 and portenta drivers.

As for the timeframe, I’d like to be sure I’m not introducing too many new bugs, as the code changes have been rather extensive… so I’m testing quite carefully, and documenting results in the github pull request I made for the branch.

I’d say for the single-motor use case it’s fairly close to being done. It’s reached a point where it fixes a few issues of the present stm32 driver, and for portenta it’s a big jump in functionality.

So I think we could consider merging it to the dev branch soon, and therefore to include it in the next release.

But I still have to test multi-motor use cases, and think about the paradigm for them. At the moment I am thinking that we should introduce the restriction that you should not use the same timers for more than one motor. So you can use a single or multiple timers for each motor, but if you use timer X on motor A, you should not use it for any other motor.  
Reasons are:

- when using multiple timers on a motor, we try to sync them. The semantics of doing this when the timers are used on multiple motors get very complicated.
- it becomes impossible to start, stop, pause or reconfigure timers for one motor without potentially affecting other motors
- the semantics of timer-triggered ADC, HFI or other such advanced topics which have to deal with timer configuration become very complicated  
If anyone has any comments on the multi-motor topic I’d love to hear them.

---

<div class="post-metadata">

### Author: ![Valentine](https://community.simplefoc.com/user_avatar/community.simplefoc.com/valentine/32/1024_2.png) [@Valentine](https://community.simplefoc.com/u/Valentine)
#### Post date: [September 22, 2024, 8:46pm UTC](https://community.simplefoc.com/t/simplefoc-on-arduino-giga-bldc-motor-buzzing/5279/43 "2024-09-22T20:46:37Z")

</div>

> [@runger](#):
>
> for portenta it’s a big jump in functionality

That’s pretty awesome, thank you.

Question, what about the interrupts? I try to put each hall on a separate interrupt mapped to that hall pin, correct? That way I don’t have interrupts overlapping?

Cheers,  
Valentine

---

<div class="post-metadata">

### Author: ![dro178](https://community.simplefoc.com/letter_avatar_proxy/v4/letter/d/d78d45/32.png) [@dro178](https://community.simplefoc.com/u/dro178)
#### Post date: [February 17, 2025, 9:53pm UTC](https://community.simplefoc.com/t/simplefoc-on-arduino-giga-bldc-motor-buzzing/5279/44 "2025-02-17T21:53:03Z")

</div>

Hello all,

I haven’t posted in a while but I have been using the new driver extensively for the last six months in my development project and it has been working great with no buzzing noise at all. Thanks again!!! I am moving my development to a new laptop and I was wondering if the new driver has had a formal release? If I select the SimpleFOC driver from the Arduino Library manager, will it download this new driver? I know I have it on my old laptop buried in the libraries somewhere but because I may be distributing this to some people, it would be preferable to do this more cleanly. Please let me know what the plan is. Thanks again…

---

<div class="post-metadata">

### Author: ![runger](https://community.simplefoc.com/user_avatar/community.simplefoc.com/runger/32/395_2.png) [@runger](https://community.simplefoc.com/u/runger)
#### Post date: [February 18, 2025, 9:35am UTC](https://community.simplefoc.com/t/simplefoc-on-arduino-giga-bldc-motor-buzzing/5279/45 "2025-02-18T09:35:56Z")

</div>

Hi @dro178 ,

I’ve also been testing it quite a bit, with good results so far. I’d like to release it in the next two weeks, so then it will be part of SimpleFOC 2.3.5, and it will work automatically when people download the 2.3.5 version of the library. At the moment it is still on a git branch, so you have to check out that specific branch from GitHub, which is not so easy for users to do.

---

<div class="post-metadata">

### Author: ![dro178](https://community.simplefoc.com/letter_avatar_proxy/v4/letter/d/d78d45/32.png) [@dro178](https://community.simplefoc.com/u/dro178)
#### Post date: [February 18, 2025, 2:25pm UTC](https://community.simplefoc.com/t/simplefoc-on-arduino-giga-bldc-motor-buzzing/5279/46 "2025-02-18T14:25:43Z")

</div>

Great! Thank you…That will make things a lot easier. Can you please post when that is available? thanks

---

<div class="post-metadata">

### Author: ![runger](https://community.simplefoc.com/user_avatar/community.simplefoc.com/runger/32/395_2.png) [@runger](https://community.simplefoc.com/u/runger)
#### Post date: [February 18, 2025, 9:37pm UTC](https://community.simplefoc.com/t/simplefoc-on-arduino-giga-bldc-motor-buzzing/5279/47 "2025-02-18T21:37:53Z")

</div>

There will be an announcement, but I’ll also post to this thread to make sure you see it 🙂

---

<div class="post-metadata">

### Author: ![dro178](https://community.simplefoc.com/letter_avatar_proxy/v4/letter/d/d78d45/32.png) [@dro178](https://community.simplefoc.com/u/dro178)
#### Post date: [May 15, 2025, 4:19pm UTC](https://community.simplefoc.com/t/simplefoc-on-arduino-giga-bldc-motor-buzzing/5279/48 "2025-05-15T16:19:55Z")

</div>

Any update on the 2.3.5 release date?

Thanks…

---

<div class="post-metadata">

### Author: ![dro178](https://community.simplefoc.com/letter_avatar_proxy/v4/letter/d/d78d45/32.png) [@dro178](https://community.simplefoc.com/u/dro178)
#### Post date: [June 18, 2026, 12:33pm UTC](https://community.simplefoc.com/t/simplefoc-on-arduino-giga-bldc-motor-buzzing/5279/49 "2026-06-18T12:33:22Z")

</div>

Version 2.4.0 Not working.

A year and a half ago I started this thread because of BLDC motor buzzing on the Arduino GIGA board. You folks were kind enough to work out the driver issues and resolved the problem first with a Beta fix and then with V2.3.5. All has been working very well for the past year.

I just updated to v2.4.0 and it stopped working. The gimbal motor is completely unresponsive and does not move at all even with the motor.init() command. I am using MBED 4.6.0 on the GIGA board. I have always used these statements to change the pwm frequency.

#define PWMP 40 //uSeconds - 25kHz

mbed::PwmOut\* pwma = new mbed::PwmOut(pwmaPin);

pwma-\>period\_us(PWMP);

mbed::PwmOut\* pwmb = new mbed::PwmOut(pwmbPin);

pwmb-\>period\_us(PWMP);

mbed::PwmOut\* pwmc = new mbed::PwmOut(pwmcPin);

pwmc-\>period\_us(PWMP);

I have had to back down to v2.3.5 again to get it all working again.

My application uses a gimbal motor for angular directional control of underwater thrusters on autonomous GPS guide buoys.

Just some feedback

Thanks for all the help

[Previous page](https://community.simplefoc.com/t/simplefoc-on-arduino-giga-bldc-motor-buzzing/5279.md?page=2)
