Search found 1521 matches

by stancecoke
Nov 18 2021 8:29am
Forum: Motor Technology
Topic: True FOC: definition and examples
Replies: 142
Views: 10483

Re: True FOC: definition and examples

yes, there are no precompiled libraries any more, so the code is better understandable and now even editable!
But to be honest, I've not tried to understand what happens where so far :shock: . I just compiled and tested @netzpfuschers code on my testbench...

regards
stancecoke
by stancecoke
Nov 18 2021 7:49am
Forum: Motor Technology
Topic: True FOC: definition and examples
Replies: 142
Views: 10483

Re: True FOC: definition and examples

How are you doing motor auto setup? @netzpfuscher is the main developer on the v2 project. He copied the routines from the VESC mainly. See his commits from Nov.11 and the days before: https://github.com/Koxx3/SmartESC_STM32_v2/commits/vesc_comp But I found the sensorless startup was complete shit ...
by stancecoke
Nov 18 2021 7:03am
Forum: Motor Technology
Topic: True FOC: definition and examples
Replies: 142
Views: 10483

Re: True FOC: definition and examples

and of course the many commercially integratable examples (ST, TI, Infineon,) we are working on a firmware for the cheap and popular M365 and G30 scooter controllers. It implements the ST Motor Control Workbench FOC-code and uses the VESC-Tool for configuring, autotuning and realtime data plotting....
by stancecoke
Nov 09 2021 1:01pm
Forum: E-Vehicles General Discussion
Topic: Trying to decode LCD signal from cheap brushless motor controller
Replies: 7
Views: 276

Re: Trying to decode LCD signal from cheap brushless motor controller

I made an analysis of the UART communication some time ago: https://www.pedelecforum.de/forum/index.php?threads/brainpower-motor-controller-250w-mit-s866-display-versuch-einer-funktionsanalyse.89310/post-1705760 regards stancecoke https://www.pedelecforum.de/forum/index.php?attachments/1625916511715...
by stancecoke
Nov 06 2021 2:31pm
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4588
Views: 473311

Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW

Fluctuator wrote:
Nov 06 2021 12:26pm
Can this idea be done within one Lishui stm32f103c8 controller with 3 low side shunt resistors?
No, the Lishui project works in FOC commutation. The 'trick' with the BEMF on the floating phase only works with 6 step commutation.

regards
stancecoke
by stancecoke
Nov 02 2021 2:53am
Forum: EBike Technical
Topic: Torque Sensor prototype for Hollowtech 2
Replies: 7
Views: 598

Re: Torque Sensor prototype for Hollowtech 2

can I ask the advantage over using CAv3? ?! This is just the sensor. You'll need something like the CA to process the data from the sensor. Justin has several bottom bracket sensors in his shop , but nothing for Hollowtech . ISIS is quite exotic and square taper is very old fashioned and heavy... r...
by stancecoke
Nov 01 2021 2:43pm
Forum: EBike Technical
Topic: Torque Sensor prototype for Hollowtech 2
Replies: 7
Views: 598

Re: Torque Sensor prototype for Hollowtech 2

brazilianboy wrote:
Nov 01 2021 2:28pm
Are you putting for sale anytime soon?
No, it's just hobby for me :-)
But perhaps a Chinese company will pick up the idea. I've published all necessary details ;-)

regards
stancecoke
by stancecoke
Nov 01 2021 2:07pm
Forum: EBike Technical
Topic: Torque Sensor prototype for Hollowtech 2
Replies: 7
Views: 598

Torque Sensor prototype for Hollowtech 2

This topic has been driving me around for a while. All commercially available bottom bracket torque sensors are for square taper or Isis cranks. Today's "standard" in the upper class, however, is Hollowtech II. Building on the v5 sensor , I worked with @arozhkov2001 to develop a sensor tha...
by stancecoke
Oct 05 2021 1:02pm
Forum: Motor Technology
Topic: EBiCS Firmware on a M365 STM32 Controller
Replies: 30
Views: 958

