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

Rotary encoder on ADAU1467 Eval board

SigmaDSP & SigmaStudio WolfT Apr 21, 2018 00:00 2 replies Original on forum ↗
Subscribe
WolfT Question
Apr 21, 2018 00:00

Hi

I'm having problems with getting a rotary encoder working on the 1467 evaluation board (same problem on an 1466 board). I have followed all examples I could find in the Forum, but nothing seems to work. I'm using MP14, 15 as input (intercepted them on the board at the dip switch). I have configured them as inputs and when I turn the encoder can see the odd 1 turning up on both ports. Checking with an Oscilloscope I get two nice pulses (90 degree offset ) coming out of the encoder. In regards to the table, I'm lost as what needs to go in there? I tried values from 0 - 1 and also values 0 - 15, doesn't make any difference. I have tried the Volume module with integrated encoder and have build it with encoder, up/dow LUT and Volume module again no difference (later one attached)

I'm missing something? Hope some one can help me out.

Thanks

Wolfgang

Audio Signal Processors

rotary encoder and adau1467

adau1467

SigmaDSP Audio Processors

KJBob Reply
Apr 22, 2018 00:00

Hello Wolfgang,

Your project appears fine to me. I built a similar project for the ADAU1466 board. Not having a rotary encoder handy, I simulated one as shown:

This project works fine. Aside from the encoder simulation, the only thing changed is the contents of the lookup table -- I made mine a series of approx. 3 dB steps like this: 0, 0.0001, 0.00014, 0.0002, 0.00028, 0.0004 etc. I'm surprised that unlike the stand-alone LUTs, the Up-Down LUT lacks a "dB" checkbox so you have to roll your own. Anyhow, your LUT is quite functional for testing your encoder setup.

Perhaps try a higher debounce number in the rotary block, especially if your encoder is mechanical. The simulated encoder I made is of course completely bounce-less.

Best regards,

Bob

ae7f70ee30da8728851f3f32ef7633d3.png
ae7f70ee30da8728851f3f32ef7633d3.png
ae7f70ee30da8728851f3f32ef7633d3.png-620x175.png
ae7f70ee30da8728851f3f32ef7633d3.png-620x175.png
WolfT Reply
Apr 23, 2018 00:00

Hi Bob

Thanks very much for your example. I got it working now . The table entry was the key.