First - and very important! - thing; I am NOT looking to have Analog and Digital through one socket at the same time - I just couldn't think of a better wording for the title!
I am currently building a MIDI controller using a Teensy 3.2. One of the 'features' I am looking to add is a 1/4" jack that could take input either from an external 2 button controller or from an external expression pedal. The idea is that the program would usually be set up to read one or the other (haven't decided which yet) but if a button on the main controller is held down on startup it switches to the other instead.
What I would like to know is:
- The external expression pedal won't be enormously high resolution - all readings will be converted to 0-127 MIDI once 'inside' - is it sill best to use AGND for this connection?
- In order to switch between digital and analog readings is it OK to use AGND with the input pin set to DIGITAL_READ? If that setting were active there would be no other analog readings happening; so AGND would only ever be used only for analog or only for digital, not a mix of both. As AGND and GND are, I believe, tied together internally with a ferrite and some other bits I think this is OK but wanted to confirm.
Cheers!
I am currently building a MIDI controller using a Teensy 3.2. One of the 'features' I am looking to add is a 1/4" jack that could take input either from an external 2 button controller or from an external expression pedal. The idea is that the program would usually be set up to read one or the other (haven't decided which yet) but if a button on the main controller is held down on startup it switches to the other instead.
What I would like to know is:
- The external expression pedal won't be enormously high resolution - all readings will be converted to 0-127 MIDI once 'inside' - is it sill best to use AGND for this connection?
- In order to switch between digital and analog readings is it OK to use AGND with the input pin set to DIGITAL_READ? If that setting were active there would be no other analog readings happening; so AGND would only ever be used only for analog or only for digital, not a mix of both. As AGND and GND are, I believe, tied together internally with a ferrite and some other bits I think this is OK but wanted to confirm.
Cheers!