项目创意

通过esp8266用手机远程开关电脑

字号+ 作者:duino123.com 来源:未知 2016-04-27 22:17 我要评论( )

通过esp8266用手机远程开关电脑

PLCLIVE.COM注:
曾几何时,你有没有想过在公司或者在外地的时候想打开家里的电脑找找资料,或者下载点日本动作片?那你只好盼着早点回家喽!本产品将让你美梦成真!你将可以在任何地方打开你的电脑,进行任何操作!当你回家时,该下载的已经下载完.......是不是我想多了?反正功能在这里了,你干什么咱也管不着了。

 


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: 元件和程序







  



元件:

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

程序:

  • 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 (控制电脑)



    

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: 手机APP  Blynk (启动电脑)

    

     

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: 利用Arduino IDE对NodeMCU编程





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: 硬件连接



  

solder the optocoupler as the schematics show.

Step 7: 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: 接线



  

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: 延伸

其实与另外一个实验结合一下就可以实现远程监控电脑键盘的功能,不过,这个还是不推荐了,有兴趣的自己在本站找吧,因为功能太强大了,我都害怕了:)
 

如需更详细资料,如有好资源分享,请加入QQ交流群:214461008

欢迎阅读,欢迎转载,不用注明出处!本站只提供入门和进阶资料,做您学习的小伙伴!

老司机也欢迎光临指导!有好内容请加群:214461008 不要看声明了,看内容吧!

相关文章
  • ESP8266 Arduino气象站

    ESP8266 Arduino气象站

    2016-04-28 18:44

  • 用esp8266代替Arduino的实现方法

    用esp8266代替Arduino的实现方法

    2016-04-27 12:55

网友点评
Arduino