# Use Particle Photon to turn on Wifi connected PC

**URL:** https://community.particle.io/t/use-particle-photon-to-turn-on-wifi-connected-pc/25459
**Category:** Hardware
**Created:** [August 30, 2016, 9:01am UTC](https://community.particle.io/t/use-particle-photon-to-turn-on-wifi-connected-pc/25459 "2016-08-30T09:01:53Z")
**Posts on this page:** 18
**Page:** 1

<div class="post-metadata">

### Author: ![ltpitt](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/ltpitt/32/6710_2.png) [@ltpitt](https://community.particle.io/u/ltpitt)
#### Post date: [August 30, 2016, 9:01am UTC](https://community.particle.io/t/use-particle-photon-to-turn-on-wifi-connected-pc/25459/1 "2016-08-30T09:01:53Z")

</div>

Hi all!

I removed Ethernet from my pc and my motherboard doesn’t allow me to turn it on with wifi connection from remote.  
I decided to use a photon, connecting it to the physical power button of the computer.

Can I connect the photon directly or I should use some kind of relay?

In this case what would you suggest:

> **[\[€1.67\] 5v relais module voor (voor Arduino) (werkt met officiële (voor Arduino)...](https://www.miniinthebox.com/nl/5v-relais-module-voor-arduino-werkt-met-de-officiele-arduino-boards_p1141403.html?currency=EUR&litb_from=paid_adwords_shopping&utm_source=google_shopping&utm_medium=cpc&adword_mt=&adword_ct=91410717844&adword_kw=&adword_pos=1o3&adword_pl=&adword_net=g&adword_tar=&adw_src_id=9626573769_378845404_25632896164_aud-72499240905:pla-77131067333&gclid=Cj0KEQjw3ZS-BRD1xu3qw8uS2s4BEiQA2bcfM-iQPsN_6mcxSwKTlzxdID1KAFKI2wRYnu8-pl3sL1gaAghW8P8HAQ)**
>
> Dit vind ik leuk. Zal ik dit kopen?

or

> **[\[€2.51\] één kanaal 12v relais module w / opto-couplersisolation](https://www.miniinthebox.com/nl/een-kanaal-12v-relais-module-w-opto-couplersisolation_p2698639.html?currency=EUR&litb_from=paid_adwords_shopping&utm_source=google_shopping&utm_medium=cpc&adword_mt=&adword_ct=91410717844&adword_kw=&adword_pos=1o8&adword_pl=&adword_net=g&adword_tar=&adw_src_id=9626573769_378845404_25632896164_aud-72499240905:pla-77131067333&gclid=Cj0KEQjw3ZS-BRD1xu3qw8uS2s4BEiQA2bcfM4VbkvzjRAPq8R4d6vcobMEmyh2B88eW17SSWye_UMMaAkIY8P8HAQ)**
>
> Dit vind ik leuk. Zal ik dit kopen?

I do not know much about electronics and I would prefer not to kill my Photon and/or Pc 😄

Thanks!

---

<div class="post-metadata">

### Author: ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)
#### Post date: [August 30, 2016, 9:21am UTC](https://community.particle.io/t/use-particle-photon-to-turn-on-wifi-connected-pc/25459/2 "2016-08-30T09:21:13Z")

</div>

You need to use a relay (or a transistor).  
And with v0.6.0 you may even be able to do it via USB if your motherboard supports wake on HID (mouse or keyboard).

For the relay, you should choose one that can be driven with 5V max and will switch with a 3.3V HIGH signal.  
One of your relays needs 12V and the other is 5V but doesn’t state that you can use 3.3V on the `In` pin.  
But you can try, and if 3.3V is not enough use a transistor to trigger `In`.  
Or you search for a 3.3V relay.

---

<div class="post-metadata">

### Author: ![ltpitt](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/ltpitt/32/6710_2.png) [@ltpitt](https://community.particle.io/u/ltpitt)
#### Post date: [August 30, 2016, 9:36am UTC](https://community.particle.io/t/use-particle-photon-to-turn-on-wifi-connected-pc/25459/3 "2016-08-30T09:36:08Z")

</div>

Thanks for your input!

I have chosen the version with optoisolator:

> **[\[€2.51\] één kanaal 12v relais module w / opto-couplersisolation](https://www.miniinthebox.com/nl/een-kanaal-12v-relais-module-w-opto-couplersisolation_p2698639.html?currency=EUR&litb_from=paid_adwords_shopping&utm_source=google_shopping&utm_medium=cpc&adword_mt=&adword_ct=91410717844&adword_kw=&adword_pos=1o8&adword_pl=&adword_net=g&adword_tar=&adw_src_id=9626573769_378845404_25632896164_aud-72499240905:pla-77131067333&gclid=Cj0KEQjw3ZS-BRD1xu3qw8uS2s4BEiQA2bcfM4VbkvzjRAPq8R4d6vcobMEmyh2B88eW17SSWye_UMMaAkIY8P8HAQ)**
>
> Dit vind ik leuk. Zal ik dit kopen?

I hope it’ll work well 😄

---

<div class="post-metadata">

### Author: ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)
#### Post date: [August 30, 2016, 9:56am UTC](https://community.particle.io/t/use-particle-photon-to-turn-on-wifi-connected-pc/25459/4 "2016-08-30T09:56:34Z")

</div>

But that is the 12V relay, how will you be powering it?  
The 5V relay could be powered by the same 5V source as your Photon

---

<div class="post-metadata">

### Author: ![ltpitt](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/ltpitt/32/6710_2.png) [@ltpitt](https://community.particle.io/u/ltpitt)
#### Post date: [August 30, 2016, 10:48am UTC](https://community.particle.io/t/use-particle-photon-to-turn-on-wifi-connected-pc/25459/5 "2016-08-30T10:48:04Z")

</div>

Damn, that is true!

I just cared about the isolation…

I will contact the company and change the order, thanks for pointing this out.

---

<div class="post-metadata">

### Author: ![gusgonnet](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/gusgonnet/32/27491_2.png) [@gusgonnet](https://community.particle.io/u/gusgonnet)
#### Post date: [August 30, 2016, 2:04pm UTC](https://community.particle.io/t/use-particle-photon-to-turn-on-wifi-connected-pc/25459/6 "2016-08-30T14:04:15Z")

</div>

Hi, there’s a project in hackster that implemented a similar thing [in this link](https://www.hackster.io/keithmitchell/controlling-my-desktop-computer-with-ifttt-and-photon-259281?ref=search&ref_id=remote%20pc&offset=21).  
Hope it helps  
Gustavo.

---

<div class="post-metadata">

### Author: ![RWB](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/rwb/32/22599_2.png) [@RWB](https://community.particle.io/u/RWB)
#### Post date: [August 30, 2016, 2:12pm UTC](https://community.particle.io/t/use-particle-photon-to-turn-on-wifi-connected-pc/25459/7 "2016-08-30T14:12:34Z")

</div>

Here is another option for adding a relay. Not the cheapest solution but it has some benefits.

> **[2-Channel Relay Controller for Particle Photon](https://shop.controleverything.com/products/2-channel-relay-controller-particle-photon?variant=25687730891)**
>
> If you need cloud connectivity, you need Particle Photon! Take control of automation and sensing from anywhere in the world with this relay shield for Photon!\*

---

<div class="post-metadata">

### Author: ![ltpitt](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/ltpitt/32/6710_2.png) [@ltpitt](https://community.particle.io/u/ltpitt)
#### Post date: [October 12, 2016, 9:47am UTC](https://community.particle.io/t/use-particle-photon-to-turn-on-wifi-connected-pc/25459/8 "2016-10-12T09:47:40Z")

</div>

In case anybody in future is fighting with the same issue I’ve put my working code on GitHub with comments and instructions 😄

Have fun!

[https://github.com/ltpitt/arduino-photon-4-relays](https://github.com/ltpitt/arduino-photon-4-relays)

---

<div class="post-metadata">

### Author: ![Yorch](https://avatars.discourse-cdn.com/v4/letter/y/a5b964/32.png) [@Yorch](https://community.particle.io/u/Yorch)
#### Post date: [December 14, 2017, 7:46am UTC](https://community.particle.io/t/use-particle-photon-to-turn-on-wifi-connected-pc/25459/9 "2017-12-14T07:46:29Z")

</div>

how is this possible? I Want to make same 😕  
[https://carteryagemann.com/desktop-remote-switch.html](https://carteryagemann.com/desktop-remote-switch.html)

I do not want to regret having understood the particle photon  
Help please 😓

---

<div class="post-metadata">

### Author: ![Moors7](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/moors7/32/588_2.png) [@Moors7](https://community.particle.io/u/Moors7)
#### Post date: [December 14, 2017, 7:50am UTC](https://community.particle.io/t/use-particle-photon-to-turn-on-wifi-connected-pc/25459/10 "2017-12-14T07:50:17Z")

</div>

The article explains both how it works, and how it’s done, so I’m not exactly sure on your question. What exactly do you want to know?

---

<div class="post-metadata">

### Author: ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)
#### Post date: [December 14, 2017, 8:56am UTC](https://community.particle.io/t/use-particle-photon-to-turn-on-wifi-connected-pc/25459/11 "2017-12-14T08:56:57Z")

</div>

If it’s working on a Spark Core it will 99.9% work with its successor Particle Photon too.

Just as side note, you can even power the Photon from the ATX +5VSB line (purple cable) via Vin - and of course GND - to keep your USB ports free.

---

<div class="post-metadata">

### Author: ![ltpitt](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/ltpitt/32/6710_2.png) [@ltpitt](https://community.particle.io/u/ltpitt)
#### Post date: [December 14, 2017, 9:21am UTC](https://community.particle.io/t/use-particle-photon-to-turn-on-wifi-connected-pc/25459/12 "2017-12-14T09:21:11Z")

</div>

I’ve implemented this project with this hardware:

> **[\[€3.28\] 4 kanaals 12v laag niveau trekker relaismodule voor (voor Arduino)...](https://www.miniinthebox.com/nl/4-kanaals-12v-low-level-trigger-relais-module-voor-arduino-werkt-met-de-officiele-arduino-boards_p903435.html?currency=EUR&litb_from=paid_adwords_shopping&country_code=nl&utm_source=google_shopping&utm_medium=cpc&adword_mt=&adword_ct=202576941343&adword_kw=&adword_pos=1o1&adword_pl=&adword_net=g&adword_tar=&adw_src_id=23901035451_866085814_43425469413_aud-296910956553:pla-328087415186&gclid=Cj0KCQiA38jRBRCQARIsACEqIeuVSdFs0wnseXVxn8tR_XgHKLigSa8MZSPbsRCELM81kzH_FeryR9YaAj3WEALw_wcB)**
>
> Dit vind ik leuk. Zal ik dit kopen?

I’ve preferred this approach to keep the Particle electrically isolated from the Pc.

If you need help in implementing plese write about your doubts.

---

<div class="post-metadata">

### Author: ![Yorch](https://avatars.discourse-cdn.com/v4/letter/y/a5b964/32.png) [@Yorch](https://community.particle.io/u/Yorch)
#### Post date: [December 14, 2017, 6:18pm UTC](https://community.particle.io/t/use-particle-photon-to-turn-on-wifi-connected-pc/25459/13 "2017-12-14T18:18:18Z")

</div>

565/5000  
I failed to mention that I did everything exactly as the instructions say and my PC did not turn on, in fact I contacted the author of the post and he said that it is possibly the model of my motherboard that causes me not to turn on my PC, my question is that yes regardless of the post mentioned above, if it is possible to turn on or wake on my PC from anywhere in the world with my particle photon ?, I’m a developer and I have very little knowledge in electronics, I need to work with a remote desktop, I hope you can help me with my problem please 😕

---

<div class="post-metadata">

### Author: ![Yorch](https://avatars.discourse-cdn.com/v4/letter/y/a5b964/32.png) [@Yorch](https://community.particle.io/u/Yorch)
#### Post date: [December 14, 2017, 6:18pm UTC](https://community.particle.io/t/use-particle-photon-to-turn-on-wifi-connected-pc/25459/14 "2017-12-14T18:18:52Z")

</div>

No mencioné que hice todo exactamente como dicen las instrucciones y mi PC no se activó , de hecho me puse en contacto con el autor de la publicación y me dijo que es posiblemente el modelo de mi placa base lo que me provoca no enciendo mi PC, mi pregunta es sí, independientemente de la publicación mencionada anteriormente, si es posible encender o despertar en mi PC desde cualquier parte del mundo con mi fotón de partículas, soy desarrollador y tengo muy poco conocimiento en electrónica, necesito trabajar con un escritorio remoto, espero que puedan ayudarme con mi problema, por favor:confuso:

---

<div class="post-metadata">

### Author: ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)
#### Post date: [December 14, 2017, 6:41pm UTC](https://community.particle.io/t/use-particle-photon-to-turn-on-wifi-connected-pc/25459/15 "2017-12-14T18:41:04Z")

</div>

My Spanish is not good enough to reply - I could in German tho’ -, but if you can state the model of the motherboard we may be able to confirm that assumption.  
If your PC isn’t from the 90s or doesn’t adhere to the ATX standard it should be possible IMO.

Another option is to set the BIOS so that the PC boots up after power comes back after a powerloss then you could just use a relay to switch the mains.

---

<div class="post-metadata">

### Author: ![gusgonnet](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/gusgonnet/32/27491_2.png) [@gusgonnet](https://community.particle.io/u/gusgonnet)
#### Post date: [December 15, 2017, 2:23am UTC](https://community.particle.io/t/use-particle-photon-to-turn-on-wifi-connected-pc/25459/16 "2017-12-15T02:23:11Z")

</div>

> [@ScruffR](#):
>
> My Spanish is not good enough to reply - I could in German tho'

show off! hehe  
He basically wrote in spanish what he wrote [in his previous post right above in english](https://community.particle.io/t/use-particle-photon-to-turn-on-wifi-connected-pc/25459/13).  
Cheers, Gustavo.

---

<div class="post-metadata">

### Author: ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)
#### Post date: [December 15, 2017, 7:06am UTC](https://community.particle.io/t/use-particle-photon-to-turn-on-wifi-connected-pc/25459/17 "2017-12-15T07:06:28Z")

</div>

😊 I didn’t read the post above - silly me 😳

BTW, German is my first language, I just plod along in English here as this is the forum language 😉

---

<div class="post-metadata">

### Author: ![Moors7](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/moors7/32/588_2.png) [@Moors7](https://community.particle.io/u/Moors7)
#### Post date: [December 15, 2017, 7:47am UTC](https://community.particle.io/t/use-particle-photon-to-turn-on-wifi-connected-pc/25459/18 "2017-12-15T07:47:39Z")

</div>

> [@Yorch](#):
>
> it is possible to turn on or wake on my PC from anywhere in the world with my particle photon ?

Yes it is, but we'd need to know what hardware you've got. What motherboard do you have? How have you hooked it up? Could you get us some images of the connections?

If you don't want to mess with the electronics of your computer, you could always put a servo on your on/off switch and trigger it that way...

* * *

> [@ScruffR](#):
>
> BTW, German is my first language, I just plod along in English here as this is the forum language 😉

Though I _could_ do German, the grammar would be horrible, so let's stick to English 😇
