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:

by mano1979 on Sun Dec 16, 2012 6:33 pm

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!! : ) )
Posts: 4
Joined: Sun Dec 16, 2012 6:09 pm

by adafruit_support_bill on Mon Dec 17, 2012 6:31 am

Sounds like a nice project. Got pictures? :D
User avatar
Posts: 25327
Joined: Sat Feb 07, 2009 9:11 am

by mano1979 on Mon Dec 17, 2012 12:09 pm

I do...
Allthough this is all i got for the moment. I am waiting for my components to arrive.
The pcb usb stick layout in eagle
IMG_1375.JPG (128.19 KiB) Viewed 1047 times
Posts: 4
Joined: Sun Dec 16, 2012 6:09 pm

by mano1979 on Sun Dec 23, 2012 1:27 pm

Is someone known with the V-USB library for avr?
I could really use some help with coding....
Posts: 4
Joined: Sun Dec 16, 2012 6:09 pm