- Thread starter
- #1
I’ve had this idea to put a data logger on the 12v battery for awhile now, after reading questions about whether the 12v is maintained by the HV (traction) battery. Seems like an easy thing to find the answer to.
I couldn’t find a DC voltage data logger that was both inexpensive and offered software that didn’t require Windows, so I hacked something together using a microcontroller, wire with a fuse for protection, and a 3d printed case using a leftover filament. The microcontroller monitors the power that feeds it, so the box only needs to have power terminals. There are alligator clips on the terminal ends. The paper towel is just there to keep the box from sliding around in the pocket.
The microcontroller sips power so it doesn’t really provide load. I’d need to wire up something else like a dashcam to see how the car reacts to battery drain. Have not done that yet but I’ve collected A 24 hr baseline and recorded my activity to get an idea of how it behaves normally. It can record about ten days with one sample every 180 seconds, keeping it all in RAM and making it accessible from a WiFi web server. Here are the patterns I see:
12.9v-13v at idle, unplugged
13.4v-13.5v while charging
14.9v-15.0v during cabin precondition
14.0v-14.2v while driving
I wouldn’t get too hung up on the absolute numbers here, I did a rough calibration but it could easily be skewed a few tenths. I’m just using the microcontroller ADC with a voltage divider.
If I find anything else interesting, I’ll post a follow up.
I couldn’t find a DC voltage data logger that was both inexpensive and offered software that didn’t require Windows, so I hacked something together using a microcontroller, wire with a fuse for protection, and a 3d printed case using a leftover filament. The microcontroller monitors the power that feeds it, so the box only needs to have power terminals. There are alligator clips on the terminal ends. The paper towel is just there to keep the box from sliding around in the pocket.
The microcontroller sips power so it doesn’t really provide load. I’d need to wire up something else like a dashcam to see how the car reacts to battery drain. Have not done that yet but I’ve collected A 24 hr baseline and recorded my activity to get an idea of how it behaves normally. It can record about ten days with one sample every 180 seconds, keeping it all in RAM and making it accessible from a WiFi web server. Here are the patterns I see:
12.9v-13v at idle, unplugged
13.4v-13.5v while charging
14.9v-15.0v during cabin precondition
14.0v-14.2v while driving
I wouldn’t get too hung up on the absolute numbers here, I did a rough calibration but it could easily be skewed a few tenths. I’m just using the microcontroller ADC with a voltage divider.
If I find anything else interesting, I’ll post a follow up.
Sponsored
Last edited: