## how footswitch work ? 5 years 4 months ago #732

 Drwhite0910 OFFLINE New Member Posts: 3 Karma: 0 hi i'm have a problem about the process of footswitch . where a part of footswitch logic ? . i'm just see a part of setup like pinmode / define of footswitch The administrator has disabled public write access.

## how footswitch work ? 5 years 4 months ago #733

 BowDown OFFLINE Senior Member Posts: 55 Thank you received: 6 Karma: 2 As far as i know, footswitch is true bypass. Meaning, if its set to bypass mode, the signal will go from the input directly to the output of pedalshield, thus there is no need for software programming. Last Edit: 5 years 4 months ago by BowDown. The administrator has disabled public write access.

## how footswitch work ? 5 years 4 months ago #734

 Ray OFFLINE Moderator Posts: 702 Thank you received: 152 Karma: 44 yes, as nik said it is true bypass, meaning that when the effect is off or bypassed the guitar signal goes straight from input to output. The pin7 of the DUE will "feel" when the 3pdt footswitch is activated or not, the pin will be high when the effect is not working and low when is on. You can have a look at this for more info: www.electrosmash.com/forum/pedalshield-u...shooting?lang=en#535 The administrator has disabled public write access.

## how footswitch work ? 5 years 4 months ago #736

 BowDown OFFLINE Senior Member Posts: 55 Thank you received: 6 Karma: 2 Can you describe how a 3pdt footswitch is wired? There are 9 pins but from the picture in the forum link you provided, only 6 are used... I found this image searching for this topic.. But this image made matters even more weird... The administrator has disabled public write access.

## how footswitch work ? 5 years 3 months ago #737

 Ray OFFLINE Moderator Posts: 702 Thank you received: 152 Karma: 44 I hope this image helps you: - The green is the signal flow then the effect is not working (true bypass mode). - The red flow is when the pedal is engaged. The 3PDT works connecting the middle row pins with the top pins or bottom pins depending if is pushed or not, check this again: www.electrosmash.com/forum/pedalshield-u...shooting?lang=en#535 The administrator has disabled public write access.

## how footswitch work ? 4 years 5 months ago #1172

 Bruno OFFLINE New Member Posts: 7 Karma: 0 And how exactly does the pin7 know that it is active ? The administrator has disabled public write access.

## how footswitch work ? 4 years 5 months ago #1173

 Ray OFFLINE Moderator Posts: 702 Thank you received: 152 Karma: 44 And how exactly does the pin7 know that it is active ?The pin 7 has an internal pull-up, it is there by default, you dont need to define it, but in all the codes compressed in the rar file in www.electrosmash.com/forum/software-peda...-pedalshield?lang=en (I suggest you to use this codes, they are the latest and greatest) are defined to make it more clear like:int FOOTSWITCH = 7; pinMode(FOOTSWITCH, INPUT_PULLUP); So if you see, the hole circuit will be something like this: Son when it is pushed, the pin 7 is connected to ground (and the Arduino reads a '0') and when is not pushed the arduino sees the pull-up resistor which is 3V3. In the code is detected like this://Turn on the LED if the effect is ON. if (digitalRead(FOOTSWITCH)) digitalWrite(LED, HIGH); // effect ON else digitalWrite(LED, LOW); //effect OFF Last Edit: 4 years 5 months ago by Ray. The administrator has disabled public write access. The following user(s) said Thank You: Bruno
Time to create page: 0.172 seconds
Joomla SEF URLs by Artio