How to use Current Ranger
Tested on macOS 11.6.3. Capture and explore interactive plot of current usage:
- Install grabserial:
git clone https://github.com/tbird20d/grabserial.git
cd grabserial && sudo python setup.py install
- Connect your currentranger for safe use using a USB isolator, making a note of the device address once plugged in, e.g.
/dev/cu.usbmodem14101
- If using the scripts, update the
.sh
files with your device address - Switch on the currentranger
- Set currentranger adc sampling to SLOW (
./send.sh s
) - Set currentranger to start USB logging (
./send.sh u
) - Check it's logging correctly (
./view.sh
), ctrl-c to exit
- Grab some data:
grabserial -d "/dev/cu.usbmodem14101" -e 10 -t -n > output.log
-d ...
- serial port-e 10
- run for 10s-t
- show timestamp-n
- don't show delta between messages> output.log
- save output tooutput.log
- Create a blank csv file:
echo "timestamp,current" > output.csv
- Manually clean
output.log
, checking for any garbled messages (first and last lines) - Pipe
output.log
intooutput.csv
:sed -e 's/[][]//g' -e 's/ /,/g' output.log >> output.csv
- Grab some data:
./record.sh
and check for any garbled messages - Process the data:
./process.sh
- Open
analysis.ipynb
and follow instructions