Thanks, Paul.
I'm gonna have a look to Pedvide's ADC library.
I was thinking, would it be possible to create another object like AudioInputAnalog1, that uses instead ADC1?
Enrico
Type: Posts; User: saxen
Thanks, Paul.
I'm gonna have a look to Pedvide's ADC library.
I was thinking, would it be possible to create another object like AudioInputAnalog1, that uses instead ADC1?
Enrico
Hi Paul,
is it possible to read form an analog input of teensy while using the AudioAnalogInput of the Audio Library?
I would like to acquire an analog signal (ecg) while the mic is getting audio...
I'm still having this problem with the internal reference for the adc. As soon as the adc reference changes
ADC0_SC2 = ADC_SC2_REFSEL(1); // 1.2V ref
I get zero output. Has anybody noticed a...
I tried to save in memory half a second of recording, stop recording and print after. With DEFAULT analog reference I get the right (a bit noisy) audio back (this time I do not lose samples). With...
Yes, the gain is already set to max. I've also removed the POWER_LED_PIN. Still, I get mostly zero output... How test it without printing out the samples?
Thanks.
Thank you! I was definitely missing something. I tried in the meantime to double the period, and I was actually getting 22050 blocks per second, instead of 44100.
However, I'm still not managing...
Hi Paul,
in "pdb.h" i read:
#define PDB_PERIOD 1087 // 48e6 / 44100
If I'm not wrong this should be the period of the PDB, that is used both by the ADC and the DAC object. Does this setting...
Ok, my solution needed a little bit more of work. In that way I am able to decouple the two chains, and solve the problem of update_responsability. However, even though the dac is going into the...
I think I have found a solution. I don't know how good this approach is, or how much you will like it, but things seem to work in this way....
1) I removed the begin() methods from the...
Sorry, Paul. You are right!
I'm attaching a modified version of the PlayFromSketch example. This is what I observe:
- I start with an AudioPlayMemory connected to the dac. I have a print in the...
I'm not using the audio adapter, so I have to solve this in a different way. At the moment, I'm thinking to follow one of these possible solutions;
1) I noticed that the method connect (in...
Thank you!
Anyway, I was not getting any input because I was using in my sketch both an analog input and an analog output. If I remove the dac output, I start getting something from the adc....
Great, thank you! I tried with receiveReadOnly and it works, saving a little bit of memory.
Now I would like to run a sketch that uses AudioInputAnalog as input, but I'm not finding a way to...
Hey Pete,
quick question, why do you use receiveWritable() in the fir filter object? When FIR_PASSTHRU, it does not seem to be needed. Otherwise, does arm_fir_q15 require it?
Thank you,
Enrico
Hi Paul,
I had a look at Audio Connections and Memory and Processor Usage and Interrupts, and it seems to be the most important part of the documentation. It took me some time to understand the...
Well it is not a big deal duplicating the coefficient set. However, biquadratic filters are usually meant to be used in cascade, and very often with the same set of parameters. That's why I would say...
Thanks for your answer! I tried your code, but I get the same result as for the "vanilla" code.
I did few more testing, and I observed something strange.
- I print the value of the aprev and...
Hi robsoles,
"aprev" and "bprev" are indeed saved in the state array,
*(state-2) = bprev;
*(state-3) = aprev;
however, in every update() call (every 128 samples) we also assign,
state =...
Hi Paul,
is there a reason why you reset the "aprev" and "bprev" variables every AUDIO_BLOCK_SAMPLES in the biquadratic filter?
Doing in this way, I have some problem with the filter initial...
Thank you! Now the question is, am I the only one having this problem with the latest version of the library? Based on what I've tested, I cannot set the internal reference...
Enrico
Thanks for your answers. I think I've found where is the problem. Everything works fine when I comment "dac.analogReference(INTERNAL);".
I had this line left since I was playing with the reference....
Hi!
I've been working with the old single-file version of the library, and everything was working fine. I've just updated to the new splitted version, and I am having some problems.
I'm using the...
Hi Pete,
thanks for your answers. I'm gonna give a try to the arm sine function!
Enrico
Hi!
I've started playing with teensy 3.1 and this great audio library. First of all, thank you for providing such a great hardware and software.
I have got a couple of questions...
- As somebody...
Hi Paul,
thank you for your answers.
About recording, maybe this was not the right word to use, sorry. What I meant was getting 44100 samples per second from the ADC (analogRead?) and do some...
Hello everybody,
I'm going to start a project soon, and after searching around about the hardware to use (arduino, rpy, etc.), I found out about teensy 3.1. It seems very interesting, but I want to...