I have an automotive circuit that is running at 5V, has a pic, some other stuff and whatnot. I have to use this to drive a 12V lamp inside the dash panel... Problem is ofcourse that this lamp is 12V and probally requires mre power then my pic is going to give.
This lamp always has 12V going to it, but the ground is only connected when the body computer tell it to, thus conrolling when its on. I dont think I can sink -12V into a pin on my pic. So I was thinking a transistor would be the right tool for the job.
Problem is, I dont know which kind tho. NPN, PNP, FET ??
I have an NPN here but I played around with it some but can not get it to work they way I think it should. Anyone have any advice or perhaps a simple diagram ?
Thanks!
This lamp always has 12V going to it, but the ground is only connected when the body computer tell it to, thus conrolling when its on. I dont think I can sink -12V into a pin on my pic. So I was thinking a transistor would be the right tool for the job.
Problem is, I dont know which kind tho. NPN, PNP, FET ??
I have an NPN here but I played around with it some but can not get it to work they way I think it should. Anyone have any advice or perhaps a simple diagram ?
Thanks!