using 1.1v Vref on the Arduino analog to digital converter for better precision

This commit is contained in:
2019-02-07 10:18:10 +01:00
parent dd4757f56c
commit acd1248fa5
4 changed files with 23 additions and 10 deletions

View File

@@ -7,17 +7,17 @@ TMPFILE="/tmp/dd2data"
IMAGE="graphe.png"
NB_READ=5000
./t -v -n ${NB_READ} -d ${DEVICE} | tee -a ${DATAFILE}
./t -vv -n ${NB_READ} -d ${DEVICE} | tee -a ${DATAFILE}
gnuplot << __EOC__
set term png size 3200,512
set term png size 3200,640
set output "${IMAGE}"
set grid
set title "Temperature dans le Double Dragon 2"
set xdata time
set timefmt "%s"
set format x "%a, %H:%M:%S"
set yrange [ 5.0 : 30.0]
set yrange [ 0.0 : 30.0]
plot "${DATAFILE}" using 1:2 title " foo" with lines, \
"${DATAFILE}" using 1:3 title " bar" with lines, \
"${DATAFILE}" using 1:4 title "quux" with lines, \