Momentary switch and Pot on same control pin ?

Hardware questions and issues with the FV-1

Moderator: frank

Post Reply
ice-nine
Posts: 192
Joined: Thu May 24, 2012 9:03 am

Momentary switch and Pot on same control pin ?

Post by ice-nine »

I'm looking into laying out a PCB for a tap tempo delay using a momentary switch to control the tap on one of the control pins but also want to use a pot on the same control pin for manual adjustment of the delay.

What would I need to consider hardware wise. The issue that first springs to mind is with the pot set to either of its extremes say 3.3v at the wiper, stomping on the switch connected to the same control pin to ground will cause a short. Is there anything else I need to watch out for.
slacker
Posts: 116
Joined: Tue Feb 01, 2011 1:13 pm

Post by slacker »

You can isolate the pot so the switch won't cause a short, run two resistors in series between the pot wiper and the pot input, your switch goes to the junction of the two resistors. This is what I do in my babelfish, copied from the guitar amp appnote.
The other issue is, say your switch is to ground, if the pot is turned all the way down, the input is already grounded so the switch won't do anything. You could, put a resistor between the bottom of the pot and ground, so in effect the pot doesn't turn all the way down. Your code can then dedect when the switch pulls the input below this level.
ice-nine
Posts: 192
Joined: Thu May 24, 2012 9:03 am

Post by ice-nine »

Thanks Slacker, that's exactly the info I was looking for. I had found the info on the split resistor to switch in the guitar app schematic which was also in one of your posts relating to tap tempo that I found, but I was not sure how to tackle the pot to ground issue. Cheers.

I'm thinking of using the 8 eeprom programs for different tap settings rather than pot skip routines and a separate pot for mix, which would leave me with a spare FV-1 pot to use maybe for a tone/filter control on the feedback. Just a thought.
Sweetalk
Posts: 141
Joined: Thu Oct 15, 2009 5:13 am

Post by Sweetalk »

slacker wrote:You can isolate the pot so the switch won't cause a short, run two resistors in series between the pot wiper and the pot input, your switch goes to the junction of the two resistors. This is what I do in my babelfish, copied from the guitar amp appnote.
The other issue is, say your switch is to ground, if the pot is turned all the way down, the input is already grounded so the switch won't do anything. You could, put a resistor between the bottom of the pot and ground, so in effect the pot doesn't turn all the way down. Your code can then dedect when the switch pulls the input below this level.
I'm using this too, you need to find the both ends of the pot that makes the switch work, put some resistors so the pot reaches both ends and then in the FV-1 adapt the scale for a full range.
Digital Larry
Posts: 338
Joined: Mon Nov 12, 2012 1:12 pm
Contact:

Post by Digital Larry »

You could also use an SPDT switch.

Code: Select all

               /o-------- Pot wiper
FV-1 ------o/
                o-------- Ground
Sweetalk
Posts: 141
Joined: Thu Oct 15, 2009 5:13 am

Post by Sweetalk »

Digital Larry wrote:You could also use an SPDT switch.

Code: Select all

               /o-------- Pot wiper
FV-1 ------o/
                o-------- Ground
Yeah, but if the pot wiper is near ground the switch doesn't affect anything and you can't detect if the ground (or near ground) is because the pot it's near 0 or the switch is pressed.
Digital Larry
Posts: 338
Joined: Mon Nov 12, 2012 1:12 pm
Contact:

Post by Digital Larry »

Sweetalk wrote:
Yeah, but if the pot wiper is near ground the switch doesn't affect anything and you can't detect if the ground (or near ground) is because the pot it's near 0 or the switch is pressed.
You got me there!
Post Reply