Types of Switches?


#1

So I'm starting to get together ideas for a case for my Axo so I can add it to my Pedalboard - was thinking of having a few foot switches both momentary and latching for different purposes but can't seem to find what type of switches work best or any kind of wiring diagrams.

Would usual DPDT switches work? Was thinking of ordering from here: https://www.mammothelectronics.com/collections/footswitches

As for the wiring, Is it just as simple as going from the the VDD -> Switch then switch -> axo in, like PA1? I can't seem to find just a simple diagram, everything is much more in depth haha

Looking forward to moving my tap tempo to a foot switch and a few other controls down there. maybe even some analog pots for effects, will have to see what I can fit in this temporary case I'm gonna cut up


Hmm...I guess I just didn't understand this thread (https://sebiik.github.io/community.axoloti.com.backup/t/official-pin-outs-revised-work-in-progress/1284) the first time I read it...I think I got it now though. So connected VDDC to a DPDT as well as to Ground and PB1 would map the switch to GPIOB,1 correct? Would a SPST switch work just connecting VDDC to PB1 where its normally off or should I stick with a DPDT so the ground is connected as well? Think I have a DPDT Momentary on my desk at home I can try out later just do not want to damange anything


#2

Connecting a switch is as simple as VDD -> switch -> GPIO IN.
As for momentary and latching, if you are connecting them to the GPIO on the Axo, I would recommend momentary only, reason being, there is a simple object in the patcher to make a momentary into latching if required, this way you have the flexibility to use a momentary any way you like. In the patcher you can even invert them so you can have four types of action.

The official pin outs post is a great place for guidance, you might want to tinker and test before you build to help understand how it all works..
:grin:


#3

Thanks! Didn't know you can use all momentary and set them for latching in the patcher - super helpful!

Yeah, my plan right now is just getting my axo into a sloppy plastic box I can mount some foot switches on to start - once I get things set up the way I want I am going to look into a permanent metal enclosure that'll be more durable.

I'm sure I'll have plenty more questions as I make progress! haha

Edit: Would these SPST momentary switches work? https://www.mammothelectronics.com/collections/footswitches/products/kfsspst-mb Or will I still need ones I can connect a ground to to avoid any hum/interference or anything? This is my first project working from a board rather than just wiring up my guitar


#4

Those switches are fine.
They won't need to connect to ground, just connect as shown in the official pin outs post.
If you are getting hum or interference, it shouldn't have anything to do with the footswitches unless somewhere in your circuit you have connected into the audio by accident. All the footswitch does is sends a high or low signal (3.3v for high, 0 volts for low), and the object code connected to the GPIO pin will react depending on weather it is high or low.
:grin:


#5

perfect, thanks for the help!


#6

Hey now, got a box set up with 8 foot switches all working and am pretty siked! Set it up Saturday and got to bring it out to a jam on Sunday and use it and it worked great!

A few questions

  1. Here is the GPIO object I am using:

How can I use these to latch rather than momentary? I tried the different modes but was not able to get it figured out

  1. Where can I buy the pin adapter to solder onto the axo GPIO inputs? Currently I just have my wires temporarily connected but figure I'll be continually changing things I'd rather just put the adapter on there so I can just use the breadboard pin wires

Thanks again for the help!


#7

To make the button latch, you can use a counter set to 2, and output it to a mux or demux depending on what you need the switch to do.

You can buy pin headers in any electronics shop. Or even on Amazon and eBay.


#8

awesome - thanks! Gonna update my patch and probably start figuring out plans for a case to get laser cut


#9

i would suspect that the logic/toggle object is the cheapest way to get latching behaviour from a switch:


#10

I prefer the counter in this situation since you can easily extend it to work with a mux/demux 6 to go through presets for guitar fx.