Welcome, Guest
Username: Password: Remember me

TOPIC: how footswitch work ?

how footswitch work ? 2 years 1 month ago #732

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 ? 2 years 1 month ago #733

  • BowDown
  • BowDown's Avatar
  • 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: 2 years 1 month ago by BowDown.
The administrator has disabled public write access.

how footswitch work ? 2 years 1 month ago #734

  • Ray
  • Ray's Avatar
  • NOW ONLINE
  • Moderator
  • Posts: 599
  • Thank you received: 137
  • Karma: 37
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 ? 2 years 1 month ago #736

  • BowDown
  • BowDown's Avatar
  • 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 ? 2 years 1 month ago #737

  • Ray
  • Ray's Avatar
  • NOW ONLINE
  • Moderator
  • Posts: 599
  • Thank you received: 137
  • Karma: 37
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.


3pdt.jpg



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
3pdt.jpg
The administrator has disabled public write access.

how footswitch work ? 1 year 3 months ago #1172

  • Bruno
  • Bruno's Avatar
  • 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 ? 1 year 3 months ago #1173

  • Ray
  • Ray's Avatar
  • NOW ONLINE
  • Moderator
  • Posts: 599
  • Thank you received: 137
  • Karma: 37
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:

3pdtworks.jpg


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: 1 year 3 months ago by Ray.
The administrator has disabled public write access.
The following user(s) said Thank You: Bruno
Time to create page: 0.160 seconds
Powered by Kunena Forum
Joomla SEF URLs by Artio