Narmu
Newbie level 6
- Joined
- Oct 13, 2013
- Messages
- 13
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 104
Hi friends, Can anyone help me solve this problem. I'm using three LEDs in my circuit. I have to switch it one by one so that when one LED is ON, the other two has to be OFF. Right now I'm not specifying any time period for the time which the LED has to be ON for. I'm supposed to do it using CD4052 IC. This IC is used for analog switching. It has two control pins A and B.
The logic is like
A B
0 0 - Red led is ON, other two LEDs are OFF
0 1 - Green led is ON, other two is OFF
1 0 - Blue led is ON, other two is OFF
For '0', I can ground it and for '1', I can connect a Vcc of +5V to it. But this has to be done automatically. For that I planned to use astable multivibrator. The problem is using one astable multivibrator i can accomplish to switch two leds. For switching three LEDs, i require two astable multivibrators. The logic behind it is confusing when I'm using two astable multivibrators. Can somebody help me to get the logic? Thanks in advance.
The logic is like
A B
0 0 - Red led is ON, other two LEDs are OFF
0 1 - Green led is ON, other two is OFF
1 0 - Blue led is ON, other two is OFF
For '0', I can ground it and for '1', I can connect a Vcc of +5V to it. But this has to be done automatically. For that I planned to use astable multivibrator. The problem is using one astable multivibrator i can accomplish to switch two leds. For switching three LEDs, i require two astable multivibrators. The logic behind it is confusing when I'm using two astable multivibrators. Can somebody help me to get the logic? Thanks in advance.