# A build with a feminine touch?

**URL:** https://foil.zone/t/a-build-with-a-feminine-touch/11740
**Category:** Builds
**Created:** [February 2, 2021, 12:58am UTC](https://foil.zone/t/a-build-with-a-feminine-touch/11740 "2021-02-02T00:58:15Z")
**Posts on this page:** 13
**Page:** 12

<div class="post-metadata">

### Author: ![Larsb](https://foil.zone/user_avatar/foil.zone/larsb/32/31021_2.png) [@Larsb](https://foil.zone/u/Larsb)
#### Post date: [May 31, 2023, 11:28am UTC](https://foil.zone/t/a-build-with-a-feminine-touch/11740/224 "2023-05-31T11:28:09Z")

</div>

Are you sure about this in the general sense? FOC requires a better position sensing than 6-step afaik and that accuracy could drive a need for better hardware and a better hardware layout.

---

<div class="post-metadata">

### Author: ![jkoljo](https://foil.zone/user_avatar/foil.zone/jkoljo/32/14747_2.png) [@jkoljo](https://foil.zone/u/jkoljo)
#### Post date: [May 31, 2023, 12:22pm UTC](https://foil.zone/t/a-build-with-a-feminine-touch/11740/225 "2023-05-31T12:22:32Z")

</div>

FOC requires an estimate of the rotor angle, which can be had from an encoder or through back EMF. You are right that if the back EMF is noisy, the noise passes through to the output easier with FOC than with 6-step. However, it’s their own ESC, and I would expect that if an electrical engineer is capable of making an ESC, they would also be able to add reasonable filters if needed. The layout plays a part, but even bad layouts can often be made to work. My point was focused on microcontroller and board resources in general, FOC doesn’t require extra pins on the MCU or extra controllers and such on the PCB to work, unless their board is actually based on a ready made 6-step motor drive chip.

---

<div class="post-metadata">

### Author: ![3rd\_ave\_Lien](https://foil.zone/user_avatar/foil.zone/3rd_ave_lien/32/17688_2.png) [@3rd\_ave\_Lien](https://foil.zone/u/3rd_ave_Lien)
#### Post date: [May 31, 2023, 2:30pm UTC](https://foil.zone/t/a-build-with-a-feminine-touch/11740/226 "2023-05-31T14:30:06Z")

</div>

The reason why we cannot use FOC is that we don’t have a sensor on the motor. We drive two poles and we read the back emf on the third one to have an idea of the position.

Oops, I wrote the answer before reading jkoljo’s answer.

Code and design is from scratch. (we had PC board printed but otherwise everything else is homemade. Charlie is very proud of it)

 ![Watercooled front](https://foil.zone/uploads/default/original/3X/a/4/a464aa6f4daa09e5931260423bb9cd1da833f488.jpeg)

Yes, Charlie now has a new challenge! Reduce the noise of his ESC. In the meantime, I’ll keep working on my steampunk remote, to match the overall look of the project:  
 ![Screen Shot 2023-05-31 at 7.33.17 AM](https://foil.zone/uploads/default/original/3X/4/a/4aed43ae67e1eee1ebf5fa227aaed596328c757d.png)

---

<div class="post-metadata">

### Author: ![jkoljo](https://foil.zone/user_avatar/foil.zone/jkoljo/32/14747_2.png) [@jkoljo](https://foil.zone/u/jkoljo)
#### Post date: [May 31, 2023, 2:41pm UTC](https://foil.zone/t/a-build-with-a-feminine-touch/11740/227 "2023-05-31T14:41:07Z")

</div>

Hmm, I don’t really understand how you drive a 3-phase motor with just two phases. Can you share your schematic?

Anyway, modifying the design to run 3 phases + BEMF sensing on all half bridges will get you significantly smoother operation since it will enable not only proper 6-step but also FOC operation. 🙂

Maybe also take a look at STM32G4 + some of their dev kits, such as the B-G431B-ESC1 or Nucleo G474 + IHM08M1. Their EVSPIN32 also has some nice things in it.

---

<div class="post-metadata">

### Author: ![3rd\_ave\_Lien](https://foil.zone/user_avatar/foil.zone/3rd_ave_lien/32/17688_2.png) [@3rd\_ave\_Lien](https://foil.zone/u/3rd_ave_Lien)
#### Post date: [May 31, 2023, 2:43pm UTC](https://foil.zone/t/a-build-with-a-feminine-touch/11740/228 "2023-05-31T14:43:32Z")

</div>

Yes, we’ll be glad to share the whole ESC design, hardware and software (but not support it…)

I meant we rotate the current between the pairs of phases, but in order to adjust the timing, we read the back emf on the phase that is not current-ly being driven.

Thanks for your suggestions, I’ll pass them to Charlie, as this is beyond my level of incompetence…

---

<div class="post-metadata">

### Author: ![jkoljo](https://foil.zone/user_avatar/foil.zone/jkoljo/32/14747_2.png) [@jkoljo](https://foil.zone/u/jkoljo)
#### Post date: [May 31, 2023, 3:16pm UTC](https://foil.zone/t/a-build-with-a-feminine-touch/11740/229 "2023-05-31T15:16:38Z")

</div>

Ah, that’s more understandable and sounds more like a basic BLDC (or 6-step) design. Since you have voltage sampling on each phase and you can drive all phases, there might be a chance to get FOC working as well. The code is much more complex unfortunately. And as discussed earlier, with FOC the back-EMF sensing needs to be clean since the 6-step function pretty much only cares about the which segment you are in, but for FOC the rotor angle in degrees also matters. ST and VESC motor control projects have examples on how to observe rotor angle from bemf. BTW for development purposes it’s easier to get started with an encoder if you have the spare inputs.

---

<div class="post-metadata">

### Author: ![3rd\_ave\_Lien](https://foil.zone/user_avatar/foil.zone/3rd_ave_lien/32/17688_2.png) [@3rd\_ave\_Lien](https://foil.zone/u/3rd_ave_Lien)
#### Post date: [May 31, 2023, 3:29pm UTC](https://foil.zone/t/a-build-with-a-feminine-touch/11740/230 "2023-05-31T15:29:01Z")

</div>

[![](https://img.youtube.com/vi/IykccX4oKh8/hqdefault.jpg "Video 2023 05 29") ](https://www.youtube.com/watch?v=IykccX4oKh8)

Does that qualify as very noisy? It sure is compared to the Fliteboard eFoil.

---

<div class="post-metadata">

### Author: ![Larsb](https://foil.zone/user_avatar/foil.zone/larsb/32/31021_2.png) [@Larsb](https://foil.zone/u/Larsb)
#### Post date: [May 31, 2023, 4:14pm UTC](https://foil.zone/t/a-build-with-a-feminine-touch/11740/231 "2023-05-31T16:14:00Z")

</div>

Yeah, that’s extremely noisy 😄

---

<div class="post-metadata">

### Author: ![3rd\_ave\_Lien](https://foil.zone/user_avatar/foil.zone/3rd_ave_lien/32/17688_2.png) [@3rd\_ave\_Lien](https://foil.zone/u/3rd_ave_Lien)
#### Post date: [May 31, 2023, 4:59pm UTC](https://foil.zone/t/a-build-with-a-feminine-touch/11740/232 "2023-05-31T16:59:49Z")

</div>

I thought so… We’ll try some hardware and software modifications today.

---

<div class="post-metadata">

### Author: ![Jezza](https://foil.zone/letter_avatar_proxy/v4/letter/j/dfb087/32.png) [@Jezza](https://foil.zone/u/Jezza)
#### Post date: [May 31, 2023, 5:27pm UTC](https://foil.zone/t/a-build-with-a-feminine-touch/11740/233 "2023-05-31T17:27:46Z")

</div>

I’m not sure on budget limitations, but an option may be to get a vesc and run it to compare against your own design. That way you have something to work towards/beat.

---

<div class="post-metadata">

### Author: ![3rd\_ave\_Lien](https://foil.zone/user_avatar/foil.zone/3rd_ave_lien/32/17688_2.png) [@3rd\_ave\_Lien](https://foil.zone/u/3rd_ave_Lien)
#### Post date: [May 31, 2023, 8:39pm UTC](https://foil.zone/t/a-build-with-a-feminine-touch/11740/234 "2023-05-31T20:39:23Z")

</div>

😀 That’s the spirit! I will transmit to Charlie. He likes challenges.  
[…]  
His response is, we already beat it, promised. 🤔

---

<div class="post-metadata">

### Author: ![SoEFoil](https://foil.zone/user_avatar/foil.zone/soefoil/32/55_2.png) [@SoEFoil](https://foil.zone/u/SoEFoil)
#### Post date: [June 1, 2023, 6:28am UTC](https://foil.zone/t/a-build-with-a-feminine-touch/11740/235 "2023-06-01T06:28:15Z")

</div>

And/Or join the SimplFOC community Forum, an open-source project

> with intention to demystify the Field Oriented Control (FOC) algorithm for BLDC / Stepper motors and the _Simple **FOC** library_ for the hobby community

Direct application of @jkoljo recommendations with the B-G431B-ESC1:

> **[B-G431B-ESC1: Beginner guide + I2C guide](https://community.simplefoc.com/t/b-g431b-esc1-beginner-guide-i2c-guide/515)**
>
> Hi all, This is a beginner guide for how to setup the B-G431B-ESC1 with SimpleFOC. The B-G431B-ESC1 is a small but powefull esc at a great price point. More information on the specs can be found on the site of ST. The board consists of main...

I don’t think they have designed a 6kw ESC yet but Charlie would obviously feel “at home” there 😉

See also : [Is it possible to run VESC software on a STM32G431? | VESC Project](https://vesc-project.com/node/3968)

---

<div class="post-metadata">

### Author: ![3rd\_ave\_Lien](https://foil.zone/user_avatar/foil.zone/3rd_ave_lien/32/17688_2.png) [@3rd\_ave\_Lien](https://foil.zone/u/3rd_ave_Lien)
#### Post date: [June 2, 2023, 3:47pm UTC](https://foil.zone/t/a-build-with-a-feminine-touch/11740/236 "2023-06-02T15:47:18Z")

</div>

Thank you all for the suggestions and information.  
Here is a little background on Charlie’s ESC (CSESC for short 😉) current implementation in his own words:

Early in the development, I was going to switch to the Thompson controllers, but I “discovered” that the ESP32 had two complete BLDC driver hardware built in. The documentation on the feature is, one might say, sparse. There are also numerous inaccuracies. Nonetheless the hardware works flawlessly. At least flawlessly before I burned my way through a sack of MOSFETs trying to figure it all out.

In my design, there is no provision for measuring current in the three h-bridges, so FOC is out for now. The ESP32 couldn’t do it directly, so I would need to add shunts and some analog amplifiers.

The current design produces a quite clean well controlled waveform.

![Waveform](https://foil.zone/uploads/default/original/3X/7/9/795ea82fe59ff9c7f519f801bf2a0bf31a1af04a.png)

Schematic of the power section of the CSESC below.

 ![CSESC-Power 2023-06-02](https://foil.zone/uploads/default/original/3X/4/4/44637baa6354acfaf7d0c9548e88729a54888f95.jpeg)

[Previous page](https://foil.zone/t/a-build-with-a-feminine-touch/11740.md?page=11)
