# External setup button for Electron

**URL:** <https://community.particle.io/t/external-setup-button-for-electron/37841>\
**Category:** Hardware\
**Created:** [December 3, 2017, 10:41pm UTC](https://community.particle.io/t/external-setup-button-for-electron/37841 "2017-12-03T22:41:12Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![cliquot22](https://avatars.discourse-cdn.com/v4/letter/c/8edcca/32.png) [@cliquot22](https://community.particle.io/u/cliquot22)\
**Post date:** [December 3, 2017, 10:41pm UTC](https://community.particle.io/t/external-setup-button-for-electron/37841/1 "2017-12-03T22:41:12Z")

</div>

Is there a way to access the setup button using a remote / external button instead of the one on the board? I found a post for the photo ([External setup button](https://community.particle.io/t/external-setup-button/14295)) but I need the same thing for the electron.

If I can do this, and connect the RST pin to an external button, and use the mirrorTo() function I should be able to control the electron without physical access to the board.

Thanks.

---

<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:** [December 3, 2017, 10:53pm UTC](https://community.particle.io/t/external-setup-button-for-electron/37841/2 "2017-12-03T22:53:08Z")

</div>

You can’t use the RST button for anything other than RESET.

You can reuse the Setup button for another purpose.

You can also call setup via code.

---

<div class="post-metadata">

**Author:** ![cliquot22](https://avatars.discourse-cdn.com/v4/letter/c/8edcca/32.png) [@cliquot22](https://community.particle.io/u/cliquot22)\
**Post date:** [December 4, 2017, 1:15am UTC](https://community.particle.io/t/external-setup-button-for-electron/37841/3 "2017-12-04T01:15:06Z")

</div>

I don’t want to change the function of the buttons. I want to make them remote so I can get at them without having direct access to the board.

---

<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:** [December 4, 2017, 2:41am UTC](https://community.particle.io/t/external-setup-button-for-electron/37841/4 "2017-12-04T02:41:47Z")

</div>

Yes, you can do that without any problems.

You just need a button to that feed those pins to GND to activate them.

![](https://us1.discourse-cdn.com/flex026/uploads/particle/original/3X/1/0/10e59f365b344ecce7d1bfc7def02fc2efbd7bde.jpg)

---

<div class="post-metadata">

**Author:** ![cliquot22](https://avatars.discourse-cdn.com/v4/letter/c/8edcca/32.png) [@cliquot22](https://community.particle.io/u/cliquot22)\
**Post date:** [December 4, 2017, 3:59am UTC](https://community.particle.io/t/external-setup-button-for-electron/37841/5 "2017-12-04T03:59:47Z")

</div>

Where is the SETUP pin? Which number?

Thanks for the circuit diagram. That is useful. I think the RST pin has an internal pullup but I’ll add the capacitor for stability. I assume the SETUP pin should be the same.

---

<div class="post-metadata">

**Author:** ![kolban](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/kolban/32/16085_2.png) [@kolban](https://community.particle.io/u/kolban)\
**Post date:** [December 4, 2017, 4:55am UTC](https://community.particle.io/t/external-setup-button-for-electron/37841/6 "2017-12-04T04:55:26Z")

</div>

The previous diagram seemed to related to the Photon … see:

[https://docs.particle.io/datasheets/photon-(wifi)/photon-datasheet/#schematic-user-i-o](https://docs.particle.io/datasheets/photon-(wifi)/photon-datasheet/#schematic-user-i-o)

when we look at the data sheet for the [Electron](https://docs.particle.io/datasheets/electron-(cellular)/electron-datasheet/) we don’t seem to see the same / similar description of the buttons. However, it wouldn’t be a stretch to assume that the schematics would be close/identical. If we look at the schematic found in the electron we see the following:

[https://docs.particle.io/datasheets/electron-(cellular)/electron-datasheet/#microcontroller](https://docs.particle.io/datasheets/electron-(cellular)/electron-datasheet/#microcontroller)

This seems to show that there are two pins of interest to us called SETUP (38, PC7) and RST (7, NRST). However, when I say “pins”, I mean pins exposed by the integrated circuit and not pins exposed by the module. My guess is that RST is exposed as a module pin but SETUP is not. What that would mean is that short of mechanically attaching new wires to your Electron module, there would be no way to use the existing GPIO pins to cause a “setup” button to be electrically triggered.

---

<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:** [December 4, 2017, 5:48am UTC](https://community.particle.io/t/external-setup-button-for-electron/37841/7 "2017-12-04T05:48:06Z")

</div>

Good catch.

On the Photon you can get access to the setup pin on the bottom exposed pad of the board.

On the Electron I'm pretty sure you can map the current setup button to an exposed pin of the Electron to achieve the same thing although it's not well documented. See below:

> [@Does the Electron support external interrupts?](https://community.particle.io/t/does-the-electron-support-external-interrupts/35913/2):
>
> Yup, the docs lag behind a few years here flushed The list of availabe interrupt pins for the Electron is similar to the Photon’s. To know which pins share EXTI lines with other pins you’d need to look at the GPIO numbers in the pin overview in the datasheets where Px## stands for Port x bit ## and all bits with the same number share the same EXTI line across all ports. So out of Ports A, B, C & D only one ## can have an independent interrupt assigned. e.g. for the Photon you read D0 and A…

---

<div class="post-metadata">

**Author:** ![cliquot22](https://avatars.discourse-cdn.com/v4/letter/c/8edcca/32.png) [@cliquot22](https://community.particle.io/u/cliquot22)\
**Post date:** [December 4, 2017, 5:08pm UTC](https://community.particle.io/t/external-setup-button-for-electron/37841/8 "2017-12-04T17:08:39Z")

</div>

Browsing through the documentation on interrupts I came across the function that I am looking for: buttonMirror(). This should allow me to move the setup button to a remote location.
