Page 1 of 1

OneShot125 ESC setting

Posted: Tue Jun 22, 2021 9:53 am
by t.yoneda
Hello!

I want to run Crazyflie Bolt with this ESC
However, the motors are not spinning properly.
Is the setting wrong?

Firmware build setting
uncommented

Code: Select all

# motor.h
#define ENABLE_ONESHOT125
change value

Code: Select all

# motor.h
#define BLMC_PERIOD 0.0025
Video
https://drive.google.com/file/d/1QUA3rc ... sp=sharing

Regards,

Re: OneShot125 ESC setting

Posted: Tue Jun 22, 2021 9:59 am
by tobias
This is probably related to not having any idle thrust and the ESC has a hard time spinning up the motors. This thread talks a bit about it. If you use START_DISARMED the system.forceArm needs to be set to one to arm it, which I recommend.

Re: OneShot125 ESC setting

Posted: Thu Jul 01, 2021 3:27 pm
by t.yoneda
Hi tobias.

I have changed config.mk and parameters, but the motor is still stepping-out.

Code: Select all

# config.mk
CFLAGS += -DCF_MASS=0.144f
CFLAGS += -DDEFAULT_IDLE_THRUST=7500
CFLAGS += -DSTART_DISARMED

Code: Select all

// system.c
static bool forceArm = 1;
Also, if I set DDEFAULT_IDLE_THRUST to 10000, motors spin fine without the propeller, but step-out when the propeller is attached.

This is a cfclient plot of the motor output with the propeller removed.
Is there anything I can learn from this?
plot.png

Re: OneShot125 ESC setting

Posted: Tue Jul 06, 2021 12:58 pm
by kimberly
Hi!

Just a notice, that Tobias is out now on a holiday and won't be back until mid august. We will try to help out but it might be a bit difficult!

I noticed that you didn't add

Code: Select all

CFLAGS += -DENABLE_ONESHOT125
as tobias mentioned in the previous post in the thread he referenced too. Did you try that as well?

Re: OneShot125 ESC setting

Posted: Thu Jul 08, 2021 4:15 am
by t.yoneda
thanks kimberly!

I tried the thread that tobias referenced.

I forgot to write that I uncommented "#define ENABLE_ONESHOT125" in motor.h.
if I add "CFLAGS += -DENABLE_ONESHOT125" to config.mk, I get "ENABLE_ONESHOT125 redifined error", so I didn't add it.

also, I changed the ESC to a new one, and at first it was hard to spin, but after waiting a little, it started to spin.
this seems to be a characteristic of small brushless motors.

Re: OneShot125 ESC setting

Posted: Mon Jul 12, 2021 2:38 pm
by kimberly
alright, good to know.

Unfortunately this is how far I can help, but perhaps you can give an update in a few weeks time and we will notify @tobias to answer again.

Have you seen this blogpost by the way? https://www.bitcraze.io/2020/01/crazyfl ... -autonomy/
Not sure if it helps at all but perhaps give an indication of which modules to use.