Redo, after warmup
Seems worse than before? git-svn-id: https://bucket.mit.edu/svn/nilm/zoom@8051 ddd99763-3ecb-0310-9145-efcb8ce7c51f
This commit is contained in:
parent
a2921bf297
commit
72e409c107
pc/data/20091113
5
pc/data/20091113/README.txt
Normal file
5
pc/data/20091113/README.txt
Normal file
|
@ -0,0 +1,5 @@
|
|||
Like 20091104, but after waiting a few minutes for warmup
|
||||
|
||||
./dctest > log
|
||||
|
||||
Ran for about 10 minutes.
|
BIN
pc/data/20091113/log-locked.gz
Normal file
BIN
pc/data/20091113/log-locked.gz
Normal file
Binary file not shown.
BIN
pc/data/20091113/log.gz
Normal file
BIN
pc/data/20091113/log.gz
Normal file
Binary file not shown.
42
pc/data/20091113/process.txt
Normal file
42
pc/data/20091113/process.txt
Normal file
|
@ -0,0 +1,42 @@
|
|||
Some processing thoughts:
|
||||
|
||||
grep ^1 log | tail -n +230 > log-locked
|
||||
|
||||
octave:
|
||||
|
||||
a=load("log-locked");
|
||||
len=size(a,1)
|
||||
t=1:10000;
|
||||
keith=a(:,3);
|
||||
calib=a(1,4)
|
||||
|
||||
dac=a(:,5);
|
||||
adc=a(:,6);
|
||||
meas=-(dac - calib * adc);
|
||||
plot(keith(t),meas(t))
|
||||
p = polyfit(keith, meas, 1)
|
||||
|
||||
plot(t,keith(t) * p(1) + p(2),t,meas(t))
|
||||
t=1:len;
|
||||
plot(t,keith(t) * p(1) + p(2) - meas(t))
|
||||
axis([0 len -1 1])
|
||||
|
||||
Range is something like +- 0.5 over the entire range (of "DAC values")
|
||||
This gives log(1024 / 0.5) / log(2) = 11 bits
|
||||
No good!
|
||||
Now let's convert the DAC values to their more-accurate value using the lookup table
|
||||
|
||||
lookup=load("../../../firmware/lookup.inc");
|
||||
size(lookup)
|
||||
meas=-(lookup(dac + 1)/64 - calib * adc);
|
||||
p = polyfit(keith, meas, 1)
|
||||
t=1:len;
|
||||
plot(t,keith(t) * p(1) + p(2) - meas(t))
|
||||
axis([0 len -0.3 0.3])
|
||||
|
||||
Now closer to +- 0.1
|
||||
This gives log(1024 / 0.1) / log(2) = 13.3 bits
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user