Re: EBiCS Firmware on a M365 STM32 Controller

miklelv wrote:
Oct 05 2021 12:43pm
I am trying to run on version 1.4
For hardware specific issues please ask in the Telegram chatgroup.
For the ESP32 interface, please be patient, I'll update it next week to work with the recent version of the controller firmware.

regards
stancecoke
by stancecoke
Oct 05 2021 8:57am
Forum: Motor Technology
Topic: EBiCS Firmware on a M365 STM32 Controller
Replies: 30
Views: 958

Re: EBiCS Firmware on a M365 STM32 Controller

miklelv wrote:
Oct 05 2021 4:32am
How to disable it ?
https://github.com/Koxx3/SmartESC_STM32 ... nfig.h#L54
It is disabled by default, if you haven't activated it manually, there something different wrong.

regards
stancecoke
by stancecoke
Oct 05 2021 3:48am
Forum: Motor Technology
Topic: EBiCS Firmware on a M365 STM32 Controller
Replies: 30
Views: 958

Re: EBiCS Firmware on a M365 STM32 Controller

Disable the PLL first. If it runs with disabled PLL try to find the right shift factors for the PLL.

regards
stancecoke
by stancecoke
Sep 30 2021 2:45pm
Forum: Motor Technology
Topic: EBiCS Firmware on a M365 STM32 Controller
Replies: 30
Views: 958

Re: EBiCS Firmware on a M365 STM32 Controller

miklelv wrote:
Sep 30 2021 2:15pm
I also don't understand how to set the values
You can use an online converter like this:
https://www.rapidtables.com/convert/num ... o-hex.html

For example
-100 in dec is FF9C as hex, so LL = 9C and MM = FF
230 in dec is 00E6 as hex, so LL = E6 and MM = 00

regards
stancecoke
by stancecoke
Sep 30 2021 12:41pm
Forum: Motor Technology
Topic: EBiCS Firmware on a M365 STM32 Controller
Replies: 30
Views: 958

Re: EBiCS Firmware on a M365 STM32 Controller

#include<stdio.h> int main() { int x[11]={0xAA,0x00,0x00,0x06,0x01, 0x00,0x00,0x00,0x00,0x00,0x00}; int chkSum = 0; for (int i = 0; i < 11; i++) { chkSum ^= x ; } printf("byte 12 = 0x%02X ", chkSum); } You can run this code to get the right checksum: https://onlinegdb.com/VIHGUEOwa Click o...
by stancecoke
Sep 30 2021 4:18am
Forum: Motor Technology
Topic: EBiCS Firmware on a M365 STM32 Controller
Replies: 30
Views: 958

Re: EBiCS Firmware on a M365 STM32 Controller

Ah, we have activated the checksum verification now, so you have to send the correct checksum in the last byte of the command. See here: https://github.com/Koxx3/SmartESC_STM32_v3/blob/01552b90df5a8644e4f39e972dbc0c106f38abb8/Core/Src/display_ebics.c#L136 We have to update the readme! Please ask in ...
by stancecoke
Sep 30 2021 3:21am
Forum: Motor Technology
Topic: EBiCS Firmware on a M365 STM32 Controller
Replies: 30
Views: 958

Re: EBiCS Firmware on a M365 STM32 Controller

If I change the #define DISPLAY_TYPE DISPLAY_TYPE_EBiCS Please let the display type at debug, as in the repo. https://github.com/Koxx3/SmartESC_STM32_v3/blob/01552b90df5a8644e4f39e972dbc0c106f38abb8/Core/Inc/config.h#L44 It's quite a long time ago, when I played around with the code :D Please join ...
by stancecoke
Sep 29 2021 3:19am
Forum: Motor Technology
Topic: EBiCS Firmware on a M365 STM32 Controller
Replies: 30
Views: 958

Re: EBiCS Firmware on a M365 STM32 Controller

