I've been working on a small Arduino project to datalog my commute. I'm using an Arduino Uno with SK Pang's CAN Bus Shield. I also have added the optional GPS and LCD to the mix. There is an micro-SD card slot for storage.
The aim of the project is just to collect data. As much as I can put into the SD card. I plan on calculating driving efficiency using somewhat arbitrary measures like throttle modulation, temperature, etc.
- CAN-BUS Shield $45
- OBDII Connector $10
- 16×2 Serial LCD $25
- EM406 Serial GPS $60
- Arduino Uno R3 $25 (or SMD version)
- 3 Pin JST plug/harness x2 $3
- JST Female Plug $1
So, all-in-all, about $170.
Here are most of the parts before soldering the JST stuff on.
The actual JST socket should be on the other side of the PCB. Oops. And I wish the “joystick” wasn't soldered on from the get-go, so I could mount it (or something similar) somewhere else.
I've gotten the (horribly written) example code working, and know that it will work with my car. I'm attempting to modularize the example code and mix it with my own to make a slightly better designed program.
The repository is public.
I might also incorporate parts of OpenXC in this as well. And I've forked OpenXC in the hopes of one day porting it to work with this CAN Bus shield.
I followed this guide to work in Eclipse.