Phone Controlled Computer Starter

20,913

528

47

Published

Introduction: Phone Controlled Computer Starter

Have you ever wanted to start your computer while you are away from home to access some files? Or maybe you wanted to start a download of a new game, so that it would be done when you got home. This project will show how to start and control your computer from anywhere in the world.

We will use a NodeMCU and the Blynk app to start the computer. After it has been turn on, the TeamViewer App will be used to control the computer.

Step 1: Parts & Programs

Parts

  • A computer to turn on
  • NodeMCU (or ESP8266)
  • Project enclosure
  • Cables
  • Optocoupler (Opto-isolator) i used "Sharp PC817"
  • Resistor 200ohm

Programs

  • Blynk App (on Phone)
  • Arduino IDE (on Computer)
  • TeamViewer (on Computer and Phone)

Step 2: TeamViewer

Download the TeamViewer software on the PC that you want to control. Create an account and add your computer to your list of computers. You can control your computer from another computer or by phone.

Step 3: TeamViewer (To Control Computer)

Also download the TeamViewer App from the store, it is free. Login and go to your computers and from there it is just to click on the computer that you want to control.

Step 4: Blynk (To Start Computer)

The Blynk App will be used to trigger the NodeMCU board that will start our computer. Download the app from the store and make an account. Create a new project and add a button to pin 4 (if you use that pin).

Step 5: Program the NodeMCU With Arduino IDE

The pictures contains most of the information in this step.

Arduino IDE

https://www.arduino.cc/en/Main/Software (Here We can download the Arduino IDE)

Blynk

https://github.com/blynkkk/blynk-library/releases (Here we can download the code library for the project)


Add the ESP8266 board to the Arduino IDE

https://github.com/esp8266/Arduino (This is the website where we find the following link)

"http://arduino.esp8266.com/stable/package_esp8266com_index.json" (We will need this link)

Step 6: Make the Hardware

solder the optocoupler as the schematics show.

Step 7: Power the NodeMCU

The board needs power and I do not want to cut open the wires on my power supply. I added a usb power plug to the back of the case to make it easy to supply the board with power.

Step 8: Connect the Wires

This part is quite easy. Dissconect the cable that goes from the power button to the motherboard and plug in one of the two cables from the NodeMCU instead. Now connect the power button cable (that you just dissconected) to the other cable from the NodeMCU board and you are done.

Remember that the current can only flow in one direction in the optocoupler so if it does not work, then you have plugged the cable in the wrong way. (This is not harmful to your computer).

Step 9: The Build in Moving Pictures

I provided a short video of the build. If you want to see a test of the build, there is some at the end of the video!

Thank you for reading my instructable!

2 People Made This Project!

Recommendations

  • Oil Contest

    Oil Contest
  • Water Contest

    Water Contest
  • Clocks Contest

    Clocks Contest

47 Discussions

i cant use for esp standalone why ? cant upload

1 reply

I guess this answer is a bit to late. But I might be able to help you now, but you will have to provide me with a bit more information about what you have done and what isn't working.

Hello and thanks for good news here, I like use alternative LiteManager software for free and fast remote control computers into local or Internet, cross-platform \ Windows, Android, Mac. It's very simple and secure. All the best!

Would it be a bad idea to use a transistor in place of the octocoupler?

2 replies

Using an octocoupler allow me to power the nodeMCU from an external
power source (the 5v phone charger), while controlling the computer
connected to another power source (the computers psu). You can use a transistor with two sources of power like I did, if you connect the grond
of the power supplys together. You can also use a transistor and do it
like "kpqowieuryt" did, only use the internal power supply of the
computer. Read his comment for more info, hope this helps.

thanks. I think I'll attach the high side of the on button to the collector and and the low side to the emitter in parallel. I think it would also be a good idea to attach a digital pin to the power indicator light, then map that to a blynk virtual pin.

Awesome proyect. Thanks for the ible. Has anyone tried powering this out of the +5vsb of the pc psu?

5 replies

Thanks. :) and for the power of the psu. When the power supply is turned of it still supply power. But only to the big motherboard connector and not to the common +5v that is plugged to all the other components. But if one would cut the cable connected to the "big" connector and pull the power that way it should work. I have not tried this, I don't want to modify my power supply. I suppose one could make an adapter and cut that instead and keep the powersupply out of harms way.

I was in deed refering to the 5v rail that is always powered regardless of the computer being on. I plan to try this so i will come back with my results. Thanks again

