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

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ม.ค. 2021
  • Code, parts and more: noisycarlos.com/project/how-t...
    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 (creativecommons.org/licenses/...)
    Artist: audionautix.com/
    Seven Lives to Live by Twin Musicom is licensed under a Creative Commons Attribution license (creativecommons.org/licenses/...)
    Source: www.twinmusicom.org/song/270/s...
    Artist: www.twinmusicom.org
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 64

  • @JeremyFisher
    @JeremyFisher 2 ปีที่แล้ว +5

    Its a crime how underrated this channel

  • @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?

  • @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!

  • @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 :)

  • @yanhesapmustafa2588
    @yanhesapmustafa2588 3 หลายเดือนก่อน

    nice project

  • @adaneitor
    @adaneitor 2 ปีที่แล้ว

    Electronics channels deserves more subs

  • @einsteinx2
    @einsteinx2 5 หลายเดือนก่อน

    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  5 หลายเดือนก่อน

      Glad to hear it helped!

    • @wassssssuuup
      @wassssssuuup 5 หลายเดือนก่อน

      I need it for Steam link too lol

    • @noisycarlos
      @noisycarlos  5 หลายเดือนก่อน

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

  • @ZaneDragonBorn
    @ZaneDragonBorn 3 หลายเดือนก่อน

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

  • @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.

  • @noskill2113
    @noskill2113 2 ปีที่แล้ว +1

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

    • @noisycarlos
      @noisycarlos  2 ปีที่แล้ว

      Thank you! Hopefully soon :-)

  • @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.

  • @domgamess
    @domgamess 6 หลายเดือนก่อน

    How would one connect this to a motion sensor?

  • @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.

  • @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?

  • @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.

  • @TheTwerkMerc
    @TheTwerkMerc 4 หลายเดือนก่อน

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

  • @LukssRossi
    @LukssRossi 2 ปีที่แล้ว

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

  • @FPChris
    @FPChris 8 หลายเดือนก่อน +1

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

  • @yanhesapmustafa2588
    @yanhesapmustafa2588 3 หลายเดือนก่อน

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

  • @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 2 ปีที่แล้ว

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

  • @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

  • @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.

  • @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 ปีที่แล้ว

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

    • @lilgnzxg4028
      @lilgnzxg4028 ปีที่แล้ว

      @@syedshah5011 I could not do it yet

    • @lilgnzxg4028
      @lilgnzxg4028 ปีที่แล้ว

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

  • @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.