I am capturing a sinusoidal waveform from an analog-to-digital converter (ADC), where the input signal is proportional to rate of change of current. I need to integrate the signal in order to get a value proportional to the current. I recall from my school days that integrating is like adding up all the little bits of the signal (in this case samples from the ADC). When I do this, I get a cosine waveform (plus constant), so I THINK it is working.
I'm still a bit lost as to what you're attempting, and how you're arriving at your results (either a cosine function, or else one numerical value). But I think you may possibly be referring to something along the following lines:
Given that the sinusoidal input signal
s is proportion to the rate of change (with respect to time
t) of the current
I, we have the following relationship:
. . . . .\(\displaystyle s(t)\, =\, a\, \sin(bt\, +\, c)\, =\, p\, \cdot\, \dfrac{dI}{dt}\)
We wish to find a functional expression for the current
I as a function of time
t. So we integrate:
. . . . .\(\displaystyle a\, \sin(bt\, +\, c)\, =\, p\, \cdot\, \dfrac{dI}{dt}\)
. . . . .\(\displaystyle a\, \sin(bt\, +\, c)\, dt\, =\, p\, dI\)
. . . . .\(\displaystyle \displaystyle \dfrac{a}{p}\, \int \, \sin(bt\, +\, c)\, dt\, =\, \int\, dI\)
. . . . .\(\displaystyle \displaystyle \dfrac{a}{p}\, \int\, \sin(bt\, +\, c)\, dt\, =\, I(t)\)
Is this what you mean? And, if so, what are the specifics of
a,
b,
c, and
p? Thank you!
