Page 1 of 2

[SOLVED] Poweroff crazyflie

Posted: Tue May 10, 2016 4:46 pm
by Mitteau
Hello everybody
Is it possible to power-off crazyflie, from the GUI client ?
thanks !
Jean-Claude

Re: Poweroff crazyflie

Posted: Wed May 11, 2016 11:12 pm
by arnaud
Hi Jean-Claude,
The Crazyflie can switch itself off but it is not accessible from the ground. Moreover it has not been implemented yet for crazyflie 2 (https://github.com/bitcraze/crazyflie-f ... 405.c#L132).

Switching the copter off has been tested on the nRF51 side so sending a syslink packet with type "SYSLINK_PM_ONOFF_SWITCHOFF " would turn-off the copter. When that it done it should be possible to add a parameter to switch off the copter from the client.
/Arnaud

Re: Poweroff crazyflie

Posted: Thu May 12, 2016 7:15 am
by Mitteau
Thanks Arnaud, I will test this when my other problems will bi solved...
Bye
Jean-Claude

Re: Poweroff crazyflie

Posted: Thu May 12, 2016 7:53 am
by tobias
Another idea is to let the CF2 go to low power becon mode ore similar so it could automatically be woken up from a BLE device or a transceiver. Fully possible by hardware only software missing ;)

Re: Poweroff crazyflie

Posted: Fri May 13, 2016 8:14 am
by Mitteau
Hi
Same question but to power up???
Regards
J.-C.

Re: Poweroff crazyflie + up

Posted: Fri May 13, 2016 8:15 am
by Mitteau
Something like wakeonlan

Re: Poweroff crazyflie

Posted: Fri May 13, 2016 8:23 am
by arnaud
For wakeup it is the same basic answer: possible in hardware but lacks software support :-).

In Crazyflie 2.0 the nRF51 chip, the radio/bluetooth microcontroller, is in charge of power management and is always powered. When the copter is OFF, the nRF51 is in deep sleep waiting for the button to be pressed. So it would be possible to wake it up every 10sec to ping the air and find out if the copter needs to be wake-up, this would not use a lot of energy and it is the way things like bluetooth keybob are working.

Re: Poweroff crazyflie

Posted: Fri May 13, 2016 8:36 am
by arnaud
I would just add that remote OFF is fairly easy to implement. Remote ON would require more design and work. Tell me if you intend to give it a shot maybe we can synch that with a new "passive scanning" mode for the crazyflie connection: Currently the crazyflies are listenning and the Crazyradio is actively scanning all possible channels. We plan to change that in a way where the Crazyflie would send beacon and the Crazyradio/PC client is just listening the air to discover the Crazyflies. This could then the the base for an auto-ON feature where the nRF51 wakes-up at regular interval sending a beacon.

Re: Poweroff crazyflie

Posted: Sat May 14, 2016 7:26 am
by Mitteau
Presently, I am lost in various difficulties: with althold (craft drop down when I switch to althold mode, window en GUI client never greyed), my cf's motors are out, I think, I had to solder wired bridges... my cf is wounded, radioPA too ! But I am still on the job and I will test these solutions in next weeks. Stay in touch.
The reason to get radio on/off is that my on/off physical switch is out of service. I will buy another cf but when things will be clair in my mind.
On positive thing is that I obtained CrazyradioPA case with 3D print. It worked perfect.
Truly yours, and thanks for your hints.
Jean-Claude

Re: Poweroff crazyflie

Posted: Thu May 26, 2016 3:26 pm
by PhilipMC
My power switch broke as well. The button popped out. I am currently switching it with a bent paperclip placed around the switch to touch the contacts on the pcb.
https://www.unmannedtechshop.co.uk/ tell me that they are getting some switches :)