I have been hard at work lately CADing a case for my raspberry pi that incorporates a Status LED, Pi Camera, Push Button and space for a GPS and thermo-sensor for a “Dash-Cam” like project I put together several months ago. Everything with the software works great and the GPS data overlays nicely on the camera footage, but I had the hardest time finding a case that was just right for my motorcycle and my hardware. Enter my XYZprinting 3d printer!
I have a few test videos of the device on my YouTube channel. Check out “Trip-Tracker” here. I have made some tweaks to the look and added some other info on the HUD But this will give you the overall idea of the project. I can’t take all the credit for the software or the idea. Martin was the one gracious enough to post his code and project to his blog for people like me to implement in their own way. If you would like to check out Martin’s blog or view the rest of his code, check it out here.
The 3d print turned out better fitting and looking than I thought. Tollerances still need some tweaking, but in another one or two revisions, I think my CAD part might be made availble for others that would like to build this project for themselves.
View of front camera. Case is “portrait” setup to accommodate the long ribbon cable on the pi camera.
Rear view showing record button and status LED with USB cable for GPS dongle, power cable, and thermo sensor. The supports printed on the left are for an optional Ethernet cable plate I haven’t opted for as the Raspberry Pi has a 802.11n USB dongle that allows me to FTP and SSH to it freely.
View of the interfacing of the base with the lid.
Inside view showing the cables and GPIO “mess”. The button and thermo W1 wire sensor required pull-up and pull-down resistors to ensure proper signalling voltages. This proved to be pretty difficult. I originally guessed pull down for the button and either couldn’t get the signal or the GPIO pin was reading false positives from cross talk with the LED status wires coming from the GPIO. After the circuitry was carefully mapped out and planned with my bread-board, I soldered a make-shift wire harness with the needed resistors and everything is working as expected.
Latest Trip-Tracker video is now found on YouTube here.
Here are some screenshots of the KML file my project creates opened with Google Earth.
Download and view my trip.kml file on your own PC running Google Earth here.
KML file overlay allows you to view your trip on the terrain!
I am not sure how to explain the drift in this part of the KML file. I believe the math for my LAT and LAN might have a rounding error. My GPS dongle was on the dash and should have had plenty of sky view.
You can see here that the GPS drifts a little when I get close to the trees or buildings. And it is one parking spot to the right off. So I estimate my GPS dongle is accurate to about +/- 10 feet.
UPDATE: First video of Trip-Tracker mounted on bike! You can check it out here!
Photos of the improv mounting on the bike:
Fits under the handle bars and on the triple clamp almost perfectly.
Right now the thermo sensor and the GRPs dongle are attacked to the tank. Eventually the dongle will mount to the read fender and thermo sensor back to about the beginning of the seat and the end of the tank.
I still need to find a better mounting solution. The zip ties keep the dashcam secure but pushing the button causes the device to slide forward.