We need to turn on/off a PC which is located far away in the industrial field as well as a normal life. The PC can be turned on by using router's WOL (Wake-up On LAN) function and turned off by using the menu when user logged in. However it might be very hard to turn on/off when PC is working abnormally.
This article is about a PCIe board with a PHPoC module (P4M-400) so that control and monitor personal computers remotely by using a web browser.
Let's watch a demonstration movie in advance.
SoftwareThe websocket technology is used to control the power and reset buttons and monitor the power or HDD LED. It is a communication method making a TCP connection between the web server (PHPoC) and the web browser. So it is very useful to monitor the PC power LED in realtime.
I added a security function which is a web-based pattern locking mechanism from the hackster.io.
(https://www.hackster.io/iot_lover/web-based-pattern-unlock-for-iot-device-aeaf44)
When a web browser connect to the web page(index.php) it checks if the connection has been aurhorized by using pattern locking web page. If not, it redirects to the pattern locking web page.
HardwareThe board in this project is in the shape of PCI-e which is inserted into a slot of PC's mother board in order to be firmly equipped.
The PHPoC (which is a programmable IoT solution) modular type product (P4M-400) is embedded in this board. And this board includes an ethernet port, a USB port for a USB WIFI dongle, and a USB device port for programming and configuration. It can be powered from the PCI-e slot's 12V and a port for 5V to be connected to mother board's USB port. And there are 4 LEDs to show its status.
The ConnectionThe general PCs can be turned on/off or reset by using buttons on the case. And there are some LEDs for the power or the HDD in order to output its status. These buttons and LEDs on the case are connected to the front panel connector on the mother board.
The following picture is an example of the front panel connector specification.
There are two Solid State Relays(SSR) to emulates the power and reset buttons in the board, these makes the two terminal short as same as the buttons work.
The board has an digital input interface to detect LED status by using an SSR. When the mother board turns on the LED it outputs DC voltage then the input interface circuit detects the voltage difference.
I designed a 3D object for the PCI-e card bracket by using the sketchup program. I referred a pdf document from the internet (http://www.bracket.com/downloads/brackets/pdf/94560000A.pdf). It was a kind of a challenge because of its durability and precision.
The following is a output object but its looking is not so good.
The following photo is the front panel connector before installing the board.
The following photos show the board after installation.
When you connect the wires to the front panel connector you should pay attention to the position polarity - especially the LED polarity.
This project is implementing a system which monitors and controls PC power through the web page and websocket by using PHPoC modular product(P4M-400). I implemented it relatively easily because the PHPoC a IoT solution suitable for web application. And I made it as a PCI-e type card thanks to the modular type.
I think that user can develop a product in various fields very easily by using the P4M-400 which are small and modular type product.
Comments
Please log in or sign up to comment.