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

  Рет қаралды 25,221

noisycarlos

noisycarlos

3 жыл бұрын

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

Пікірлер: 68
@JeremyFisher
@JeremyFisher 2 жыл бұрын
Its a crime how underrated this channel
@noisycarlos
@noisycarlos 2 жыл бұрын
Thank you!
@adriabruicortes490
@adriabruicortes490 2 жыл бұрын
Oh man, exactly what I was looking for. Great job!
@tackle4826mc
@tackle4826mc 3 жыл бұрын
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?
@adaneitor
@adaneitor 2 жыл бұрын
Electronics channels deserves more subs
@ComputerGuy404
@ComputerGuy404 2 жыл бұрын
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 жыл бұрын
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 :)
@ZaneDragonBorn
@ZaneDragonBorn 5 ай бұрын
Love the guide. Planning to make this work with matter for control on google home. Maybe a guide for this?
@Thats_Good_Schmidt
@Thats_Good_Schmidt 6 күн бұрын
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
@noisycarlos
@noisycarlos 6 күн бұрын
Thank you! 😁
@einsteinx2
@einsteinx2 7 ай бұрын
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 7 ай бұрын
Glad to hear it helped!
@wassssssuuup
@wassssssuuup 6 ай бұрын
I need it for Steam link too lol
@noisycarlos
@noisycarlos 6 ай бұрын
@@wassssssuuup you have to solder into the original power button, and of course the device wouldn't fit inside. But it's technically possible
@yanhesapmustafa2588
@yanhesapmustafa2588 5 ай бұрын
nice project
@noskill2113
@noskill2113 3 жыл бұрын
This is way to well made to only have 40 likes you need more likes
@noisycarlos
@noisycarlos 3 жыл бұрын
Thank you! Hopefully soon :-)
@TokeAboutIt
@TokeAboutIt 2 жыл бұрын
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.
@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.
@ranggaaiman1272
@ranggaaiman1272 24 күн бұрын
what if im not using transistor or optocoupler ?
@TheTwerkMerc
@TheTwerkMerc 5 ай бұрын
So, by remotely, you're able to turn on your PC while on a different WiFi network?
@domgamess
@domgamess 7 ай бұрын
How would one connect this to a motion sensor?
@yanhesapmustafa2588
@yanhesapmustafa2588 5 ай бұрын
just use a servo to press the power button if burning your computer is an issue.
@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 жыл бұрын
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 жыл бұрын
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 жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
@@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 Жыл бұрын
@@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.
@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
@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 жыл бұрын
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.
@FPChris
@FPChris 10 ай бұрын
I need to turn on a gaming pc from the couch.
Remote Start a PC
22:43
Mike Faucher
Рет қаралды 27 М.
We Got Expelled From Scholl After This...
00:10
Jojo Sim
Рет қаралды 76 МЛН
Универ. 13 лет спустя - ВСЕ СЕРИИ ПОДРЯД
9:07:11
Комедии 2023
Рет қаралды 6 МЛН
NERF WAR HEAVY: Drone Battle!
00:30
MacDannyGun
Рет қаралды 30 МЛН
Control Your PC From a Distance - IPMI &  Remote Management!
9:21
Linus Tech Tips
Рет қаралды 798 М.
AliExpress PCI card to turn on my PC?
13:04
Trexpass
Рет қаралды 13 М.
How to Remotely Turn On Your PC over Internet
5:53
BTH
Рет қаралды 115 М.
ESP32/ESP8266 Relay Module - Control AC Appliances (Web Server)
6:10
Universal PC Remote Control -  Silverstone ES02-USB
2:08
MW Technology
Рет қаралды 153 М.
Jumperless
4:13
Architeuthis Flux
Рет қаралды 154 М.
Control ANY DEVICE with YOUR VOICE! (Remote Home Automation)
7:57
FUTURESPACE COLLECTIVE
Рет қаралды 14 М.
#miniphone
0:16
Miniphone
Рет қаралды 3,7 МЛН
Low Price Best 👌 China Mobile 📱
0:42
Tech Official
Рет қаралды 718 М.
Урна с айфонами!
0:30
По ту сторону Гугла
Рет қаралды 8 МЛН