Это видео недоступно.
Сожалеем об этом.

How to turn your computer on and off remotely (Arduino project)

Поделиться
HTML-код
  • Опубликовано: 2 янв 2021
  • Code, parts and more: noisycarlos.co...
    I needed to add the the ability to remotely turn my computer On or Off, and even hit the Reset button.
    In this video, I explore how to control the Power and Reset buttons via WiFi with the help of a Wemos D1 Mini (similar to an Arduino) and some optocouplers, and an app for my phone.
    Music:
    Roboskater by Audionautix is licensed under a Creative Commons Attribution license (creativecommon...)
    Artist: audionautix.com/
    Seven Lives to Live by Twin Musicom is licensed under a Creative Commons Attribution license (creativecommon...)
    Source: www.twinmusicom...
    Artist: www.twinmusicom...

Комментарии • 70

  • @JeremyFisher
    @JeremyFisher 2 года назад +8

    Its a crime how underrated this channel

  • @Good_Schmidt
    @Good_Schmidt Месяц назад

    This is so cool, I have run into the same issue a few times where I have needed something from my home machine and its been turned off. Also love the "sick cable management" got me!! XD lol Great channel, got my sub! TY

  • @einsteinx2
    @einsteinx2 8 месяцев назад

    This is perfect! I was just thinking the other day about getting some kind of KVM for my gaming PC so I can turn it on remotely for Steam Remote Play, then I realized that no IP KVMs support HDMI 2.1 and 4k@120hz, so that was out of the question. Then I realized that I don't really need a KVM at all, just something to remotely power on or reboot the machine via some physical method. I have a bunch of microcontrollers and random electronics parts laying around and thought I could probably use an ESP chip to do this. One search later and found your project which is exactly what I wanted to do! Thanks for posting about this so others can use it! Ordering the optocouplers now, I hadn't even thought of using them, but it's a great idea to keep everything isolated! THANKS AGAIN!!

    • @noisycarlos
      @noisycarlos  8 месяцев назад

      Glad to hear it helped!

    • @DustNappa
      @DustNappa 8 месяцев назад

      I need it for Steam link too lol

    • @noisycarlos
      @noisycarlos  8 месяцев назад

      @@DustNappa you have to solder into the original power button, and of course the device wouldn't fit inside. But it's technically possible

  • @tackle4826mc
    @tackle4826mc 3 года назад +3

    Oh, thank you for the video. I think I'm gonna make one for my workstation. because I don't want to leave it on all time. And I'm too lazy to walk the the computer to turn it on :)

  • @ComputerGuy404
    @ComputerGuy404 2 года назад +1

    Thank you, I was able to make and prototype my own version of this project thanks to this video. It was my first ever arduino project that didn't just turn on leds. Mine is strictly for Dells with the 5 pin power/led/ connector that's used in a variety of models. There a few of these machines in my office that have the "Resume AC on power failure" feature turned on in the bios but that doesn't always work. This project will be nice for the "power stutters" in our building that shut off a few of our shared computers. A lot of our users work remotely right now due to covid and I have to go in from time to time to turn those machines back on when the power glitches. I tested my project with a few of those systems and it works flawlessly. Thanks again!

    • @noisycarlos
      @noisycarlos  2 года назад

      That sounds great, I'm glad it helped!

  • @TokeAboutIt
    @TokeAboutIt 2 года назад +3

    Why is this just not something someone can buy… you solved a problem that I’m sure many people have including myself. We’re wasting so many resources just to have our data readily available at anytime; anywhere. This is just not something that everyone could both easily and safely do.

  • @adaneitor
    @adaneitor 3 года назад

    Electronics channels deserves more subs

  • @adriabruicortes490
    @adriabruicortes490 2 года назад +1

    Oh man, exactly what I was looking for. Great job!

  • @tackle4826mc
    @tackle4826mc 3 года назад +2

    And also your video is good quality and explained clearly 🙂

    • @Zubairkhan-rb1fx
      @Zubairkhan-rb1fx 2 года назад

      Which commands is used to communicate between app and esp8266?

  • @Mouta94
    @Mouta94 8 дней назад

    Well this is exactly what I'm trying to do except I'm trying to do it with zigbee. I hope this will be easy to do. I'll give it a try

  • @streetdogarg
    @streetdogarg 14 дней назад

    Its... this not dangerous to the motherboard? can not be electrostatic or EMF send tru the wifi antenna and cable to the mobo? afaik can be risky but there is something that can assure this or clarify it ?

  • @TheTwerkMerc
    @TheTwerkMerc 7 месяцев назад

    So, by remotely, you're able to turn on your PC while on a different WiFi network?

  • @yanhesapmustafa2588
    @yanhesapmustafa2588 7 месяцев назад

    just use a servo to press the power button if burning your computer is an issue.

  • @ZaneDragonBorn
    @ZaneDragonBorn 7 месяцев назад

    Love the guide. Planning to make this work with matter for control on google home. Maybe a guide for this?

  • @noskill2113
    @noskill2113 3 года назад +1

    This is way to well made to only have 40 likes you need more likes

    • @noisycarlos
      @noisycarlos  3 года назад

      Thank you! Hopefully soon :-)

  • @ranggaaiman1272
    @ranggaaiman1272 2 месяца назад

    what if im not using transistor or optocoupler ?

  • @IronShell
    @IronShell 3 года назад +3

    Thanks for the video. I already bought everything and now waiting for the parcel to make this project for myself. And one little wish from me. Can you please make detailed photos of the board

    • @noisycarlos
      @noisycarlos  3 года назад +1

      Hi, my mistake I forgot to do the diagram. I'll make it and post on the page with the code and parts list.

    • @IronShell
      @IronShell 3 года назад

      @@noisycarlos hello. I'm still waiting for diagram or for the photos at least. Please

    • @noisycarlos
      @noisycarlos  3 года назад +1

      Hi @@IronShell sorry for the delay. I just posted it to the website. Good luck, and feel free to ask questions :-)

    • @IronShell
      @IronShell 3 года назад

      ​@@noisycarlos very big thanks for the scheme, but i got one problem with code. It's compiles but after uploading sketch the board starts pouring an error like this:
      load 0x4010f000, len 3584, room 16
      tail 0
      chksum 0xb0
      csum 0xb0
      v2843a5ac
      ~ld
      ISR not in IRAM!
      User exception (panic/abort/assert)
      Do you know something about that because I'm in stupor because of this?

    • @Zubairkhan-rb1fx
      @Zubairkhan-rb1fx 2 года назад

      @@noisycarlos which commands is used in app to communicate?

  • @yanhesapmustafa2588
    @yanhesapmustafa2588 7 месяцев назад

    nice project

  • @domgamess
    @domgamess 9 месяцев назад

    How would one connect this to a motion sensor?

  • @frankruss3663
    @frankruss3663 2 года назад

    Hey bro was looking for something like this mate . Thnks a lot. I want to ask u if u have faced such issue which i face last night my pc got freezed and i opened the wifi app same like yours nodemcu was connected but it was not sending any commands , I was not getting any print statement also , in order to get it work again i had to power off and on nodemcu . IS THIS ISSUE with APP or NODEMCU or what ?? PLZ HELP . THANKS AGAIN BRO.

  • @LukssRossi
    @LukssRossi 3 года назад

    I dont know how to make it work outside my house my isp controls all the ports so I dont know what to do

  • @nativocomunicaciones
    @nativocomunicaciones 2 года назад

    Great project. Some of your links of the parts doesnt work. Can you list the type of octocouper and the resistance. Thanks in advance from Peru

    • @noisycarlos
      @noisycarlos  2 года назад

      Thank you! The optocoupler is a PC817C or PC817. For resistors, I used 330ohms in the video. But anything between 220 to 500 ohm range should work.

  • @bogdanghita5033
    @bogdanghita5033 Год назад

    Hello, really nice video. But i do have a quick question.
    In your diagram, you have the + Power LED from the motherboard, connected to the rest of the GND. Shouldn't the + Power LED be connected to 5D? Thanks

    • @noisycarlos
      @noisycarlos  Год назад +1

      Looking at the diagram again, I can see it's not totally clear. The LED is actually not connected to ground, it's connected to an optocoupler (those black squares with the dot on the corner). So what happens is that when the motherboard LED is on, it 'activates' that optocoupler, which in turn connects D5 to the microcontroller's ground.
      Actually none of the motherboard connections (the LED, Power Switch, and Reset switch) go directly to the microcontroller, they all go through optocouplers, which keeps the motherboard electrically isolated from the microcontroller.

    • @bogdan90x
      @bogdan90x Год назад +1

      @@noisycarlos I see, so actually all optocouplers from the motherboard plus the case LED are connected to GND as I see in the diagram with a black line.

    • @noisycarlos
      @noisycarlos  Год назад +1

      @@bogdan90x yeah, on the microcontroller side, they all connect to ground on one end and the microcontroller on the other. Note that for the buttons, they're connected in one direction (so the microcontrollers control the optocoupler), and on the LED side, they're facing the opposite direction (so the motherboard controls the optocoupler, and the microcontroller just detects that.

    • @bogdan90x
      @bogdan90x Год назад

      @@noisycarlos Yes, so your diagram is ok. The problem for me was that i did not see the proper optocoupler blowout. I thought that the pin on one side, connect to the pin on the other. But the connection is actually between pins from each side.
      I mean i understood the theory but did not understand wht the GND was on the same horizontal line as the +LED.
      So on the side of the microprocessor it does not matter where you put the + and where you put the -.
      Thank you so much for the fast replies.
      Wish you a great day/night.

  • @philipperostin
    @philipperostin 2 года назад

    All this work for that ! You just needed a wifi relay, 12 $, set it up, plug it and done ! Even with voice control.

    • @noisycarlos
      @noisycarlos  2 года назад +1

      That would have been easier indeed!
      It would work for the most part, however, I wanted the device to be aware if the computer was already on or off by reading the signal from the power LED. For example if I send a 'Power On' command and the computer is already on, it doesn't press the power button again (which would turn it off).

    • @philipperostin
      @philipperostin 2 года назад

      @@noisycarlos ah ok. Well if its on it should be online, thus easy to verify and then make a condition in a routine stating that you can only do the Start command if computer is offline. But it is an interesting point.

  • @fun4life931
    @fun4life931 2 года назад

    Hey nice project. Everythings wrkng fine fr me bt the pc shuts off after 4 to 5 seconds when connecting nodemcu. All cmds work fine though. Is there something missing in ur code . The pwr btn connection seems to make the pc shut off when connected. Plz help

    • @noisycarlos
      @noisycarlos  2 года назад

      Make sure you use the 'on' command and not the 'pressPwr' command, since that one will keep the button pressed. If that's not it, I'd check the serial monitor in the arduino IDE

    • @fun4life931
      @fun4life931 2 года назад

      Bro in the btn i only use three of them cmnds on off reset. But d6 pin when connected gives the problem it shuts off within 4 secs. Plz help wt do u suggest.m using the exact code as urs nd same diagram. M using only three commands nothing else.

    • @fun4life931
      @fun4life931 2 года назад

      Plz help me bro i struggled a lot and completed the project but its the only issue m facing. Plz help

    • @abdulwahidwahidwahid
      @abdulwahidwahidwahid 2 года назад

      @@noisycarlos bro facing same problem tried everything can u suggest wts wrong here?? wt i tried:-
      tried different node mcus
      tried different pins
      m not using pressPwr command only on off reset
      PLz help bro .

    • @noisycarlos
      @noisycarlos  2 года назад

      I'm not sure of what's happening with your computer, but you can try using an LED instead of the Optocoupler for the Power button to help you diagnose. When you send the ON command, the LED should turn on for a second or two, then turn back off. When you use the pressPwr, it should turn on and stay on until you send releasePwr

  • @lilgnzxg4028
    @lilgnzxg4028 2 года назад

    Hi, im trying to make this project using an ESP8266 module, but when I compile the code in the Arduino IDE it gives me lots of errors. Can someone help me with this? Thanks

    • @lilgnzxg4028
      @lilgnzxg4028 2 года назад

      When I change my passwd and ssid it says "xxxx was not declared in this scope"

    • @syedshah5011
      @syedshah5011 2 года назад

      @@lilgnzxg4028 hey did you figure it out, im planning on doing using that as well.

    • @lilgnzxg4028
      @lilgnzxg4028 2 года назад

      @@syedshah5011 I could not do it yet

    • @lilgnzxg4028
      @lilgnzxg4028 2 года назад

      @@syedshah5011 If you figure it out please let me know

  • @FPChris
    @FPChris 11 месяцев назад +1

    I need to turn on a gaming pc from the couch.

  • @zahidpekince
    @zahidpekince 3 года назад

    Do both devices have to be connected to the same wifi or can I turn it on away from home

    • @noisycarlos
      @noisycarlos  3 года назад

      By default it only works in your local Wifi. However, to use over the internet you can open a port on your router and use a Dynamic DNS service like DynDNS or noip.com.

    • @basslow3343
      @basslow3343 3 года назад

      @@noisycarlos The code is not work, can you plz help.
      TX_1:3:20: error: expected primary-expression before '

    • @ReinForceOne
      @ReinForceOne 3 года назад

      @@basslow3343 you need to put the password / ssid in quotes const char* ssid = "test";

  • @matgaw123
    @matgaw123 Год назад

    Why don't use transistor

    • @amaillo
      @amaillo Год назад

      Actually you can, but with optocouplers you isolate pc circuit from MCU circuit so there isn’t any interference.