Voltage reading from firmware on crazyflie

Discussions about all things Bitcraze
Post Reply
Abanoub.G
Beginner
Posts: 12
Joined: Mon Jan 29, 2018 3:46 pm

Voltage reading from firmware on crazyflie

Post by Abanoub.G » Tue Jan 30, 2018 4:08 pm

Hi,
I am trying to get the voltage being applied to the motors from the firmware, when different thrust values are applied. Unfortunelty, have got no clue how to do that. Anyone knows any libraries that are used to do this or anything that could help get the voltage being supplied to the motors from python??


Regards
AG



tobias
Bitcraze
Posts: 1910
Joined: Mon Jan 28, 2013 7:17 pm
Location: Sweden

Re: Voltage reading from firmware on crazyflie

Post by tobias » Wed Jan 31, 2018 10:32 am

Simplifying it, 50% PWM would yield 50% battery voltage applied. So by reading the battery voltage you would get a rough estimate of this.

arnaud
Bitcraze
Posts: 2097
Joined: Tue Feb 06, 2007 12:36 pm

Re: Voltage reading from firmware on crazyflie

Post by arnaud » Wed Jan 31, 2018 2:14 pm

To precise the Tobias answer: there is no physical way to measure the voltage applied on the motor of the Crazyflie. Though it can be estimated with the battery voltage and the PWM.

Post Reply