How should I send the command 00 00 00 06 01 00 00 00 00 00 00 00 to the auto - detection of hall sensors ? You can send the command by any terminal program that allows to send hex data. E.g. HTerm Can you explain the auto KV detect?? After the motor angle autodetect, the controller increases iq sl...
by stancecoke
Sep 28 2021 1:07pm
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4588
Views: 473311

Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW

any step by step mannual, example of setup available You can use the wiki of the original EBiCS repo for the meaning of the settings in the config.h. But you have to use the STM Cube IDE for compiling and flashing. Please use this thread for further questions: https://endless-sphere.com/forums/view...
by stancecoke
Sep 24 2021 11:59am
Forum: Motor Technology
Topic: EBiCS Firmware on a M365 STM32 Controller
Replies: 30
Views: 958

Re: EBiCS Firmware on a M365 STM32 Controller

it starts using the hall sensors No, the sensorless branch starts open loop and then switches to FOC. But it's no problem to do the startup from the hallsensors. But I see no advantage to use the observer, if you have working Hallsensors. We have the option to use a PLL for the rotorposition estima...
by stancecoke
Sep 24 2021 8:45am
Forum: Motor Technology
Topic: EBiCS Firmware on a M365 STM32 Controller
Replies: 30
Views: 958

Re: EBiCS Firmware on a M365 STM32 Controller

casainho wrote:
Sep 23 2021 8:46am
I will look at the firmware
Great! Looking forward to hear your comments! :idea:

regards
stancecoke
by stancecoke
Sep 21 2021 12:50am
Forum: Motor Technology
Topic: Lishui "Open Source Firmware" project / KingMeter 5S
Replies: 53
Views: 6892

Re: Lishui "Open Source Firmware" project / KingMeter 5S

what kind of suitable controller can be purchased on the market there is a page with some links in the wiki: https://github.com/EBiCS/EBiCS_Firmware/wiki/Where-to-buy-a-suitable-controller The 12FET can handle 25amps, I guess. I don't know, if you will find a cheaper offer at ali or ebay... regards...
by stancecoke
Sep 20 2021 6:44am
Forum: Motor Technology
Topic: Lishui "Open Source Firmware" project / KingMeter 5S
Replies: 53
Views: 6892

Re: Lishui "Open Source Firmware" project / KingMeter 5S

can only work from the throttle stick without a torque sensor ? Yes, if you solder in an additional wire to the pad "SP" on the PCB. But it is configured for legal use in Europe, you have to pedal to activate the throttle. we have discussed that controller in detail in the german forum: h...
by stancecoke
Sep 10 2021 8:15am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4588
Views: 473311

Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW

You have defined nothing for #define TEMP_CAL_A #define TEMP_CAL_B Just keep the values at their standard, even if you don't use them.... #define TEMP_CAL_A 1.6 #define TEMP_CAL_B 110.4 for "normal" PAS function choose ride mode "Torque-Simulation" "Throttle and PAS" me...
by stancecoke
Sep 10 2021 7:01am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4588
Views: 473311

Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW

Any help with the gazelle branch error: strange, I get no error. Can you please post the content of your config.h regards stancecoke C:\temp\BMSBattery_S_controllers_firmware-Gazelle>make -f Makefile_windows sdcc -c -IStdPeriphLib/inc -I. -mstm8 --std-c99 --nolospre --out-fmt-ihx --debug -oStdPerip...
by stancecoke
Sep 10 2021 6:16am
Forum: Motor Technology
Topic: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW)
Replies: 4588
Views: 473311

Re: KT motor controllers -- Flexible OpenSource firmware for BMSBattery S/Kunteng KT motor controllers (0.25kW up to 5kW

Valopallo wrote:
Sep 10 2021 5:14am
Did not change anything. I tried the throttle only code once again and now it does not work either.
Sorry, then I can't help any more. I am at the end of my rope at this point. :confused:

regards
stancecoke