Simple analog switch from expansion header?
Posted: Tue Sep 29, 2015 9:53 pm
Hello, I am new to CrazyFlie 2.0. Thank you everyone for the community support! I am only experimenting with what can be accomplished. I have researched the forums, but did not see a post about my topic.
I have a simple bulb light that requires 2.6-5 VDC. I have connected it to the CF expansion header, pins 1 VCC and 19 AGND. It lights as expected. It is always on, as long as CF 2.0 power is on.
Now, I would like a way to turn the light on and off with a remote button (game controller or keyboard). I currently use VJoy to pilot via keyboard. Is there an available pin on the expansion header that can be controlled from the PC client? The ideal pin would be able to put out an analog 2.6-5V DC when active, and 0 DC when de-activated (perhaps pin 7?) A substitute could be PWM 0-3V PtoP on activation (perhaps pins 2 or 4?).
Is there a way to control a simple analog switch on the CF the expansion board from the PC client? If possible, I would like to do this with no additional circuitry or hardware, and without a firmware update to the CF. I can write software to do this if that is required, but I am hoping that this capability was already built into the CF 2.0 for expansion purposes.
Thank you again.
I have a simple bulb light that requires 2.6-5 VDC. I have connected it to the CF expansion header, pins 1 VCC and 19 AGND. It lights as expected. It is always on, as long as CF 2.0 power is on.
Now, I would like a way to turn the light on and off with a remote button (game controller or keyboard). I currently use VJoy to pilot via keyboard. Is there an available pin on the expansion header that can be controlled from the PC client? The ideal pin would be able to put out an analog 2.6-5V DC when active, and 0 DC when de-activated (perhaps pin 7?) A substitute could be PWM 0-3V PtoP on activation (perhaps pins 2 or 4?).
Is there a way to control a simple analog switch on the CF the expansion board from the PC client? If possible, I would like to do this with no additional circuitry or hardware, and without a firmware update to the CF. I can write software to do this if that is required, but I am hoping that this capability was already built into the CF 2.0 for expansion purposes.
Thank you again.