Smart ESC

Electric Motors and Controllers
Post Reply
john61ct   100 GW

100 GW
Posts: 8439
Joined: Dec 18 2018 2:06pm

Smart ESC

Post by john61ct » Jan 11 2022 8:15am

To keep the Flipsky thread getting too diverted


@Koxx

> and for low cost, we created the SESC, partially VESC based, open source, vesctool compatible but running on a 25€ xiaomi hardware.

github is here :
https://github.com/Koxx3/SmartESC_STM32_v2

and telegram help group os here :
https://t.me/+5ZUGjIWBmHg1ZDhk


Others' comments: Tidy codebase, runs on cheap as anything hardware... Uses ST MCSDK which supports field weakening, MTPA... out of the box.


mxlemming   10 kW

10 kW
Posts: 866
Joined: Jul 17 2020 7:56am

Re: Smart ESC

Post by mxlemming » Jan 11 2022 9:42am

Just ordered one of the boards to try this out. Hopefully the slow boat from China gets here soon! Assuming i get sensible hardware, expect this post to be updated with some electrical tests and test to see if it'll run various motors.
Last edited by mxlemming on Jan 11 2022 10:39am, edited 1 time in total.
Hold my beer while I divide by zero :flame:

john61ct   100 GW

100 GW
Posts: 8439
Joined: Dec 18 2018 2:06pm

Re: Smart ESC

Post by john61ct » Jan 11 2022 10:14am

Fantastic!

Does this use true FOC?

User avatar
stancecoke   1 MW

1 MW
Posts: 1596
Joined: Aug 02 2017 2:56pm

Re: Smart ESC

Post by stancecoke » Jan 11 2022 10:21am

john61ct wrote:
Jan 11 2022 10:14am
Does this use true FOC?
Yes, it uses the code from the ST Motor Control Workbench.

We have a parallel project, based on EBiCS, I've opened a thread in the scooter category a few days ago.

The repo is on Koxx' account also:
https://github.com/Koxx3/SmartESC_STM32_v3

regards
stancecoke
Last edited by stancecoke on Jan 11 2022 10:38am, edited 1 time in total.

Koxx   10 µW

10 µW
Posts: 6
Joined: Nov 02 2021 4:05am

Re: Smart ESC

Post by Koxx » Jan 11 2022 10:35am

mxlemming wrote:
Jan 11 2022 9:42am
Just ordered one of the boards to try this out. Hopefully the slow boat from China gets here soon! Assuming i get sensible hardware, expect this post to be updated with some electrical tests and test to see if it'll soon various motors.
we are more Telegram fanatics 🤣
https://t.me/+5ZUGjIWBmHg1ZDhk

Koxx   10 µW

10 µW
Posts: 6
Joined: Nov 02 2021 4:05am

Re: Smart ESC

Post by Koxx » Jan 11 2022 10:35am

john61ct wrote:
Jan 11 2022 10:14am
Fantastic!

Does this use true FOC?
yes, it does

mxlemming   10 kW

10 kW
Posts: 866
Joined: Jul 17 2020 7:56am

Re: Smart ESC

Post by mxlemming » Jan 11 2022 10:41am

Koxx wrote:
Jan 11 2022 10:35am
mxlemming wrote:
Jan 11 2022 9:42am
Just ordered one of the boards to try this out. Hopefully the slow boat from China gets here soon! Assuming i get sensible hardware, expect this post to be updated with some electrical tests and test to see if it'll soon various motors.
we are more Telegram fanatics 🤣
https://t.me/+5ZUGjIWBmHg1ZDhk
I use telegram a bit I'll join in when i get hardware.

Do you have any plan to port this to f405 hardware? I have a fair few of those kicking about, and the world is generally full of f405 targets capable of 10x the power that little xiaomi board is.
Hold my beer while I divide by zero :flame:

SlowCo   10 MW

10 MW
Posts: 2110
Joined: Jan 05 2015 5:43pm
Location: The Netherlands

Re: Smart ESC

Post by SlowCo » Jan 11 2022 3:47pm

Subscribing :thumb:

speeed   100 µW

100 µW
Posts: 7
Joined: Nov 02 2020 9:06pm

Re: Smart ESC

Post by speeed » Jan 12 2022 2:17pm

Cool stuff

I would like to test the G30D part, I have a spare ESC and ST-Link to start testing.

User avatar
afzal   10 W

10 W
Posts: 74
Joined: Jun 13 2021 7:55am
Location: Kerala, India

Re: Smart ESC

Post by afzal » Jan 21 2022 10:41am

@Koxx, I have sent you a pm

barthchris   1 mW

1 mW
Posts: 10
Joined: Jan 25 2022 6:22pm

Re: Smart ESC

Post by barthchris » Jan 25 2022 6:44pm

