diff options
Diffstat (limited to 'calibration/power')
-rw-r--r-- | calibration/power/data.dat | 27 | ||||
-rwxr-xr-x | calibration/power/plot | 14 | ||||
-rw-r--r-- | calibration/power/voltage.pdf | bin | 0 -> 11241 bytes |
3 files changed, 41 insertions, 0 deletions
diff --git a/calibration/power/data.dat b/calibration/power/data.dat new file mode 100644 index 0000000..e880486 --- /dev/null +++ b/calibration/power/data.dat @@ -0,0 +1,27 @@ +#Vin [mV] ADC Value +0 10 +1000 81 +2000 149 +3000 219 +4000 290 +5000 362 +6000 435 +7000 499 +8000 557 +8500 609 +9000 643 +9500 678 +10000 712 +10500 747 +11000 784 +11500 820 +12000 853 +12500 889 +13000 923 +10500 746 +10800 768 +11100 790 +11400 810 +11700 832 +12300 872 +12600 893 diff --git a/calibration/power/plot b/calibration/power/plot new file mode 100755 index 0000000..c4703d0 --- /dev/null +++ b/calibration/power/plot @@ -0,0 +1,14 @@ +#!/usr/bin/env gnuplot + +set terminal pdf enhanced font 'Helvetica,14' size 16cm,12cm + +f(x) = a*x+b; +fit f(x) "data.dat" using 2:1 via a,b + +set grid +set title "Voltage to measured ADC" +set xlabel "ADC value" +set ylabel "Voltage [mV]" + +plot "data.dat" using 2:1 with points title "data points", \ + f(x) with lines title sprintf('linear fit curve mV(x) = %.5f·x%+.5f', a, b) diff --git a/calibration/power/voltage.pdf b/calibration/power/voltage.pdf Binary files differnew file mode 100644 index 0000000..cfec5ec --- /dev/null +++ b/calibration/power/voltage.pdf |