# Wake up a Photon using different inputs

**URL:** <https://community.particle.io/t/wake-up-a-photon-using-different-inputs/41927>\
**Category:** Firmware\
**Created:** [May 20, 2018, 7:39pm UTC](https://community.particle.io/t/wake-up-a-photon-using-different-inputs/41927 "2018-05-20T19:39:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![estebitfan](https://avatars.discourse-cdn.com/v4/letter/e/f04885/32.png) [@estebitfan](https://community.particle.io/u/estebitfan)\
**Post date:** [May 20, 2018, 7:39pm UTC](https://community.particle.io/t/wake-up-a-photon-using-different-inputs/41927/1 "2018-05-20T19:39:30Z")

</div>

Hello everyone,

First post.  
I have two questions regarding “Waking-up” the photon. I am writing down a program where I use 4 different inputs that will increment independent counters every time the input for that specific pin change states. In the meanwhile no inputs are changing I would like to put my photon into Deep-sleep or send it to sleep using “System.sleep(wakeUpPin, edgeTriggerMode, seconds);” But I would like to wake it up using any of my 4 inputs, not only the one you assign in that instruction.  
First: Is there a way of doing that?  
Second: How much power should be consuming when you send the photon to sleep using “System.sleep(wakeUpPin, edgeTriggerMode, seconds);” ?

Thank you All!

---

<div class="post-metadata">

**Author:** ![rickkas7](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/rickkas7/32/8681_2.png) [@rickkas7](https://community.particle.io/u/rickkas7)\
**Post date:** [May 20, 2018, 7:59pm UTC](https://community.particle.io/t/wake-up-a-photon-using-different-inputs/41927/2 "2018-05-20T19:59:13Z")

</div>

You can only wake up from SLEEP\_MODE\_DEEP using the WKP pin. It’s a hardware limitation of the STM32F2xx processors.

Starting with system firmware 0.8.0-rc.2 you can stop mode sleep (pin + time) on multiple pins, and find out which pin caused the wakeup. The [feature is described here](https://github.com/particle-iot/firmware/pull/1410).

The power consumption in stop mode sleep (pin + time) should be a 1-2 mA, according to [the datasheet](https://docs.particle.io/datasheets/photon-(wifi)/photon-datasheet/#technical-specification).

---

<div class="post-metadata">

**Author:** ![estebitfan](https://avatars.discourse-cdn.com/v4/letter/e/f04885/32.png) [@estebitfan](https://community.particle.io/u/estebitfan)\
**Post date:** [May 20, 2018, 8:11pm UTC](https://community.particle.io/t/wake-up-a-photon-using-different-inputs/41927/3 "2018-05-20T20:11:53Z")

</div>

Thank you! Really helpful!
