I am designing a H-Bridge to control my DC motor so it can turn in both side.
It is going to control by using micro controller PIC16F877A.
The control(output) signal from PIC will turn on the NPN Transistor BC549 to charge the coil in relay.
I program it so that every 5 second the motor will change it turning side but sometime when it change it stage, it will affect my circuit and reseting my program...
I wonder is it because of back emf from the motor.. I try to add diode 1N4007 or higher value of resistor at the base of my transistor but this doesn't solve the problem....
help....
It is going to control by using micro controller PIC16F877A.
The control(output) signal from PIC will turn on the NPN Transistor BC549 to charge the coil in relay.
I program it so that every 5 second the motor will change it turning side but sometime when it change it stage, it will affect my circuit and reseting my program...
I wonder is it because of back emf from the motor.. I try to add diode 1N4007 or higher value of resistor at the base of my transistor but this doesn't solve the problem....
help....