ΣSigmaStudio Ask AI Русский Log in

Encoder with Push to Select ADAU1401

SigmaDSP & SigmaStudio neilped1 Aug 16, 2010 00:00 2 replies Original on forum ↗
Subscribe
neilped1 Question
Aug 16, 2010 00:00

I am attempting to control a volume control and equalizer with an external encoder. Got the encoder to control the volume and now I'm looking for the logic or funtion that would allow me to control several rotary volume functions ( volume, bass, treble ) by the single external encoder. Each DSP function has its own lookup table tailored for its specific range. The encoder needs to revert back to the volume function after a 2-5 second period at the selected bass or trble location.

Audio Signal Processors

adau1401

SigmaDSP Audio Processors

ADIApproved Reply
Aug 17, 2010 00:00

This may be possible to do with some timers and index-controlled switches/muxes, but it would be pretty complicated. You would have to use two of the GPIO pins for the rotary encoder input (as you are now) and a third for the click input. Each click should increment the index of a mux/switch which would be routing the the two rotary encoder signals between the three destinations (volume, bass, treble). The complicated logic is going to be controlling the mux to revert to it's base position (volume signal path) after a specified time.

Honestly, this sort of function isn't especially efficient to do on a SigmaDSP, which is optimized for audio processing, not control functions. If you need complicated control functions like this in your design, then you may want to consider a dedicated microcontroller, which could handle controls like this much better than than the SigmaDSP.

EZAdministrator Reply
Aug 2, 2018 00:00

This question has been assumed as answered either offline via email or with a multi-part answer. This question has now been closed out. If you have an inquiry related to this topic please post a new question in the applicable product forum.

Thank you,
EZ Admin