bitcraze / crazyflie-firmware

The main firmware for the Crazyflie Nano Quadcopter, Crazyflie Bolt Quadcopter and Roadrunner Positioning Tag.
GNU General Public License v3.0
1.18k stars 1.05k forks source link

Expansion decks turned off for faster charging #605

Open knmcguire opened 4 years ago

knmcguire commented 4 years ago

Some expansion decks draw a lot of power which will affect the charging time. Maybe it would be good to turn them off somehow with some define?

Based on the discussion going on here: https://forum.bitcraze.io/viewtopic.php?f=5&t=4311&p=19822#p19822

jonasdn commented 3 years ago

This was discussed in the office, some notes from that discussion:

Problem statements

Possible solutions

  1. We could send a message to the nrf chip from the stm32 asking it to shutdown the stm32 and expansion deck (SYSLINK_PM_ONOFF_SWITCHOFF)

    • This would need some plumbing to make possible for a user to do:
      • A parameter?
      • CRTP message?
    • We would still not have any indication of charge, should we:
      • Blink with the nrf led (M2) while charging?
      • Blink with the nrf led in some pattern when message is received?
      • Do nothing?
    1. Always do 500mA in off-mode, regardless of negotiation
      • So you could, as a user, turn off the Crazyflie using button while charging, to charge faster
      • Would still not have any indication, and nrf chip is off as well, so no means of LED flashing
  2. Have a special mode in nrf when cable is detected so it does not turn off, so it can keep charging at 500mA (480mA, since nrf takes 20mA)

    • Same charge indication problems as in 1.

Did I miss anything @krichardsson, @evoggy, @tobbeanton ? Any thougts @knmcguire @ataffanel ?

jonasdn commented 3 years ago

The way forward right now, we think, is option 3. we will update the NRF firmware to always do 500mA charging, this will allow you to charge fast always, by turning the crazyflie off.