How To Remotely Turn On a PC Using a Raspberry Pi / Arduino - Ec-Projects

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 พ.ค. 2024
  • In this video I show how to remotely power up a computer using a Raspberry Pi or any other microcontroller.
    T-Shirts: teespring.com/ec-circuit
    ¤¤¤¤ -- SUPPORT Ec-Projects -- ¤¤¤¤
    By using my Amazon.com affiliate link (No extra cost for you!) - amzn.to/1kNT3RM
    By becoming a Patreon for as little as $1 per month - / ecprojects
  • วิทยาศาสตร์และเทคโนโลยี

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

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

    I found this video in a search. It is just what I need in this pandemic and work from home situation. I let my girlfriend use my remote pc, and she logged out from it. Now I need to go down to the office and turn it back on 😛Thanks a lot for the video :)

  • @jackcrossley-west7188
    @jackcrossley-west7188 8 ปีที่แล้ว +1

    Well done projects on reaching 10k, please carry on making your videos. I love watching them.

    • @EcProjects
      @EcProjects  8 ปีที่แล้ว

      +Jack Crossley-West Thank you!

  • @llertas
    @llertas 8 ปีที่แล้ว +4

    Thanks for keeping your promise to do this video
    Interesting opto-relay build! I didn't know you could do that - I learned something today :)
    Though not all of us have 3d printers (or the time to build that nice box) so I use 1 or 2 relay board from China (costs under 1$ if you buy a few) and it saves me time. Your build is absolutely fine though - no arguments there...
    For the code, I also use the WiringPi library. However, I use .sh scripts to control the relay. It is a bit easier and you dont have to compile it every time you need a change... Below my notes:
    For a 1 relay board switch connected to pin 23 on RPI
    #!/bin/bash
    gpio -g mode 23 out
    gpio -g write 23 0
    sleep 6
    gpio -g write 23 1
    this will "hold" the power button for 6 seconds (sleep 6) so if the server is ON, it will do a hard power off, if its off - it will power it on.
    I am also using the same code with an 8 relay board, just changing the pin numbers accordingly.

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

      I also don't have access to the 3d printer, so I used a clay epoxy to set them together permanently and it works like a charm.

  • @JohnKnutsson
    @JohnKnutsson 8 ปีที่แล้ว

    I do something simular. For my PC i use a WOL signal from my linux based NAS. I have my NAS-server close to my printers and use the NAS as a print-server. I have attached a cheap 4 channel usb relay to my NAS, and switch the printers on when there is a print que and off when no activity for 20 minutes.
    Keep up the good work! / God kanal du har her! :)

  • @JonnyBergdahl
    @JonnyBergdahl 8 ปีที่แล้ว +8

    You could power the Pi from the standby power of the computer, since it has to be on standby anyway.

  • @alexwest1977
    @alexwest1977 8 ปีที่แล้ว

    Hi nice video :) I have thought about doing something similar to this but I had planned to try just grounding one of the pins of the power switch header under the assumption that it is an active low type of thing going on. If my theory is correct then you should be able to accomplish the same thing with a low signal from the pi as long as the pi and pc have a common negative. Am I way off?

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

    Hi there, even though chances of getting an answer are bad:
    Which optocoupler would i use to do this? Thanks!

  • @drmikeyg
    @drmikeyg 8 ปีที่แล้ว

    Job well done.Thanks

  • @tl2797
    @tl2797 7 ปีที่แล้ว +3

    I'd like this twice if I could :)

  • @SebastianMeikle
    @SebastianMeikle 8 ปีที่แล้ว

    Please do some more videos on laser cutting! I'de love to learn some new tips and tricks.

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

    This is an excellent instructional video. Thank you for sharing your knowledge. I am new with electronics and I am learning. Would you please explain to me why is that I have the following behavior. I am using an Esp01 with a relay board. My code closes the relay switch for 150ms and the computer starts normally for about 3 seconds and then the power supply turns off. If I just short the two cables connected to the relay (common and normally open), the computer starts normally. Any ideas how to make it work? I really need to have this working. Thanks in advance.

  • @LilB4LiFe64
    @LilB4LiFe64 7 ปีที่แล้ว

    By using your method of turning on the PC do you believe it is possible to use an Amazon Echo or RPI using the Alexa AI for voice control to call the site IFTTT to turn on the computer using my voice. Or is there an easier route to us my voice to turn on the PC.

  • @aerotro
    @aerotro 8 ปีที่แล้ว

    Very useful thanks, if ever I travel the world would be handy ! wishful thinking for me :p

    • @EcProjects
      @EcProjects  8 ปีที่แล้ว +1

      +Ortorea Screenname Thanks, I don't actually travel much myself either, so It was just to put the idea out there :)

  • @MegaAlexVargas
    @MegaAlexVargas 3 ปีที่แล้ว

    Did you use a low voltage relay for this project?

  • @Dazdigo
    @Dazdigo 4 ปีที่แล้ว

    You should use a red or infrared led, optoresistors and optodiodes are most sensitive to infrared. Red and infrared also draw less power than other LEDs as well.

  • @Truevideoz
    @Truevideoz 8 ปีที่แล้ว

    Only prob with this is smps consume current even when stanby. I observed about 10 watts on standby and we would like to cut this down . There should be a video on creating a remote switch which can turn off and on completely...But cheap way to implement on /off and never thought about this

  • @LEGOGAMER1
    @LEGOGAMER1 6 ปีที่แล้ว +2

    Can I buy a Kit with all the Components for my PC?

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

    Me trying to make my mum connect the power plugs & turn on pc from 400km away over the phone prompted me to make a remote switch & I found your video. I was wondering why not use a transistor? Wouldn't that be more efficient ? We could turn on with only single gpio pin. By the way if I were to actually make it via using ground pin & a gpio pin what would be the code?

  • @DAVIDGREGORYKERR
    @DAVIDGREGORYKERR 8 ปีที่แล้ว

    Like I said in the comments in your last item if you use a dedicated RAID controller which will go into a slot on the motherboard and should be detected by Linux and the OS should install the drivers for the RAID controller BTW in the DISKS applet there should be a button that will let you access the RAID setup, would it better to add an Arduino I/O shield which should protect your Raspberry Pie, You can develop your programs using MonoDevelop provided you have the ARM compiler installed.

  • @thienbao2105
    @thienbao2105 4 ปีที่แล้ว

    thanks :X

  • @jackcrossley-west7188
    @jackcrossley-west7188 8 ปีที่แล้ว +1

    Omg, I'm the 10,000th subscriber

    • @EcProjects
      @EcProjects  8 ปีที่แล้ว +1

      +Jack Crossley-West Congratulations! :D And thanks for subscribing !! :)

  • @klingersanchez1453
    @klingersanchez1453 8 ปีที่แล้ว

    👍

  • @alexwest1977
    @alexwest1977 8 ปีที่แล้ว

    LOL, I should have watched the whole video before commenting. DOH!

  • @nickpelov
    @nickpelov 8 ปีที่แล้ว

    Also you can use rid relay - 5-10 mA

  • @raphaelopizzi
    @raphaelopizzi 3 ปีที่แล้ว

    Hello, where to find the code?

  • @LarsHarmsen1337
    @LarsHarmsen1337 8 ปีที่แล้ว +4

    It seems WOL is the easier solution and every Motherboard/NIC from the last couple years supports it.

    • @cptcrogge
      @cptcrogge 8 ปีที่แล้ว +1

      +Lars Harmsen
      Advantage of this solution is that you can RESET the PC if it stucks, you can't do that with WOL!

    • @anonimkisi7804
      @anonimkisi7804 6 ปีที่แล้ว

      This is completely true... I dunno the reason but my modem or pc gets stuck and you cant reach your pc from your modem... so sending a packet to wake your pc up is not possible... i think even a more mechanic solution is better... Like making a servo motor to press the power button of the pc... you can power that external circuit using a 12V adaptor, so no need to hack into computer's cables... when it takes a signal ( over internet or an sms ) it just moves the servo and press the power button... hope you get what i mean

  • @dirtbuilder4615
    @dirtbuilder4615 4 ปีที่แล้ว

    Why not Use a Transistor with a resistor between the ground of the aduino I Think it Would be the simples option

  • @Em.P14
    @Em.P14 4 ปีที่แล้ว

    Why led and photodiode when you could just use an oldschool transistor ?

  • @karamramadan7100
    @karamramadan7100 6 ปีที่แล้ว

    can i do it with a laptop ? without open up the case ?

    • @darabbiter1044
      @darabbiter1044 6 ปีที่แล้ว

      dont try for the love of god, rip warranty. the power cables are buried deep and you will break something, use wol

  • @xapobilo1947
    @xapobilo1947 6 ปีที่แล้ว

    does it restart a frozen pc too ?

    • @Mismatch-
      @Mismatch- 3 ปีที่แล้ว +1

      (two years later...)
      You could do that, it wouldn't be that hard. I mean, the hardware part would be exactly the same, it's just going to require a bit of software tweaking. First, you'd have to see how long you'd have to hold the power button for it to forcefully shut down, and then make two separate programs in the Raspberry/Arduino/etc. One for turning the PC on (same as the one in the video), and another for restarting (which would include turning the output ON, waiting for a bit more than the amount of time you previously measured, then turning the output OFF, waiting a second or two, and then blinking it again for about a second to turn the PC back on). And then you'd use one program or the other, depending on the situation.

  • @JarppaGuru
    @JarppaGuru 8 ปีที่แล้ว

    wakeon lan have you ever hear bout it? if your motherboard support it you can turn your pc on with mobile phone anywhere on world lol. no need wire no need multimeter no need arduino no need rpi. only phone with internet access

    • @EcProjects
      @EcProjects  8 ปีที่แล้ว +1

      +JarppaGuru Yes I talk about it in the video. But I chose to do something different..

    • @ricknuttv8468
      @ricknuttv8468 4 ปีที่แล้ว +1

      wake on lan wont work on a frozen pc