student1986
New Member
Hi,
I'm working on my senior project with PIC18F4520. The PIC should generate a sequence signal to be displayed on 12 DC lights. PIC 18F4520, PORT B in the PIC is connected to 3X8 decoders, the output from the decoder is connected to HEX inverters, then it is connected to BJTs(SN2222), and output from BJTs is connected to one terminal of the 5 v relays coil, and then to the DC lights. ALSO I have connected diode (n4001) in across the coil of the 5v relay.... Now, If I connected only three light, it works with the correct sequence, but when I connected another 3 lights one sequence will disappear, and if I connected another 3 lights 2 sequences will disappear and only the first sequence will appear all the time..
I tried my code only with LEDS instead of relays and lights to see the output, and the output was correct, so the problem happened when I connected the relays..
Can any one help please.
Thanx
I'm working on my senior project with PIC18F4520. The PIC should generate a sequence signal to be displayed on 12 DC lights. PIC 18F4520, PORT B in the PIC is connected to 3X8 decoders, the output from the decoder is connected to HEX inverters, then it is connected to BJTs(SN2222), and output from BJTs is connected to one terminal of the 5 v relays coil, and then to the DC lights. ALSO I have connected diode (n4001) in across the coil of the 5v relay.... Now, If I connected only three light, it works with the correct sequence, but when I connected another 3 lights one sequence will disappear, and if I connected another 3 lights 2 sequences will disappear and only the first sequence will appear all the time..
I tried my code only with LEDS instead of relays and lights to see the output, and the output was correct, so the problem happened when I connected the relays..
Can any one help please.
Thanx
Last edited: