Aditya070390
Newbie level 6
- Joined
- Dec 12, 2012
- Messages
- 14
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,384
Hai everyone!!
I have connected a 30amps relay to GP4 of PIC12F508 through a bc547 transistor.The code is written to turn it on at certain input condition and turn it off at some condition. The logic is working fine. The relay turns-off perfectly but while turning ON it switches ON for a fraction of a second and switches OFF after a delay of nearly 1 0r 2 seconds it repeats lik this again and again.finally after 4 or 5 spikes like this, it rests in ON condition. I have attached the part of that code and also the circuit,i dont know where am wrong.Please help me out.
I have connected a 30amps relay to GP4 of PIC12F508 through a bc547 transistor.The code is written to turn it on at certain input condition and turn it off at some condition. The logic is working fine. The relay turns-off perfectly but while turning ON it switches ON for a fraction of a second and switches OFF after a delay of nearly 1 0r 2 seconds it repeats lik this again and again.finally after 4 or 5 spikes like this, it rests in ON condition. I have attached the part of that code and also the circuit,i dont know where am wrong.Please help me out.
Code:
bsf GPIO,4
nop
nop
call Delay_30;delay of 30 seconds..
call Scan
btfss currinput,1
goto Full
btfsc currinput,2
goto run
goto Back