Hello everyone, this is a long post but i need someone to help me!
I'm doing a project in my car to put daylight running lights and control them with arduino. The working is simple, the project and code works perfect, but i'm having some issues with transistors and/or some sort of current leak that i can't figure out.
Let me go through my whole process. I made a simulation on tinkercad and everything works fine there.
I'm not going into code details and similar because that's not what i need help for, but basic functionality:
the lights represent each a couple of led lights, DRL and Angel Eyes (AE), which i already installed in the car. Gray is fog lights (AE need to be off when they are on), white is low beam (DRL need to be off when they are on), brown is ignition, green is doors (power when doors are open).
Lights turn on when doors are open (then turn off after X time). Lights are on when ignition is on and each pair turns off only if fog lights/low beam are on. Orange and blue are connected to the lights negative and are grounded only when arduino "says" it to the transistor.
So as i said everything works as expected, in the simulation....
Then i made this
And it worked good for a couple of weeks, then i started having problems with the poorly made connections (or as i suspected after some tests) so ultimately i made a custom pcb (colors name are in italian)
And it like.. never worked? I mean i tested it at home and i worked then i put it in his position and the lights turn slightly on.
I did some testing at home with a couple of leds and 5v and as you can see in the following picture with ONLY the main GND connected to ground and the blue/orange wires connected to the leds negative, the green led (blue wire) somehow goes to ground and turns on with about 2V and also the white led (orange wire) very slightly turn on with less than 1V (voltage doesn't change if i disconnect one of the two).
I know i'm probably doing something wrong but i can't explain why it works good in the simulation and also worked on multiple real tests i did before. I even replaced the blue wire transistor and it looked like it worked for a little bit then again the same problem.
I tried to explain everything to give you a better picture of the problem, i'm not an expert so this might be a stupid mistake, but i hope you will be able to help me figure it out!
Thanks!