Yes, please do. I have not tried it myself, it will be fun to read the results. :)

Done xd. I have it actually running inside my computer powered out of th 5v standby rail. So the nodmcu is always on even with the computer off. I bought a 20cm atx extension cable, with a male and female 24 pin conector, and soldered wires to this instead of directly to the psu cable. This way i am not touching either the motherboard or the psu and still getting +5vsb(purple wire on the atx connector). I can even change the node to a new computer or new psu without problem. I have also wired the 5v normal rail to the adc on the nodemcu through a 2:1 voltage divider so i can remotely monitored the level on this rail and wheter the computer is actuallt on or off instantly. Used a pc827 (2x optocouplers in a single package) so i can extend this to a second near computer. I am also thinkng on adding a servo to phisically press the power button on a laptop. If i come around to doing any of this i will update. Thanks for the indtructable

This is clearly a better upgrade than my solution. Good work!

0
user
Ekras

2 years ago

Blynk announced that they will move to a
new server so you will need to download the newest library and reflash
your nodeMCU. If you made this before today. cheers

You can read about it on there facebook page.

https://www.facebook.com/blynkapp/?ref=nf

0
user
nt6

2 years ago

Great idea. The problem is bigger on an iMac. As you know, Apple computers (iMacs at least) have a well known power shut down issue. Wake on Lan does NOT work when this happens after a power outage/restore. All iMac users have the problem that if the utility power goes out, or fluctuates during a storm for just a second or two, the iMac will NOT power back on. And yes, that is even with the setting "restore after power loss" set. If the power goes out completely, even for a few minutes, and then returns on one time, then it will work. But here, VERY often, the power will go off, on, off, in a couple of seconds. Then, the iMac is not able to be remotely turned on. You have to physically be there to press and hold the power button, doing a forced OFF, then press it again to power back up. This is especially frustrating because I have home automation running on the iMac, and need it to come back on. Has anyone figured out a way to do this project by connecting into the iMac power button directly with the NodeMCU device? I even tried installing a "Ring Rebooter", that you can call on the phone, and turn the power strip on and off. With the iMac plugged into this, it still won't power back on after a storm fluctuation. You still have to physically press and hold the iMac's power button for about 5 sec, then press it again to turn it back on. I was hoping someone would figure out a way to wire a device directly to the iMac's power button, so I could remotely turn it on?

5 replies

Those other responses are all good ideas nt6. Two thoughts I have: 1) use a UPS so that the power will remain on until the UPS dies during an extended power outage. It would absorb the off/on problems that plague the iMac. 2) I use a microcontroller to turn on my PC also, using a similar hack of the power button wiring. I added a hard reset loop to my code where instead of just a push to close for x number of ms, I have it time the event until 4 seconds has expired, which keeps the PC power switch circuit closed for that long and simulates what you have to do in person to force your iMAC into its normal 'off' so you can press briefly to start it up again. I hope that helps you!

Would a Power Backup Unit (substantially a battery connected to the mains) be a solution to your problem? I'm not a geek, but to my knowledge sensitive IT infrastructure is always under power backup, just to allow company network to go suddenly in shut down (loosing the work of hundred people) just because the mains are powered off for some seconds.

This sounds just perfekt for your problem. The octocupler is used in a way that when you have connected the NodeMCU to the computer. Pressing the button on the phone will do exactly the same thing as pressing the real button and the computer will not notice a difference. I am not the best person to talk to about macs, because I have never owned one. But if you remove the backplate from the imac and add your own wires to those of the power button. Then you would be able to bring those wires outside of the case and connect them to the NodeMCU. But, if you do not want to temper with the inside of the imac. Then actually fysically pressing the button might be what you want to do. You could use the NodeMCU to instead of closing the buttons circuits to "press it" you could use a solenoid that pushes the real button. You would need some other components but it would essentially be the same. Instead of closing the buttons circuit you would close the solenoids circuit. :)

Are you using a battery backup?

I did actually did think about it. I would not need it in the sense of having backup power for the NodeMCU because I would always have it connected to the mains. Which would mean that if the NodeMCU don't get any power then the computer would not get any either. Which means that I would not be able to start it either way. But I did think about only using a battery, without any external adapters. I would charge the battery from the computers own power supply, during the time the computer were turned on. It would use that power during the times when the computer were off. I did later decide that it would be a somewhat overkill and went with the version I mentioned earlier without any battery.