Author Topic: Delta-Sigma audio delay in Arduino?  (Read 20192 times)

DavenPaget

Re: Delta-Sigma audio delay in Arduino?
« Reply #40 on: January 02, 2012, 12:43:23 AM »

there are dip dram
the 41256 for example
its 256k x 1bit
which is perfect for 1bit converters
jameco has good stock
DRAM is slow anyway ... Not everyone here lives in the states you know  :icon_mrgreen:
Hiatus

Re: Delta-Sigma audio delay in Arduino?
« Reply #41 on: March 29, 2014, 10:05:34 AM »
It's a very good code, thank you. But I have few questions.
1. Digital output PD5 must be connect to AIN1, the negative input of comparator for feedback loop?
2. In sigma delta we have a unit delay AFTER analogic comparator. So from ACO to quantizer we should have  a comparator. I've noticed that you wrote NOP as a delay just for 1 logic output. But for 0 logic????
3. Have you put a capacitor on feedback loop between AIN1 and PD5?
thank you! waiting your answear.
« Last Edit: March 29, 2014, 10:39:38 AM by undergraduate1990 »

earthtonesaudio

Re: Delta-Sigma audio delay in Arduino?
« Reply #42 on: April 03, 2014, 09:17:23 PM »
It's a very good code, thank you. But I have few questions.
1. Digital output PD5 must be connect to AIN1, the negative input of comparator for feedback loop?
2. In sigma delta we have a unit delay AFTER analogic comparator. So from ACO to quantizer we should have  a comparator. I've noticed that you wrote NOP as a delay just for 1 logic output. But for 0 logic????
3. Have you put a capacitor on feedback loop between AIN1 and PD5?
thank you! waiting your answear.

I assume the schematic is:

analog input to AIN0 (positive comparator input)
resistor from digital output to AIN1 (negative comparator input)
capacitor from AIN1 to ground.

And the need for the `nop`:

Code: [Select]
if (input == (1<<ACO)) {
      asm("nop"); // even up loop times
      PORTD |= (1<<PORTD5);  // bitshift, bitwise OR, assignment
    }
    else {
      PORTD &= ~(1<<PORTD5);  // bitshift, negation, bitwise AND, assignment
    }

...is because the `else` branch contains one additional instruction (~).

Re: Delta-Sigma audio delay in Arduino?
« Reply #43 on: April 04, 2014, 01:40:50 PM »
ok, I understood.It is any possibility to see bitstream signal?? I mean you have the output passed through a lowpass filter. I have tried to make a simulation on Proteus and It didn t work.
I m student, I m begginer and I need a bitstream signal from sigma delta modulator. After that I will have a digital lowpass filter and finally I want to reconstruct my original signal.
I saw that ACO can take only 2 value, depending of inputs, may I consider ACO as bitstream signal? At which frequency do you think that it will works?
 Thank you and excuse my english! I hope that I will finish my project at faculty with succes!
« Last Edit: April 04, 2014, 02:30:28 PM by undergraduate1990 »

caldersm

Re: Delta-Sigma audio delay in Arduino?
« Reply #44 on: April 07, 2014, 08:52:23 AM »
I had the need to collect a bit more data than I could stuff in a 328....and I looked at adding some memory chips too. 

But then I found the Teensy 3.1. 
https://www.pjrc.com/teensy/teensy31.html

64KB of Ram, 256KB of Flash, 2 ADC, Built-in 12 bit DAC, 32 bit 72Mhz ARM that runs Arduino Code.  $20 each....cheap for this kind of power...!!

I am using it to capture a Pulse from a Fiber Loom and process an analog signal....capturing 4000 records.....pulse width is accurate to 1usec.  Thing is super fast and super tiny...!!  Also has a built in Real USB port, and 3 hardware serial ports.

Re: Delta-Sigma audio delay in Arduino?
« Reply #45 on: April 08, 2014, 08:10:35 AM »
it s working, sorry for previous post. i have obtained a 50khz bitstream sugnal. maybe higher frequency it will be better.