I've been racking my brain over the best way to do this for a few days now, and you guys are a lot smarter than me, here's the situation:
Backstory:
We converted our car to electric, a 24V Nissan Patrol. We decided to switch to 12V due to ease of sourcing components.
Now the harnass is all still the 24v wires which means, double the current through said wires. Eventhough I'm sure the super rugged and overbuilt Nissan could handle it, I think a CAN bus conversion would be fun, and useful for checking the bulbs on our terrible trailers.
I came up with:
A custom PCB with some microcontroller (probably STM32 or Atmega32u4 or something similar)
17 MOSFETs (4 for left, 4 for right and 5 for trailer, I chose 1 per bulb for future flexibility/fun animations etc)
And some sort of resistance or current measurement to notify the driver of any broken bulbs.
In the spirit of the vehicle being a Patrol, I want to do this as foolproof as possible (I primarily have overvoltage and over current scenario's in my mind), but still as simple as possible (price isn't as big of a concern within reasonable limits). So in the spirit of that I sourced an aluminium ECU type case with some fake ampseal connectors I can use to wire up every light and the trailer plug.
(I thought giving as much information as possible would be helpful in case I'm overseeing something huge here)
TL;DR
I have a MOSFET controlling a lightbulb, and I want to be able to detect if said lightbulb goes out, in the most unbreakable way possible.
Thanks!