i have designed a usb-stick with a momentary switch that can switch power on the raspberry pi.
This includes system shutdown!!all through USB. it is not bigger than a normal flash drive but contains a lot of stuff.
So when the button is pressed, the power turns on. When pressed again, the usb stick sends a signal to the Raspberry-Pi to shutdown/halt the system. when the system i halted, the RPI send a signal back to the usb stick wich will turn the power off (with a little delay).
Now what i still need is the ability to light up the keyboard leds at the very moment that the system is halted. or at least before the system and USB stops functioning.
I found a little python script that can light up the keyboard leds. Called Python-keyboardleds.
i just need something, to do that at the very last moment before shutdown so the power can be turned off. Any help is welcome, since i am not really familiar with this sort of stuff.
When i get it working i would like "ladyada" to maybe make/produce them so everyone can enjoy this "Pi-Power-USB-Stick"! (ladyada contact me!! : ) )
USB momentary switch power on/off for rpi
Moderators: adafruit_support_bill, adafruit
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
- adafruit_support_bill
- Posts: 88037
- Joined: Sat Feb 07, 2009 10:11 am
Re: USB momentary switch power on/off for rpi
Sounds like a nice project. Got pictures?
-
- Posts: 4
- Joined: Sun Dec 16, 2012 7:09 pm
Re: USB momentary switch power on/off for rpi
I do...
Allthough this is all i got for the moment. I am waiting for my components to arrive.
Allthough this is all i got for the moment. I am waiting for my components to arrive.
-
- Posts: 4
- Joined: Sun Dec 16, 2012 7:09 pm
Re: USB momentary switch power on/off for rpi
Is someone known with the V-USB library for avr?
I could really use some help with coding....
I could really use some help with coding....
Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/