Hi all
I'm trying to work out a circuit to control 2 x 12v banks of LED's from a PIC microcontroller, which itself is being powered from a 12v source from a car.
I've done a really bad attempt I reckon at a circuit, please note this is my first attempt ever at something like this, and I'm still reading up on various things.
Basically...
The input source voltage is from the battery (12v, but can be dirty and spike from 11.4v to 13,8v), via the pic I want to control 2 sets of 12v automotive LED banks (about 1.2A draw per bank @ 12V), but sequence them in a pattern at 50ms refresh intervals on the fastest cycle.
So far I've come up with this circuit
http://i130.photobucket.com/albums/p266/PaulW21781/629b80d2.png
Input is top-right, outputs are the 2 left connectors. I've also added in 2 LED's which are to show the sequencing if the control module is attached some distance from the powered LED's.
The Crystal timer too, do I actually need this, or will the clock of the 12F629 be capable of the 50ms timings for switching the outputs?
Also, I want to wire in an override switch if possible, so when as 12V feed is applied, instead of it automatically going through the pre-programmed cycle, it will just be constant on for both outputs. Can I do this by adding a switch to GP3 and coding it in the PIC somehow? I'm still trying to learn how all this stuff works if I'm honest, this is just what I've figured out from a hard days reading up.
Finally, am I right in adding the 10uF cap after the LM7805 to clean the power? Or is this something which won't be needed at all... I've added it as I've seen a few circuit designs on the net which are being made for running in a car or bike you see...
Sorry for the barrage of questions, just hope I'm not going about this in the wrong way...
Thanks
I'm trying to work out a circuit to control 2 x 12v banks of LED's from a PIC microcontroller, which itself is being powered from a 12v source from a car.
I've done a really bad attempt I reckon at a circuit, please note this is my first attempt ever at something like this, and I'm still reading up on various things.
Basically...
The input source voltage is from the battery (12v, but can be dirty and spike from 11.4v to 13,8v), via the pic I want to control 2 sets of 12v automotive LED banks (about 1.2A draw per bank @ 12V), but sequence them in a pattern at 50ms refresh intervals on the fastest cycle.
So far I've come up with this circuit
http://i130.photobucket.com/albums/p266/PaulW21781/629b80d2.png
Input is top-right, outputs are the 2 left connectors. I've also added in 2 LED's which are to show the sequencing if the control module is attached some distance from the powered LED's.
The Crystal timer too, do I actually need this, or will the clock of the 12F629 be capable of the 50ms timings for switching the outputs?
Also, I want to wire in an override switch if possible, so when as 12V feed is applied, instead of it automatically going through the pre-programmed cycle, it will just be constant on for both outputs. Can I do this by adding a switch to GP3 and coding it in the PIC somehow? I'm still trying to learn how all this stuff works if I'm honest, this is just what I've figured out from a hard days reading up.
Finally, am I right in adding the 10uF cap after the LM7805 to clean the power? Or is this something which won't be needed at all... I've added it as I've seen a few circuit designs on the net which are being made for running in a car or bike you see...
Sorry for the barrage of questions, just hope I'm not going about this in the wrong way...
Thanks
Last edited: