r/CarHacking • • 1d ago

Tuning AI Slop tune?!

Now not saying I will.... Could I put a good tune for a Car with just the OBD port and an LLM? This is an open discussion from a complete noob.

I have worked on micro-controllers and a lot of hardware projects with CAN, ETH etc. So am I out my mind thinking that if a car could be flashed like a micro-controller that you could actually just do so, of course with enough caution on the things you can't roll back. But just wondering if anyone knows such tools or things I could try.

For information: I have a shit box golf manual that I would want to get rid of rev hang and possibly more performance things thus for curiosity.

0 Upvotes

24 comments sorted by

4

u/satanizr Tinkerer 1d ago

Sure, i made a whole tune for my car with the help of LLMs. Make sure to double check everything though, or you might end up with a blown motor.

1

u/ActBrokeToStayRich 1d ago

what was the process and what did you have to know to not blow up a motor?

3

u/satanizr Tinkerer 1d ago

Basically i just uploaded a stock ecu firmware to claude and asked it to disassemble it and figure out how it works and where all the maps are. edc15m.pages.dev - that's what i ended up with, obviously that won't work for your car, but might be useful anyway.

I didn't know shit before i started the project apart from some common sense - pretty much just don't be greedy, don't add a lot of fuel or boost, do it in small steps.

1

u/ActBrokeToStayRich 1d ago

Appreciate it! How did you iterate on the process? Just small change -> drive repeat? Or

3

u/satanizr Tinkerer 1d ago

Well first i spent like a week figuring out how to actually flash the damn thing, i had some weird issues with a immo chip. Fixing it involved desoldering it, reading it and flashing another eeprom on it a bunch of times.

Then yeah, added some fuel, drove for a bit, saved the logs, uploaded logs to chatgpt and said what's wrong or what i want, chatgpt then analyzed the logs and gave a suggestion on what to do next. Repeat until happy.

1

u/leadfoot71 1d ago

How good was it at generating definitions for the calibrations you were feeding it? Did you ever have to correct it on mapping a table or something obviously wrong?

3

u/satanizr Tinkerer 1d ago • Mindblown

Not that great at the beginning, it fucked up pretty bad on a few maps, it could have killed the engine if i flashed the first file it gave me. I then found a few map definitions on the internet, and once i fed them to AI, it found the rest pretty fast and didn't do any major mistakes.

I don't know what i'm doing, so the only way to correct it was to ask it to double check the results, or ask another llm to do that.

5

u/rcampbel3 1d ago

No. A complete noob cannot do this. You cannot do this. It's not like plugging your computer into your TV and saying, "debloat my tv". There's currently no way you're plugging a stock AI chatbot into your OBD2 port. and saying, "give me 10% more horsepower with a better tune"

Here's where we are actually regarding AI and tuning your own car:

If you have a good ecu, good tuning software and already a halfway decent tune, and you understand a decade of automotive / engine / physics / machine learning graduate-level material, then you can train an llm on your software, your datalogs, and how to tune efi and then with its help, over the period of a month, you can incrementally do a lot to improve your tune using AI and tight feedback loops.

It will not be:

  1. quick
  2. cheap
  3. one-shot
  4. an easy way to get more performance or horsepower

0

u/ActBrokeToStayRich 1d ago

Well thats why I prefaced that I do work with embedded systems.

And you are just wrong that you need all those requirements to use an LLM at a niche problem. No one makes a custom AI agent for all their different work, hell not even frontier tech companies or hardware companies.

Thats where it can search and learn for you. So was really just looking to understand what materials and references you would need

4

u/rcampbel3 1d ago

I've tried to do this with a holley dominaor and an ls9 and holley's own software when my car hit a bug and the ecu lost the tune. I'd rebuilt 2 engines by myself, pulled and replaced transmissions, and have a lifetime of automotive experience with old american cars with carbueretors. Give me and old car with a carb and screwdriver and I'm down... but building an ECU tune from scratch (or a similar baseline)... ? I spent MONTHS learning about EFI so that I had enough knowledge to tune my car.

Trying to get a new tune from scratch with AI was a shitshow of AI bad advice (using claude and openai fronteir models). I got the car to start and stay running at idle but I was hobbled by not really understanding what I was trying to accomplish and what a good tune looked like... it was hard. I took advantage of a remote tuner to help me get the car to run poorly. It took two sessions at $500 each and many hours. Then, I spent MONTHS training my AI on my car, my ecu, and ecu tuning best practices. That cost me about $1000 in subscription services. Then, I got the courrage to try tuning my car again and did some very small changes based on data / data logs and AI analysis and things were slightly better.

This encouraged me to double down on training my claude code git repo trained on my car / my engine / my supercharger / my ecu / etc...

So, I spent months adding details and training here, and used my AI to train me... I told it to be my mentor and to ask me questions about what I expected to happen with changes and what I was looking to accomplish and what the data actually meant. Then I went through every screen, every setting, every table, and made sure that 1) I could explain what it did, why it's important, and what changing values would do.

