Page 1 of 1
Collecting GPS and speed data via USB Power
Posted: Fri Oct 14, 2016 4:52 am
by ChrisF
Does anyone know if it's possible to collect USB and speed data while connected to micro USB power and not the OBDII port? I've tried this in my vehicle but do not see any new logs created.
Re: Collecting GPS and speed data via USB Power
Posted: Fri Oct 14, 2016 12:07 pm
by mikebolt
Maybe. I have gotten it to log to the SD card via USB power. I even tried logging the raw GPS NMEA messages. They were properly formatted, but they had no valid data except for the UTC timestamp. Weird.
Not sure about accelerometer or gyro. I didn't try those.
Re: Collecting GPS and speed data via USB Power
Posted: Wed Oct 19, 2016 10:44 am
by mikebolt
Yes, this is possible. I got it to work connected to a laptop outside.
However, you will have to modify the datalogger sketch. When not connected to OBD, it will call the "init" method every iteration of the main loop. When there's no OBD connection this method takes over 5 seconds. This makes data collection very slow. All you need to do is remove
the "else" block from lines 307 to 315 in datalogger.ino. I also added some code to make it retry the OBD connection a few times at the start as a compromise.
Everything except OBD should work on USB power.
Does it not create a new log file, or is the new log file empty? What does it print in the serial console when you try this?