Page 1 of 1

Microcontroller usage for flight and stabilization.

Posted: Tue Jun 30, 2015 2:04 pm
by Yaro
Hi all,

I've found this about microcontroller used in Crazyflie 1.0

"The STM32F103CB MCU we run at full speed, 70Mhz.. ..We use about 40% of its processing power (with a stabilization update loop at 500Hz) and a big chunk of this is because we use a “blocking” I2C driver."

I'm interesed with the new MCU used in Crazyflie 2.0 and new firmware how much processing power it's used? (each for stabilization and for data trasmission)

Thank you!

Re: Microcontroller usage for flight and stabilization.

Posted: Thu Jul 09, 2015 2:39 pm
by marcus
Hi Yaro,

For the Crazyflie 2.0 we use very little of the power in the STM32F4, I would guess 10%. And that's without enabling the FPU. For the nRF51 I'm not sure about the measurement, but it's ticker since the Bluetooth LE stack has very strict timing requirements.

Re: Microcontroller usage for flight and stabilization.

Posted: Thu Jul 09, 2015 7:13 pm
by whoenig
Hi Marcus,
just out of curiosity: How do you measure the utilization in practice?

Re: Microcontroller usage for flight and stabilization.

Posted: Thu Jul 09, 2015 7:26 pm
by marcus
I didn't do the measurement, but if I remember correctly we use the functionality in FreeRTOS to measure the time each task uses (including IDLE). This will not take time spent in interrupts into account though.