Dear all,
I bought a footswitch for my Arduino that I want to use for A/B modes. Let's keep it simple: mode A means LED on, mode B means LED off. However, I am wondering how the pins are correctly assigned - every tutorial I could find have a different amount of pins. Please see the attachment for an image of my footswitch.
Can someone please tell me how I have to assign the pins in order to achieve the above mentioned goal? This is my very first project and the search function didn't help either.
Thanks in advance!
To do what you want you only need to use one Arduino pin for input and one for output (or use the built in LED on pin 13) Use 2 connections on the switch that are closed when the switch is pressed
See the Button example in the IDE.
The latching switches with 3 connections have a common, NO,NC. Check for markings on the switch, if you’re not sure use a meter to it and check continuity.
UKHeliBob:
To do what you want you only need to use one Arduino pin for input and one for output (or use the built in LED on pin 13) Use 2 connections on the switch that are closed when the switch is pressed
See the Button example in the IDE.
It worked! Thank you very much!