MSP430 based datalogger for an electric vehicle