When using a FFT should I convert the AtoD samples into a Voltage?

AI Thread Summary
When using FFT for digital signal processing (DSP), it is generally recommended to keep the samples in the digital domain rather than converting them back to analog voltages before processing. The conversion formulas provided confirm that A to D samples can be related to sample voltages, but maintaining consistency in the digital domain is crucial for accurate comparisons. If the ADC outputs 2's complement data, it is important to handle any DC offset correctly to avoid skewing the FFT results. For microphones producing AC signals, offsetting the zero crossing may be necessary to ensure proper representation. Ultimately, performing computations in the digital domain and scaling to analog only when needed is the best practice.
btb4198
Messages
570
Reaction score
10
when using the FFT for DSP should I convert the A to D samples back into a Voltages ?

so

A to D sample = sample voltage * ( bits / max Voltages)

so

sample Voltage = (A to D sample ) *(max Voltages/ bits)
that is right, right?

anyhow should I keep the samples as digital samples or convert them to analog samples
before I run them into the FFT?
why or why not?

I kind of think it should matter... but I do not know . I am new to this.

I do think that the A to D / mic on a computer might remove all the negative numbers, but i do not know is you would get negative numbers from a microphone...
do you ?
 
Engineering news on Phys.org
The units are only a scaling factor ... they don't change the relative values of the amplitudes.

They would be important if you were comparing one spectrum with another: you need to be consistent.
 
Do all your computations in the digital domain, and afterwards scale your results to the analog domain if you need to. For example you may need to know the actual energy level of a modulated signal within a bandwidth.

I get in trouble with the 1/N normalization thing all the time. Should I use 1/N for forward, inverse, or 1/sqrt(N) on both.
 
btb4198 said:
when using the FFT for DSP should I convert the A to D samples back into a Voltages ?

so

A to D sample = sample voltage * ( bits / max Voltages)

so

sample Voltage = (A to D sample ) *(max Voltages/ bits)
that is right, right?

anyhow should I keep the samples as digital samples or convert them to analog samples
before I run them into the FFT?
why or why not?

I kind of think it should matter... but I do not know . I am new to this.

I do think that the A to D / mic on a computer might remove all the negative numbers, but i do not know is you would get negative numbers from a microphone...
do you ?

A microphone puts out an AC signal. How are you handling that at your ADC? Are you offsetting the zero crossing voltage of the input signal to bias it up to half of the input voltage range of the ADC? If so, you will want to subtract that offset out of your digital data before doing the FFT, or else just subtract the DC component out of the final FFT data.

If your ADC circuit outputs 2's complement data to represent the AC waveform, you will probably need to do something before the FFT, I would think...
 
If you get A/D numbers from a sound card or wave file they are 2's complement positive and negative numbers. Is that what you are doing? Just crunch on them to your hearts content.
 
Last edited:
yes, I am getting them from a sound card on my computer ...
 
While I was rolling out a shielded cable, a though came to my mind - what happens to the current flow in the cable if there came a short between the wire and the shield in both ends of the cable? For simplicity, lets assume a 1-wire copper wire wrapped in an aluminum shield. The wire and the shield has the same cross section area. There are insulating material between them, and in both ends there is a short between them. My first thought, the total resistance of the cable would be reduced...
Hi all I have some confusion about piezoelectrical sensors combination. If i have three acoustic piezoelectrical sensors (with same receive sensitivity in dB ref V/1uPa) placed at specific distance, these sensors receive acoustic signal from a sound source placed at far field distance (Plane Wave) and from broadside. I receive output of these sensors through individual preamplifiers, add them through hardware like summer circuit adder or in software after digitization and in this way got an...
I am not an electrical engineering student, but a lowly apprentice electrician. I learn both on the job and also take classes for my apprenticeship. I recently wired my first transformer and I understand that the neutral and ground are bonded together in the transformer or in the service. What I don't understand is, if the neutral is a current carrying conductor, which is then bonded to the ground conductor, why does current only flow back to its source and not on the ground path...
Back
Top