GithubHelp home page GithubHelp logo

lamprey's Introduction

A tiny Particle Photon program for remote starting a PC. The Photon board is (almost) directly wired to the motherboard headers, perfectly replicating the actions of physically pressing your computer's power and reset buttons.

How it works

Most standard desktop computer motherboards have a set of front panel headers exposed for various purposes. Among these are pins used to boot and reset the system. When a motherboard is installed in a case, wires from the power and reset buttons are plugged directly into these headers. Each button has a + and - pin, and the act of pressing a button simply closes the circuit between them.

This project consists of a WiFi-enabled microcontroller spliced between these headers, giving the capability to remotely initiate a cold boot or hard reboot. The only requirement for it to function is that your system's PSU is switched on and plugged in.

What you'll need

Setup

If you're unfamiliar with the Particle Photon platform, read their Getting Started guide.

It's highly recommended that you use an NPN transitor as a switch to protect both your motherboard and the Photon from damage.

Disclaimer: I am not responsible for any electronics damaged while following these instructions. Use at your own risk.

If your motherboard's front panel headers aren't labeled directly on the board, consult either the manual or Google.

  • Wire the motherboard's POWER + pin to the E end of an NPN transistor. Wire the POWER - pin to C on the same NPN transitor. Wire D7 to the base of the same NPN switch.

  • Repeat the same process for the reset switch. Wire the motherboard's RESET + pin to the E end of an NPN transistor. Wire the RESET - pin to C on the same NPN transitor. Wire D1 to the base of the same NPN switch. Note: this step is optional, and best skipped if you don't have a need for remotely hard rebooting your system.

  • Wire the computer case's power and reset buttons their corresponding NPN switches, including ground (from the button) to ground (on the motherboard), so that they remain functional.

  • Flash lamprey.cpp to your Photon

I recommend powering the Photon using an internal USB header on the same motherboard, if possible.

How to use

See Particle's documentation on calling a Cloud function.

Call the function pc-power with the argument togglePower to trip the power switch on your computer. Note: different operating systems behave differently when the power button is pressed, e.g., Windows has a "Choose what the power buttons do" option under Control Panel > Power Options.

Call the function pc-power with the argument reset to trip the reset switch on your computer.

This project can also be integrated with Pantheon, which is especially handy when set up into a PC used as a home media center. See documenation on how to integrated a Particle function with Pantheon.

lamprey's People

Contributors

sowiecki avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.