Wow! This is really cool! These controllers are basically a dime a dozen and everywhere! I have 5-6 myself floating around. In fact I just "swapped" one for a VESC based Flipsky 75100 with a 14s6p on a Segway Ninebot Max scooter. I wanted FOC control, higher voltage capability, and other VESC capabilities. This comes along and does all of that plus is capable of 20s!!!

I have a few St links floating around, flashed many different ST chips throughout the years and have good soldering skills so it's not Greek to me. It will be a few weeks before I will even get a chance to try this but seeing this post just stopped me from buying another FS 75100 tonight as I was going to build another 14s NB max with it. I'll just flash this onto the stock ESC.

Will I still be able to use the stock dash for a switch and to turn on the headlight?

speeed   100 µW

100 µW
Posts: 7
Joined: Nov 02 2020 9:06pm

Re: Smart ESC

Post by speeed » Jan 26 2022 3:29pm

I tried to build the G30P bin and getting 15 errors.

Building the m365.bin is no problem.

What can I do?

barthchris   1 mW

1 mW
Posts: 10
Joined: Jan 25 2022 6:22pm

Re: Smart ESC

Post by barthchris » Jan 30 2022 6:54pm

speeed wrote:
Jan 26 2022 3:29pm
I tried to build the G30P bin and getting 15 errors.

Building the m365.bin is no problem.

What can I do?
I haven't got around to trying this yet.

It looks like this forum won't get help quite yet. Guess its gotta be telegram (whatever that is lol!) At least its not a Facebook group! Uggggg! EDIT: nvmind, I didn't see this viewtopic.php?f=35&t=114514

Can't believe there's not more interest in this. Id imagine these would work well for other applications besides scooters. The controller can be bought all day long for under $30 online.

As is these measure something like 4"x3.5"x1.5" (sorry, my brain isn't yet calibrated to the much more logical metric system) so size shouldn't be an issue for most but still, it wouldn't be super hard to pick out the silicone potting to expose/remove the PCB/To-220 FETS to make it smaller. Of course, the FETS would still need to be fastened to something to act as a heatsink but Im sure anyone interested in doing this is creative enough to figure something out.

Woly   10 mW

10 mW
Posts: 32
Joined: Nov 16 2020 10:32pm

Re: Smart ESC

Post by Woly » Jan 30 2022 7:07pm

speeed wrote:
Jan 26 2022 3:29pm
What can I do?
Well you could at least post the errors.

netzpfuscher   1 µW

1 µW
Posts: 2
Joined: Oct 31 2021 3:59am

Re: Smart ESC

Post by netzpfuscher » Jan 31 2022 1:22am

I'm the dev of v2. Yeah haven't looked the the G30 project file for a while. It's the same code so I think only one or two files are missing in the project tree...

I take a look

Can't believe there's not more interest in this. Id imagine these would work well for other applications besides scooters. The controller can be bought all day long for under $30 online.
That's the main goal of the v2 project, everything can be configured from VESC tool. The v3 is different, it's more specific to the m365 scooter.

BalorNG   1 kW

1 kW
Posts: 344
Joined: Nov 10 2019 7:22pm

Re: Smart ESC

Post by BalorNG » Jan 31 2022 1:57am

How much phase current can it handle? Erpm limits?

netzpfuscher   1 µW

1 µW
Posts: 2
Joined: Oct 31 2021 3:59am

Re: Smart ESC

Post by netzpfuscher » Jan 31 2022 3:37am

Phase current depends on the mosfets on the board there are different ones. I would say around 40-50A.
ERPM is tested up to 50000 need another motor to test higher.


I repaired the G30 project file, need someone to test it. I have no G30 controller.

Jrbe   100 W

100 W
Posts: 113
Joined: Mar 23 2020 6:28pm
Location: CT USA

Re: Smart ESC

Post by Jrbe » Jan 31 2022 9:37am

Thanks for sharing your work!

For someone who has never heard of these controllers, these scooters, or your work it's hard to know what to get and what the specs are. I think if these things were listed here or on github it would help interest with these off the shelf controllers and your efforts.

Are the early controllers problematic?
Any versions to avoid or ones to ideally try to find?

Since the m365 has its own development branch does that mean it's the one to get?

What are unmodded and modded (20s, so 84v?) voltages?

From github:
With any small arduino, use analog acceleration/brake throttles to control any electic moving device like escooter, gokart, electric skateboard without using the stock display.
I see the ESP32-devkit-c note and code on github but the post here mentions an arduino. This is necessary for throttle and brake inputs - I missed that the first few times I read this thread.
Is there a link to some existing arduino code you could point us to?
Using the ninebot / m365 display means an arduino / esp32 isn't necessary, the display handles brake and throttle inputs, correct?

Post Reply