BS2 RC Circuit switch?
JohnofWax
Posts: 3
First off, Thanks for taking the time to look at this. I'm pretty new to electronics, but this is getting extremely fun. If someone could point me in the right direction on this, it would be very much appreciated. Below is the circuit segment I'm working on now. I have 3 different modes in the BS2.
Solid Lights, Blinking Lights, Photoresistor Controlled (Light Sensitive lights).
The problem I'm having is that I would like to turn the RC portion off within the BS2, but still have functioning LEDs. This would allow for rapid blinking lights or slowly fading while blinking, but not constantly fading because of the position of the Cap.
The question I guess I have is... How can I have multiple circuits controlling the same LEDs, yet isolated from each other? I guess I need some kind of electronic switch action to change which circuit the LEDs are in? What kind of device could be used for this? This is probably newbie as all get out, but it's actually kicking my butt.
Thanks in advance!
Post Edited (JohnofWax) : 7/27/2009 12:07:19 AM GMT
Solid Lights, Blinking Lights, Photoresistor Controlled (Light Sensitive lights).
The problem I'm having is that I would like to turn the RC portion off within the BS2, but still have functioning LEDs. This would allow for rapid blinking lights or slowly fading while blinking, but not constantly fading because of the position of the Cap.
The question I guess I have is... How can I have multiple circuits controlling the same LEDs, yet isolated from each other? I guess I need some kind of electronic switch action to change which circuit the LEDs are in? What kind of device could be used for this? This is probably newbie as all get out, but it's actually kicking my butt.
Thanks in advance!
Post Edited (JohnofWax) : 7/27/2009 12:07:19 AM GMT
Comments
Post Edited (Prettybird) : 7/27/2009 12:59:27 AM GMT
So This section has been changed to :
Thanks Mike!
I dont remember a mention of PWM command in "What's a Microcontroller?" so it didn't cross my mind. Time to crack open the Syntax and Reference Manual!
So by the looks of things, I would need to tie a capacitor connected to ground between the 10k resistor and the 2N3904 for the PWM command to fade my LEDs, but regular High/Low signals would not effect brightness / discharge time?
You rock Mike! That's exactly what I needed. It moved the cap away from the LEDs (as required) and allows me to use 1 pin to fade or steady blink (and at variable speeds, too) the leds.
I had to quit messing with the schematic stuff and rip everything off my Board of Education, but I physically made what was needed and now I can visualize it into the schematic for the big picture.
Thanks again for the help!
Only problem I have now is my LED is on on LOW and off on HIGH, lol.
At any rate, the LED setup that was on the first post now looks like so:
Now using HIGH / LOW commands for on/off (close enough to instantly), and PWM for 'fading' effect. with this simple get-up I should be able to duplicate it across pins and get a Tracer effect. sweet!
Post Edited (JohnofWax) : 7/27/2009 4:38:11 AM GMT