/carpc

digitalization of an old VW T3 Bulli

Primary LanguageC

carpc

Digitalization of an old VW T3 Bulli

My old VW bulli needs some fancy power control. Mainly control of lights inside the van, disconnecting 5V power supply, theft control and so on. As an Add-on, my van has a "new" engine. The subaru EJ22 is also a boxer engine, but with way more power. And as this engine has some sort of diagnostics (pre-ODB2) included, it would be nice to visualize those informations as well.

so this project consists mainly of 3 parts:

  • An Arduino (only for the easy for programming, code is plain C) (work in progress)
  • A Raspberry Pi with Touchscreen and CarPC Kodi Interface (work in progress)
  • ESP8266 IoT Chip for Wireless control of the functionality (t.b.d)

Atmega328

This is the main part of the projects. Located in the back, this device will be always on. controlled by a 3x2 button interface, it enables the LED stripes in the back, starts the heater, turn on or off the 5V supply and so on. A horn is connected for alarm purposes. It checks the door state, or if the car was locked or not.

Raspberry Pi

Mainly for music, but also displays diagnostics from the engine, shows a navigation plugin or shows a rear cam. i currently implemented 3 plugins:

  • GPIO service (enable rear cam, power enable, etc).
  • Rear cam display: shows an overlay for the connected camera (usb analog s-video grabber and v4l2 / mplayer)
  • Display of the EJ22 data (finished, but connection missing)

Used Components

  • Raspberry PI v.3
  • Optocoupler ltv847 for detecting 12V / 5V voltages
  • Servo for open and closing the display lid
  • Switch for detecting the state of the display lid
  • electromagnet for holding the display lid
  • Levelshifter TE291 for USART communication between Arduino / Raspbi
  • IRLB8721 N-Channel Mosfets for LED stripes (controlled by the arduino)
  • IRF9Z P-Channel (and BS107 Transistor) switch the 12V rail for the rear cam
  • DHT 22 / AM2302 Temperature sensor

rasp_schem

Power supply

First try was with a 18650 Battery pack, but the Raspi, including 7'' touch screen and GPS / Stick / S-Video consumes a lot of power (about 2-3 Amps max), i decided to build some analog voodoo, since there is a very big battery already included in my (every) car. There are several ways to enable the 12V supply:

  • button on the Arduino
  • the arduino itself (with a GPIO, so power is guaranteed as long it is running)
  • over the ignition If all requests were removed, a big cap (220u) is still providing power for some time (>10s) for the N-PMOS gate to ensure the Raspi has enough time to shutdown. There are 3 MP1584 Buck Converter (step down) modules, which power the raspberry itself, one for the display and one for the USB hub.

power_schem

ESP8266

Nice small thing to play with. Is directly connected to the EJ22 engine and sends data via broadcast. but currently not work in progress. to be implemented later.

Schematics (created with kicad) will be updated on time, details and more to come soon.