Car Heads Up Display (Arduino + ELM327)
by Va_Tech_EE in Circuits > Assistive Tech
14807 Views, 41 Favorites, 0 Comments
Car Heads Up Display (Arduino + ELM327)
Some years ago I had the chance to drive a C6 Corvette with a HUD and loved it. The ability to see your speed and RPM without taking your eyes off the road made driving much more enjoyable.
For a long, long time I've wanted to make a HUD for my own car. While doing some research about OBD2 and Arduino car hacking, I decided to make one from scratch and this instructable shows how you can make one, too!
Supplies
- Teensy 3.5 (or 3.6)
- ESP32
- ELM327 Bluetooth Scanner
- SSD1331 OLED Display
- OBD2 Extension Cable
- SD Card
- 7 Segment LED Display (2x)
- 10 Segment LED Bar
- Screw Terminal
- 3D Models
- ABS Filament
- Wire
- 3D Printer
- Soldering Kit
- 75 Ohm Resistor (35x)
- Heatshrink
- 7 Pin JST XH 2.54mm Connector (M/F pair)
- Standoffs
- Custom PCB
- Potentiometer
- Power Switch
- Plexiglass Disc
- Reflective Windshield Film
- Scissors
- Sharpie
Print/Assemble 3D Printed Parts
Download link to 3D printable Files
Note, the OLED mount can be glued anywere you would like on the HUD as long as you have enough wire to connect the OLED to the custom PCB.
Fab/Solder PCB
Download link to the custom PCB gerber files
You can use the above gerber files to order a PCB through a company such as JLCPCB.
External Wiring
In order to control power to both the ELM327 and custom PCB without having to plug/unplug the OBD2 extension cable, you will need to rewire the power and ground signals. This will require you to open up the OBD scanner's case and access the device's wiring.
- Using the above OBD2 pinout, cut the 12V wire in the middle
- Strip both ends of the cut wire
- Cut and strip 2 red wires equal to the distance between the OBD2 12V pin and the power switch on the HUD
- Cut and strip 1 red and 1 black wire equal to the distance between the OBD2 power pins and the custom PCB's screw terminal
- Solder the 12V wires so that the HUD's switch controls power to both the ELM327 and the custom PCB
- Using the above OBD2 pinout, solder the black wire to the OBD2 GND pin and screw the other end of the black wire to the custom PCB's screw terminal
See the above project schematic for help.
Next, wire the 3 pins on the custom PCB labeled "LED PWR" to the potentiometer on the side of the HUD.
Lastly, wire the female JST connector wires to the OLED display.
Prepare/Mount HUD Plastic
- Take the round plexiglass piece, reflective film sheet, sharpie, and scissors
- Use the plexiglass piece and sharpie to trace a circle on the reflective film sheet
- Use the scissors to cut out the circle
- Stick the cut-out reflective film onto one of the sides of the round plexiglass piece
- Insert the completed assembly into the display slot on the HUD (reflective film facing the driver)
Upload Code
The code for the ESP32 and the Teensy 3.5 can be found here.
Note: Ensure you have inserted the SD card into the Teensy's SD receptacle. This will allow you to record your vehicle's speed/rpm data real-time in a CSV format. Also note that you can use the Python code to graph your vehicle's data from the SD card. See the graph above for an example of this.