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

Send an address with I2C according to a specific voltage value applied to an ADAU 1701 DAC

SigmaDSP & SigmaStudio piero Sep 13, 2017 00:00 1 replies Original on forum ↗
Subscribe
piero Question
Sep 13, 2017 00:00

I have to read 5 different voltage values on ADC3 of DAU1701.
I thought I would use a VCO as an attached figure and then convert the frequency
into a specific address corresponding to each single frequency to be sent to a voice
synthesis module using I2C to play 5 different messages.

Using the potentiometer of EVAL-ADAU1701MINIZ i get:
200 hertz about with 0.6 volt input
400 hertz about with 1,15 volt input
600 hertz about with 1,70 volt input
800 hertz about with 2.20 volt input
1000 hertz about with 2,80 volt input

First question there is a better method to directly read the voltage on the DAC,
I need to intercept only 5 live values within the 0 - 3.3 volt power range.
Using the VCO, "if I could convert the frequency to a specific I2C address", I
would have to include 5 filters to select the 5 frequencies, wasting many instructions.

Second question is whether the method presented or other methods can get the
addresses, which is then the method to send them to the external device?

Audio Signal Processors

i2c

sigma studio adc

channel addressing

SigmaDSP Audio Processors

adau1701 adc

adau1701 sigmastudio

adau1701

Show More

4d8de99675b2dd6f70614d5f7a74c7e5.jpg
4d8de99675b2dd6f70614d5f7a74c7e5.jpg
4d8de99675b2dd6f70614d5f7a74c7e5.jpg-432x234.jpg
4d8de99675b2dd6f70614d5f7a74c7e5.jpg-432x234.jpg
DaveThib Reply
Sep 15, 2017 00:00

Hello Piero,

I was very confused for a while until I realized you wrote I2C instead of I2S.

So you want to send out five different codes via I2S. Just use a lookup table. Connect the AUXADC input to a lookup table then feed the output of the lookup table to the serial port. Then setup the table to only output five different values based on the input from the AUX pot.

I do not have time right now to build an example project for you.

Here is the help file but it needs to be updated.

https://wiki.analog.com/resources/tools-software/sigmastudio/toolbox/leveldetectorslookuptables/indexlookuptable

Look around on the forum for other lookup table examples.

Dave T