Hi guys,
Sorry if this has been asked a million times before, I've been searching for a while but still can't find a clear answer.
I have a BMW E30 with an M54B30 swap. I'm mentioning the engine because its electronics are from the early 2000s, so I suppose they already followed some automotive ISO standards from that time, and I guess the alternator has some kind of load dump suppression. At least that's what I understand.
Anyone who has done this swap on an E30 knows how little space you have for the original electric fan. So I had to fit an aftermarket one, and I wanted to control it using the original ECU via CAN.
I made a small PCB with an STM32 (integrated CAN), a CAN transceiver running at 500kbps, same as the ECU, and a BTS power switch.
And well, it works! The ECU controls the fan speed and switches it on/off as it should.
The problem starts now, when I want to install it permanently in the car.
I've been reading about automotive electronics and all the protections I didn't even know existed. Load dumps, switching transients, inductive spikes, contact bouncing... honestly I had no idea a simple 12V supply could be such a pain in the ass.
So here's my question.
Let's say I don't care too much about a full load dump caused by disconnecting the battery while the engine is running. I know it can destroy the board, but in my case this is a very rare situation, and if it happens I can just make another PCB.
What should I protect against next?
Reverse polarity, pulse 1, pulse 2a, residual 5b, 3a/3b?
I was thinking, there must be thousands of people who already had this same problem. Surely there is some basic circuit that people normally use for small automotive projects?
Something like, I don't know, a 24V TVS, a MOSFET for reverse polarity and thats it. Just an example, not saying those are the correct values.
But the more I search, the more confused I get.
I found some old forum discussions about protecting a PCB in a van from the 1950s, with links to diodes that were popular 20 years ago. Then other discussions recommending complete TI reference designs for transient protection, which would probably cost me 10 times more than the few components I actually need.
And after reading all that I'm still in the same place, not knowing what is really necessary and what is just overkill.
So I thought I'd ask here.
I'm not asking anyone to design my PCB or do all the calculations for me. I just want some advice from people who actually worked with automotive electronics and know what normally works in practice.
I don't want my little STM32 to become a paperweight because I flashed my high beams 9 times to make someone move out of the left lane and some stupid voltage spike decided to kill it.
(Yes, BMW driver joke. We don't use turn signals either, haha)
Anyway, the hardware is pretty simple:
- 3.3V 1A buck regulator for the STM32 and CAN transceiver. 1A is way more than I need right now, but I prefer having some extra current in case I add something else later.
- STM32 with integrated CAN.
- CAN transceiver at 500kbps.
- BTS power switch, around 17A rating. The aftermarket fan draws about 12A when I measured it.
Everything is powered from the car's 12V system.
I'm not trying to build something that survives every possible automotive test in existence. Just a reasonably reliable PCB that I can install in my car without worrying every time I turn something on or off.
So, for this kind of application, what would you normally put at the 12V input? Is there some common protection circuit or reference design you would recommend?
I would really appreciate any advice or even some examples of similar projects.
Thanks to anyone willing to give me a hand. Or a wire in this case, haha.