Serial data logger for Turnigy Accucell 6 battery charger and similar models.
- Python (tested with 2.7)
- PySerial
- USB to serial adaptor (ftdi or similar)
- See note below about voltage levels.
- Turnigy Accucell 6 or compatible models
The charger outputs a 5v ttl serial signal on the usb/temp port. On some older versions there may not be the internal connections for serial output. On one of my chargers I had to use a resistor to jumper the serial output signal to the center pin on the connector (Reference: http://www.rcgroups.com/forums/showthread.php?t=1046318). Newer models do not need this modification.
- Vcc 5v
- TTL Serial TX
- GND
Note: this is looking at the end panel with the power connector on the left.
If you use a 3.3v usb serial adaptor you will want to place a resistor in series with the tx line. A value between 1k and 10k should be fine.
charger tx -> resistor -> ftdi rx
charger gnd -> ftdi gnd
USER SET PROGRAM -> USB/TEMP Select -> USB Enable
$ python accucell_log.py --help
usage: accucell_log.py [-h] [--debug] [--verbose] port
Serial data logger for Turnigy Accucell 6 battery charger
positional arguments:
port Serial port/path
optional arguments:
-h, --help show this help message and exit
--debug debug output instead of csv
--verbose, -v more output columns
In default mode the script will output csv data which can be piped to a file. The verbose flag outputs extra columns of data in adition to the default set. Debug mode outputs the raw input frames along with the python dictionary holding the csv data.
To exit type control-c in the terminal.
Example (linux):
$ python accucell_log.py /dev/ttyUSB0 | tee log_file.csv