Rotary encoder on ADAU1467 Eval board
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
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
Hi Bob
Thanks very much for your example. I got it working now . The table entry was the key.
Please log in to reply.

