USB momentary switch power on/off for rpi

Talk about Adafruit Raspberry Pi® accessories!

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/

USB momentary switch power on/off for rpi

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


Re: USB momentary switch power on/off for rpi

Postby mano1979 » 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.
IMG_1375.JPG
The pcb usb stick layout in eagle
IMG_1375.JPG (128.19 KiB) Viewed 784 times
mano1979
 
Posts: 4
Joined: Sun Dec 16, 2012 6:09 pm

Re: USB momentary switch power on/off for rpi

Postby mano1979 » 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....
mano1979
 
Posts: 4
Joined: Sun Dec 16, 2012 6:09 pm


Return to Adafruit Raspberry Pi® accessories

Who is online

Users browsing this forum: quantalume and 1 guest

Stuff to buy from the Adafruit store and links to product documentation!


New Products [102]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[33]
LCDs & Displays[48]
Components & Parts[69]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[109]
 
Wireless[14]
Cables[60]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]