# Potentiometer toggle switch

**URL:** <https://forum.core-electronics.com.au/t/potentiometer-toggle-switch/8382>\
**Category:** Arduino\
**Created:** [13 September 2020 03:28 UTC](https://forum.core-electronics.com.au/t/potentiometer-toggle-switch/8382 "2020-09-13T03:28:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gavin137381](https://avatars.discourse-cdn.com/v4/letter/g/9d8465/32.png) [@gavin137381](https://forum.core-electronics.com.au/u/gavin137381)\
**Post date:** [13 September 2020 03:28 UTC](https://forum.core-electronics.com.au/t/potentiometer-toggle-switch/8382/1 "2020-09-13T03:28:06Z")

</div>

Hi there  
Im currently trying to get a potentiometer to turn on and off 4 led lights in a sequence  
I want to be able to turn the potentiometer so it turns on one led at 2-5 volts then when I turn it back I want the led to turn off at below 2 volts  
but when I turn the potentiometer back on a second time i want it to do the same but for the second led then the third and forth then start over  
it sounds simple enough but i haven’t had any luck in doing so

i want to be able to drive 4 spark plug coils sequentially off one input from the ecu on my car and getting this circuit to work on a breadboard will be a good starting point

cheers

---

<div class="post-metadata">

**Author:** ![Bryce](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/bryce/32/3631_2.png) [@Bryce](https://forum.core-electronics.com.au/u/Bryce)\
**Post date:** [15 September 2020 01:12 UTC](https://forum.core-electronics.com.au/t/potentiometer-toggle-switch/8382/2 "2020-09-15T01:12:02Z")

</div>

Hi Gavin,

You could definitely set that up, but personally, I’d say it would be much simpler to achieve that sequence using _analogRead()_ and then writing a simple script on an Arduino such as that linked below to set this one up with any sequences that you’d like. If there’s anything else that we can do for you please let us know!

> **[Uno R3](https://core-electronics.com.au/uno-r3.html)**
>
> The Uno is a microcontroller board based on the ATmega328. It has 14 digital input/output pins (of which 6 can be used as PWM outputs), 6 analogue inputs, a 16 MHz crystal oscillator, a USB connection, a power jack, an ICSP header, and a reset...

> **[Arduino Workshop for Beginners - Tutorial](https://core-electronics.com.au/tutorials/arduino/arduino-workshop-for-beginners.html)**
>
> Welcome to the Arduino Workshop, where you'll be able to follow our guided course which covers everything you'll need to know in order to create your own Arduino projects and become a leveled up maker. My name is Sam and along with being a maker...

Bryce  
Core Electronics | Support

---

<div class="post-metadata">

**Author:** ![gavin137381](https://avatars.discourse-cdn.com/v4/letter/g/9d8465/32.png) [@gavin137381](https://forum.core-electronics.com.au/u/gavin137381)\
**Post date:** [15 September 2020 02:55 UTC](https://forum.core-electronics.com.au/t/potentiometer-toggle-switch/8382/3 "2020-09-15T02:55:41Z")

</div>

Thanks I’ll have a look at it tonight
