Professional Documents
Culture Documents
Living
Outside
Play
Technology
Workshop
http://www.instructables.com/id/impBoot-Remotely-Turn-on-a-Desktop-Computer/
Step 1: Equipment
Materials * Electric Imp * Electric Imp Breakout (with male headers soldered to all ports) * 3x Female-Female jumper wires * Breadboard * 1k resistor * 2N3904 (NPN Transistor) * USB-mini cable * 4x wires (22-26 ga. stranded), each about 4 feet long (both ends stripped and tinned ) * Android smartphone (if you can replicate Electric Imp Toggle functionality, Android isn't needed) Tools * Wire strippers * Soldering iron * Solder * Flux * Wet sponge
Image Notes 1. Electric Imp Breakout 2. Electric Imp 3. 1k resistor 4. 2N3904 (NPN Transistor) 5. Breadboard
http://www.instructables.com/id/impBoot-Remotely-Turn-on-a-Desktop-Computer/
6. 3x Female-Female jumper wires 7. USB-mini cable 8. 4x wires (stripped and tinned), each about 4 feet long 9. Android smartphone
Image Notes 1. Flux the exposed wire. With a dab of solder on the iron tip, move the tip from the end of the insulation to the end of the exposed wire while slowly feeding solder. 2. Helping hands aren't necessary, but are quite....handy.
Image Notes 1. Connect resistor to PIN8 of the breakout board 2. Connect the other side of the resistor to the BASE of the NPN transistor 3. Connect together the pins labeled USB and VIN 4. EMITTER goes to negative side of POWER_SW (mobo and case switch) 5. COLLECTOR goes to positive side of POWER_SW (mobo and case switch)
http://www.instructables.com/id/impBoot-Remotely-Turn-on-a-Desktop-Computer/
http://www.instructables.com/id/impBoot-Remotely-Turn-on-a-Desktop-Computer/
Image Notes 1. Hold the screen as close as possible to the edge of the Imp. This might take a few tries.
Image Notes 1. Find a USB port that is always on 2. Run the 4 wires through the case to the motherboard Image Notes 1. POWER SW positive to COLLECTOR and POWER SW negative to EMITTER 2. POWER SW positive header to COLLECTOR 3. POWER SW negative header to EMITTER 4. Connect 2 female-female jumper wires to POWER SW header pins
http://www.instructables.com/id/impBoot-Remotely-Turn-on-a-Desktop-Computer/
//***************************************************************************** // Class definitions // Input port to accept on/off commands from Electric Imp Toggle app class inputHTTP extends InputPort { // Event handler when HTTP command is received function set(httpVal) { // If HTTP receives a "1" hold switch on for 1 second // If HTTP receives a "0" hold switch on for 6 seconds, forcing a // hard shutdown if (httpVal == 1) { server.log("Received ON command."); hardware.pin8.write(0); imp.sleep(0.01); hardware.pin8.write(1); imp.sleep(1); hardware.pin8.write(0); imp.sleep(0.5); } else if (httpVal == 0) { server.log("Received OFF command."); hardware.pin8.write(0); imp.sleep(0.01); hardware.pin8.write(1); imp.sleep(6); hardware.pin8.write(0); imp.sleep(0.5); } } } //***************************************************************************** // Function definitions // Initialize pin 8 to be output to control motherboard POWER SWITCH function initSwitch() { hardware.pin8.configure(DIGITAL_OUT_OD_PULLUP); hardware.pin8.write(0); } //***************************************************************************** // Start of program server.log("Started"); // Configure the input port of the Imp to listen for HTTP commands imp.configure("impBoot", [inputHTTP()], []); // Configure pins on the Imp initSwitch(); ==END OF CODE== 6. Click the "Save Code" button 7. Go to "Planner" on the Electric Imp site, where you should see a single block - your Electric Imp 8. Click the Settings Button on the Electric Imp block 7. In the drop-down box that appears, click on "impBoot" 8. Click the 'Add Node' button and add an "HTTP In" block, which should appear in the planner window 9. Click the "+" button on the "HTTP In" block and click the impBoot block to connect the two blocks (an arrow will appear)
http://www.instructables.com/id/impBoot-Remotely-Turn-on-a-Desktop-Computer/
http://www.instructables.com/id/impBoot-Remotely-Turn-on-a-Desktop-Computer/
Related Instructables
http://www.instructables.com/id/impBoot-Remotely-Turn-on-a-Desktop-Computer/
Advertisements
Comments
3 comments
Add Comment
Orngrimm says:
Nov 22, 2012. 4:58 AM REPLY I successfully made a small server i can wake up on wireless. BUT: I had to use quite special hardware where you have an always-on-WiFi-Card with a small headercable connecting to the WoL-Pins on the Motherboard... It was a nightmare to find and build. So yeah: The solution (Nice 'ible by the way! Like it!) presented here is 100x simpler and for SURE more fun to build. :)
hymelsr says:
Nov 22, 2012. 7:18 AM REPLY I'm glad you liked it! I thought about doing something like you described with a Raspberry Pi, but it seemed overly complicated. I'm curious, are you able to get information about the state of the computer (e.g. ON or OFF) from the WoL pins? That's the one thing impBoot is missing, and I'd like to be able to determine if the computer is on or not.
Orngrimm says:
Nov 22, 2012. 11:04 AM REPLY As i posted, the hardware i used isnt selfmade... I dont know if you somehow can communicate with the Mobo and ask about status... But if i were you, i would simply check an unused USB-Port for +5V. If the Comp is shut down, that should be 0V. ;)
http://www.instructables.com/id/impBoot-Remotely-Turn-on-a-Desktop-Computer/