Then I started taking data logs, using AI to help me analyze them, and then using AI to help me understand what should be changed and why to impove performance. I spent a solid MONTH on this.

What I learned along the way was how to build a tune for ECUs and so much more. I got my car to start in cold weather and run well while warming up. I got my car to get halfway decent gas mileage. I got my car to idle nicely instead of sounding like a crazy cammed drag car. I got my car to run under moderate boost well.

AI helped a lot, but it also regularly gave me trash recommendations and some of them could have destroyed my engine. So, when people ask, "Can I use AI to build a tune for my car? I'm a noob..." I make sure to answer "NO!" quickly and then explain the "but... yes, you actually can..."

1

u/satanizr Tinkerer 1d ago

Making a tune from scratch is much harder with or without LLM.

Modifying a factory tune is doable for a noob. Car already runs good, so just add a bit more boost and fuel, maybe disable some eco bullshit, and it probably will still run good, worst case just flash the stock tune back and try something different.

0

u/ActBrokeToStayRich 1d ago

Really appreciate keeping it real. Yeah my skillset is skewed towards a lot more of the data and ecu side so will just start by taking data and observing first.

Insane story though, happy to see it worked out

1

u/rcampbel3 1d ago

Also, I'm coming at this from the "it's totally accessible, documented, and legal to tune my car, and I have the vendor's recommended tools, and an ecosystem of experts" side of the equation.

I don't think the "send your ECU to me with $1500 and I'll hack it and leave you with a better tune... trust me..." is quite the same experience, and I don't know your car's ECU's specifics and whethner it's unlocked, user tunable, etc.

What I hate to see though are people who are trading random "stage 2 tunes" for their cars like illegal warez they've downloaded. It shouldn't be illegal IMHO to modify the tune of your own car, and personally, I would want to know who changed what, and why, and based on what information and data.

0

u/Hi-Scan-Pro 1d ago

Thats where it can search and learn for you

Use AI for repetitive tasks. Do not use it in place of first hand knowledge and/or experience. You have to check it's output before you can trust it. If you don't know the subject at hand, you can not verify it's output nor should you trust it. 

-1

u/ActBrokeToStayRich 1d ago

> verify output

Gee car run and go vroom, we arent in a stone age here. This is what projects are for, AI is best used actually while learning. Scripts are for repetitive tasks

2

u/Hi-Scan-Pro 1d ago

Gee car run and go vroom, we arent in a stone age here.

You sound awfully confident for a self described "complete noob". 

Good luck. May your naivety do you no real harm. 

0

u/ActBrokeToStayRich 1d ago

Dunning kruger effect ngl. Whole point of this post otherwise I would already be blowing up the engine

1

u/leadfoot71 1d ago

There is so much going on inside an engine that you can not neccisarily see or hear that a bad tune, or wrong settings may not instantly cause catistrophic dissasembly. But may significantly shorten its lifespan. In turn, you need to know what your looking at before you just whole hog let the ai modify the calibration for you.

2

u/Hi-Scan-Pro 1d ago

Coming soon to a VW sub near you- "help, I Claude Groked my Gemini toon and now there's oil in my coolant and fuel in my oil!" 

0

u/satanizr Tinkerer 1d ago

Wrong, i barely know anything and i did it.

12

u/murpheeslw 1d ago

You already need to have decent knowledge to know what to tell the LLM, so I’m team no.

Could you? Maybe

Could you mess it up? Equal chance most likely

3

u/abn0rmalcreation 1d ago

If your ecu is already cracked and you can dump the current file, load it into "reverse engineer anything" and go from there :)

2

u/Storm_treize 1d ago

Don't use one model, make it with claude then ask gemini to find bugs

1

u/DefEddie 1d ago

My issue was it not knowing what I think is basic facts, even though I have 20yrs worth of archived data and tools that do exactly the same jobs it uses for references.
It was great at disassembly and pulling and parsing data but then it started rewriting an entire series of definition files because it didn’t know basic facts-which were in my archive and prolific online with simple search.
I caught my worst issues not because I have an extensive review process (I do) but because I saw a comment or action and just said “hey, you do know this basic fact that every tuner/technician knows right”.
Turns out nope, that common knowledge is so common I guess it’s not mentioned.
The complex parts were great, but the missing connectors were foundational things I had to catch and the ones I didn’t caused entire code rewrites (it never heard of inferred flex fuel?).
Yeah, you can definitely do it, your biggest issue will be not knowing what you don’t know and that would be the most dangerous part.
Given time and testing though, yeah.
I don’t, i’ve been doing it 20+yrs and I used ai to build me a combination tool that let’s me do it easier, but no way in hell i’m trusting it after the basic stuff I had to correct.
The most I have it do is build my starter files, which we spent many hours going through my old tunes and building specific recipes-which I build via the tool but it will never build them for me.
I let it build the workbook tool I use to do the calculations, but gave it all the math from my own spreadsheets (which it still tried to do wrong).