# Rotary Encoder Push Button

**URL:** <https://forum.core-electronics.com.au/t/rotary-encoder-push-button/17742>\
**Category:** Raspberry Pi\
**Created:** [7 August 2023 00:52 UTC](https://forum.core-electronics.com.au/t/rotary-encoder-push-button/17742 "2023-08-07T00:52:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shane53869](https://avatars.discourse-cdn.com/v4/letter/s/bb73d2/32.png) [@Shane53869](https://forum.core-electronics.com.au/u/Shane53869)\
**Post date:** [7 August 2023 00:52 UTC](https://forum.core-electronics.com.au/t/rotary-encoder-push-button/17742/1 "2023-08-07T00:52:51Z")

</div>

Hi all,

Thanks in advance for anyone who sees this and can assist.

I previously purchased a few of these rotary encoders ([Rotary Encoder + Extras | Adafruit ADA377 | Core Electronics Australia](https://core-electronics.com.au/rotary-encoder-extras.html)) for a project I’m working on, but was curious to know if I could use the push button on these guys to light up an LED.

If this is indeed possible, what would the wiring look like if I’m looking to run this off a Raspberry Pi Zero.

Thanks

---

<div class="post-metadata">

**Author:** ![Robert93820](https://avatars.discourse-cdn.com/v4/letter/r/ac91a4/32.png) [@Robert93820](https://forum.core-electronics.com.au/u/Robert93820)\
**Post date:** [7 August 2023 01:00 UTC](https://forum.core-electronics.com.au/t/rotary-encoder-push-button/17742/2 "2023-08-07T01:00:28Z")

</div>

Hi Shane  
The switch is a stand alone Normally Open (NO) switch and you can do what you like with it within current limitations. LED current would be OK.

If you just want to light a LED…The wiring could look something like this.  
Power - current limiting resistor - LED - one side of switch. Other side of switch - Ground.  
The components can be put in any order anywhere you like in the circuit as long as they are in series.  
Cheers Bob

---

<div class="post-metadata">

**Author:** ![Liam](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/liam/32/3562_2.png) [@Liam](https://forum.core-electronics.com.au/u/Liam)\
**Post date:** [8 August 2023 02:39 UTC](https://forum.core-electronics.com.au/t/rotary-encoder-push-button/17742/3 "2023-08-08T02:39:15Z")

</div>

Hi Shane,

Bob’s got the best way to connect in a momentary style button, were you after a toggle?  
If so I’d check out the Raspberry Pi online course: [https://core-electronics.com.au/courses/raspberry-pi-workshop-for-beginners/#ch2](https://core-electronics.com.au/courses/raspberry-pi-workshop-for-beginners/#ch2)

Liam

---

<div class="post-metadata">

**Author:** ![Shane53869](https://avatars.discourse-cdn.com/v4/letter/s/bb73d2/32.png) [@Shane53869](https://forum.core-electronics.com.au/u/Shane53869)\
**Post date:** [12 August 2023 07:26 UTC](https://forum.core-electronics.com.au/t/rotary-encoder-push-button/17742/4 "2023-08-12T07:26:17Z")

</div>

Thanks Bob, and thanks Liam for the quality and speedy guidance.

I am indeed looking to use this as a toggle, to simply turn an LED (or two or three) and off.

I’ll check out the tutorial and that will no doubt get me sorted.

Thanks again.
