ButtHeat v0.1: physical A/C and heater control for Haval Dargo I
Complexity: HIGH
TL;DR: this is a hardware mod to Haval Dargo car which adds physical knobs to control A/C temperature and some other climate-related stuff. It attaches to one of the car's CAN buses.
Haval Dargo (I) has two-zone climate control and heated seat (at least in Elite/Premium variants). But changing temperature or fan mode or heated seat can only be done with the touch screen.
Using touch screen while driving is dangerous for both driver and everyone around. So I designed this device.
This version is a prototype (v0.1) built from assorted modules, I'm publishing it just in case someone wants to base their work on it. Version 1.0 with its own PCB is currently being designed, when it's ready I'll publish it as another thing.
DISCLAIMER: this project involves modifications to your car's electrics. While I did my best to ensure it won't cause any catastrophic consequences even in case of failure, I am not a professional electrician and everything you do with your car, you do at your own risk. Under no circumstances I hold responsibility to any damage or impact caused by using or not using this project by anyone.
What's in the package:
- Small device is installed right below your car's multimedia system. It has its own small OLED screen (0.91") which shows A/C temperatures, state, blower direction and seat heating status regardless of whether the main multimedia unit is on, off or shows camera feed.
- There are two rotary encoder knobs.
- Left knob: rotating → control A/C temperature for the driver (or for the whole car if two-zone is disabled or unavailable); click → control seat heating; press and hold → apply seat memory presets (1 second = preset 1, 2 seconds = preset 2, 3 seconds = preset 3, hold longer = cancel).
- Right knob: rotating → control A/C temperature for the passenger (and enable two-zone if it was disabled); click → control passenger seat heating; press and hold for 1s → disable two-zone mode.
- Push-and-rotate any knob: control fan speed.
What you will need:
- Read the whole list before you start printing.
- Print the parts attached.
- Case base is where all the components are installed. (I highly recommend you to print case base first and see if it fits in your car; do not order remaining components if you find this case doesn't fit your car!). It is attached to the car's console panel with some thin two-sided adhesive tape.
- Case cover is what holds the components in place and makes it more aesthetically pleasant.
- Knob: print two of them. You may need to use different knobs if your rotary encoders differ from what I used. Knobs are best printed in SLA.
- MCU: ESP32-C3 SuperMini board
- Display: SSD1306-based 0.91" display module
- CAN bus transciever: TJA1050 module or similar
- Step-down converter: Mini360 (optional) — not shown on the picture but should be installed right below TJA1050
- Two rotary encoders. This design uses Chinese
EC12S24/24 pushpin encoders with 20mm height.
Tools:
- Some double-sided adhesive tape
- lots of thin wires for connecting the modules to each other (ideally different colors)
- 4-wire cable to connect the module to your car (you can reuse a spare USB cable)
- 1A fuse with a holder
- 4-pin automotive connector with a mating part
- electric tape
- soldering iron
- multimeter
- angled USB Type-C cable for flashing the device without removing it from the car (regular USB cable cannot be inserted because of the car's buttons)
- laptop with ESP-IDF SDK installed
- and a lot of patience.
Assembly:
- Put all the parts into their respective places on CaseBottom.
- Connect left encoder to SuperMini pins 2, 3, 4 (A, B, SW). Remaining pins should be connected to GND.
- Connect right encoder to SuperMini pins 5, 6, 7.
- Connect TJA1050 TX to SuperMini pin 21, RX to pin 21. NOTE: better add a resistive divider to RX, because TJA1050 outputs 5V signal while SuperMini wants 3V3. (In my prototype everything worked without the divider though.) GND and VCC of TJA1050 to GND and 5V, respectively.
- Connect SSD1306: GND to GND, 3V3 to 3V3, SCL to pin 9, SDA to pin 8. Note: most of the wires will go under the display module, CaseBase has a dedicated cutout there. Wires should be thin enough.
- Download the firmware (see the link below), compile and flash it into SuperMini.
- Optional: configure it before flashing -
idf.py menuconfig - Compile:
idf.py build - Flash:
idf.py flash --port SUPERMINI_PORT_HERE - After flashing, the display should go ON and show either
HAVAL DARGOorNo connection, depending on the firmware version. - Check logs:
idf.py monitor --port SUPERMINI_PORT_HERE
- Optional: configure it before flashing -
- Apply 12V to Mini360 input and measure its output voltage. Adjust the varistor until you get ~5V. Note: you can skip this step if you manage to obtain regulated 5V from the car's wiring.
- Connect Mini360 output to SuperMini +5V pin, and GND to GND. NOTE: if you want to flash the module without 12V applied then you should add a diode between Mini360 output and +5V pin, otherwise SuperMini may overheat!
- Take your 4-wire (e.g. old USB) cable and solder: I'd recommend black = GND, red = +12V (both go to input of Mini360), green and white — CANH and CANL (TJA1050).
- Close the case, your cable should exit it from the left side. Use some adhesive tape to make sure the case holds together and doesn't fall apart.
- Attach the case in place. Apply some adhesive tape to its rear and upper sides, so that it is glued between the two edges of the car.
- Route your cable either above and to the left of the middle-left air duct or cut a hole in the air duct's corner (air duct block can be removed if you pull it). Either way, you'll want to attach the cable to car wires in the left side.
- Connect to the car wiring. NOTE: if unsure, ask a qualified techinician/electrician to do this for you. The process is very similar to installing an alarm system. You will need 4 lines: GND, +12V IGN — it should be active only when ignition is on (or +5V if you manage to find it somewhere available), BD-CAN-1 H (green+red) and BD-CAN-1 L (blue+black). You can find schematics document for this car in the internet, it will help you a lot. USE THE 1A FUSE between your cable and car's +12V: this way, if something shorts in your module, you won't fry some more important fuse in the car. Once again: doing this wrong may damage your car! Ask a qualified techinician if unsure!
- Flash the firmware unless already (see step 5).
Firmware lives here: https://github.com/MarSoft/Haval-ButtHeat/
Caveats / What can go wrong
- This car has about 6 different CAN buses. We connect to BD-CAN-1. This is not the one exposed in OBD-II service connector, that's why we have to attach to the car's wiring.
- Use wires with strong enough insulation: I used silicone-insulated wires for my prototype; they are a pleasure to work with, but their insulation got damaged near encoder connection points; as a result, encoders became unresponsive until I fixed the wires.
- If you omit the diode between Mini360 output and the rest of the device then don't attach USB cable without 12V applied. Otherwise Mini360 will overheat because 5V will go through it output cascade.
- I recommend fitting some 4-pin automative connector somewhere between the car's wires and this device, after 1A fuse. This way you will be able to easily disconnect the device if something goes wrong or if you want to improve it.
- This device may physically interfere with the car's MODE knob (driving mode selection). Make sure you are able to use it with the device installed. (The space is somewhat tight but usable for me.)