We use a Radio Shack digital multimeter with RS-232 output, a dual AAA
battery holder, a 33 ohm resistor, a couple of test clips, and batteries
from various manufacturers. The use of a 9 volt battery eliminator in
the DMM is strongly recommended since the DMM will be on for long periods.
Most of the parts are available from Radio Shack. Theoretically it's
possible to do this with many different kinds of batteries, from
mobile phones
to a DS Lite, but for now we'll stick with two AAAs.
We use gnuplot to graph the discharge curves. To use gnuplot we
must remove the "DC" and the "V" from the raw data files. We do this
with the bash script:
for i in RadioShack Renewal Energizer Duracell
do
awk '{print $2}' < $i.33 >$i
done
The gnuplot program is normally interactive but can take configuration
and commands from a file as well. Gnuplot displays on
the X window by default. We use the "set termainal" and "set output"
commands to get a PBM image sent to standard output. The other commands
shown set the title and some display paramaters.
| The "discharge.gp" file |
|
set terminal pbm small gray
set output set view 60, 30, 1, 1 set samples 100, 100 set isosamples 10, 10 set title "AAA Battery Voltage Versus Time with a 33 Ohm Load" 0,0 set notime set rrange [-0 : 10] set trange [-5 : 5] set urange [-5 : 5] set vrange [-5 : 5] set xlabel "Minutes" 0,0 set xrange [0 : 1240] set ylabel "Volts" 0,0 set yrange [0.19 : 3.05] set zlabel "" 0,0 set zrange [-10 : 10] set autoscale r set autoscale t set autoscale xy set autoscale z set zero 1e-08 plot "RadioShack", "Duracell", "Energizer", "Renewal" |
Generate the PBM file with the command:
gnuplot discharge.gp > discharge.pbm
Use the xv program to load the PBM file and to save it as a GIF file.
xv discharge.pbm
The final display might look something like......