Hi folks. I’ve got zero EE background, and this is my first foray into PCB design, so please be thorough in your critique. I’ve got about 30 years of experience as a shadetree auto mechanic who likes to tackle esoteric car projects. Lately I’ve been inspired to finish some ambitious projects that have been sitting in boxes for anywhere from 6 months to 20 years, so I taught myself KiCAD for this one. Since I’m very new at this, I’d appreciate your keen eye for flaws and pitfalls. As it stands, it felt pretty good to read through the rules and guidelines for this sub, and see that my instincts already had me doing most of those things.
This is an adapter board to change the basic behavior of my car’s taillights. I won’t get into the weeds here, but if someone actually wants the details of the old/new behavior, I’m happy to put it in a comment. The relevant electrical basics: each side of the car has a body-side tail lamp housing and a hatch-mounted lamp housing that’s wired in parallel from the same wiring loom. Looking at the car, there are 4 big rings of dual-color (amber/red) Osram LEDs. Before I add this adapter board, I’ve consistently got zero bulb-out warnings or fast-blinking signals, and the only option is to keep it that way.
Input connector (J1):
1. Turn/hazard lights PWM
(<0.5A), 100Hz, 12V)
2. Brake lights PWM
(<0.3A, 20Hz, 13.4V)
3. Parking lights PWM
(<0.2A, 100Hz, 3.15V)
4. GND
5. Ignition-switched battery 12V+
Aside from the SW_B+ wire, the first four pins match the OEM pinout of the taillight connectors. I’m not wedded to the symmetry, if rearranging the pins winds up being the wise move.
Output connector (J2):
1. Turn/hazard lights PWM (unmodified)
2. Brake lights PWM (unmodified)
3. RED_RINGS_OUT reconstructed PWM, which is basically muxed BRAKE and PARK
4. GND
It’s likely one of the simpler boards you all see on here, but I’ll run down the basics:
* Each input PWM signal is divided and clamped, sent to an ATtiny84 for pre-processing, then on to a PROFET (automotive-grade) high-side switch before output.
* Two jumpers allow for optional behavior via ATtiny programming
* Tag-Connect header for programming; might remove this prior to final revision
* Three diagnostic LEDs function whether the taillight is connected to J2 or not
* In the divide/clamp section near J1 on the backside, I’ve got one DNP resistor footprint for each lighting circuit, just in case I start getting bulb-out warnings or fast-flashing turn signals after install
* Haven’t added mounting holes/keepouts yet, as I haven’t quite decided on an enclosure. Was hoping to check myself before I wreck myself.
* I’ve run DRC, report is clean.
Things I’m particularly uncertain about:
* I’ve used 1mm trace width for SW_B+, 0.4mm for the +5V net, and 0.4mm again for the output PWM signals just to visually differentiate them from all other traces. I’m curious to hear if I’ve chosen proper trace/via widths.
* I’ve made a small copper pour of SW_B+ on the backside from the PROFET chip, with an array of through vias stitching that zone to the chip’s exposed VS pad. From what I understand, there ain’t a whole lot of current running through this thing, so I don’t know if this is overkill. I do know that those vias need to be plugged before the IC is installed.
* I’ve been thinking about tightening up the design even more, to make the board as small as possible. See any reasons why I shouldn’t?
* I’m not so sure about the selection of connectors at J1 and J2, for an automotive application. If anyone has recommendations, I’m all ears.
I’ve probably included WAY more screenshots than you need, but I find I get distinct types of visual information from each type.