Thundercat
Well-known member
Hey all, was considering adding a pedal input to some MIDI faders that use a Teensy 4.1. I'd like the pedal input to accommodate lots of different pedals if possible. But as many of you may know, some pedals reverse wiper/positive, and this can't be fixed in software.
Or can it?
I read a bunch, and then stumbled on a post mentioning using a digital write output for a 3.3V source.
I thought, could I get away with using one pin as a digital output pin, outputting HIGH to serve as the 3.3V source, with another pin as an analog input for the wiper...and then in software, provide a way for the user to switch these, flipping their functions (and thus obviating the need for an external switch to do same)?
Seems to me this could be a clever way of avoiding an additional switch...
I'm not clear yet if this will work.
Here's some supporting pix:
(Link to page with this post is here: https://community.gigperformer.com/t/yamaha-fc7-pedal-compatibility/8242)
I'd like to be able to support all the pedals listed.
Here's a Neutrik jack I'd use:
Also I'd like to add the ability to detect if a pedal is attached, which I was thinking about using one of the switched TRS jacks and using another Teensy pin to detect if one of the circuits is opened.
Perhaps I could use the S/SN pair essentially as a button that is closed, and when the jack is first inserted and the circuit opens, then read the open circuit...
Also there's the concern that not all pedals are the same - some are 10K; others are 50K or even 100K. Not sure how I could handle all those variations, or if it's wise to even try...I'd for sure like to support the FC7 since it's such a standard though.
Sorry this is still in the fuzzy stage but I really think there's some potential here. Any dangers of damaging the Teensy if something is inserted halfway or wrong while the Teensy is on? Or if a mono 1/4" jack is inserted instead of a stereo jack? Any additional resistors I'd want to consider adding for protection? Already I thought of adding some capacitance to the Tip to Ground and Ring to Ground, which would support both use cases if the pins were used as digital voltage source or analog input.
Also probably a dumb question but the Ground connection should definitely go to the Teensy, and not rely on just a chassis connection, correct?
Thanks for any insights anyone may have.
Mike
Or can it?
I read a bunch, and then stumbled on a post mentioning using a digital write output for a 3.3V source.
I thought, could I get away with using one pin as a digital output pin, outputting HIGH to serve as the 3.3V source, with another pin as an analog input for the wiper...and then in software, provide a way for the user to switch these, flipping their functions (and thus obviating the need for an external switch to do same)?
Seems to me this could be a clever way of avoiding an additional switch...
I'm not clear yet if this will work.
Here's some supporting pix:
(Link to page with this post is here: https://community.gigperformer.com/t/yamaha-fc7-pedal-compatibility/8242)
I'd like to be able to support all the pedals listed.
Here's a Neutrik jack I'd use:
Also I'd like to add the ability to detect if a pedal is attached, which I was thinking about using one of the switched TRS jacks and using another Teensy pin to detect if one of the circuits is opened.
Perhaps I could use the S/SN pair essentially as a button that is closed, and when the jack is first inserted and the circuit opens, then read the open circuit...
Also there's the concern that not all pedals are the same - some are 10K; others are 50K or even 100K. Not sure how I could handle all those variations, or if it's wise to even try...I'd for sure like to support the FC7 since it's such a standard though.
Sorry this is still in the fuzzy stage but I really think there's some potential here. Any dangers of damaging the Teensy if something is inserted halfway or wrong while the Teensy is on? Or if a mono 1/4" jack is inserted instead of a stereo jack? Any additional resistors I'd want to consider adding for protection? Already I thought of adding some capacitance to the Tip to Ground and Ring to Ground, which would support both use cases if the pins were used as digital voltage source or analog input.
Also probably a dumb question but the Ground connection should definitely go to the Teensy, and not rely on just a chassis connection, correct?
Thanks for any insights anyone may have.
Mike