I set my PIC input is high then my output port is high. I have a problem that my output is more than 3V and that port i connect to a vibrator. however, my vibrator couldnt vibrate. but if i connect it to a LED, it able to light up.
May i know why this vibrator are not able to vibrate?
My guess would be that the vibrator needs more than the 20mA that the pic can output. You need to use a transistor to increase the current to the motor.
It would work good just use a kickback diode with it here this shows you how thanks to Nigel Goodwin **broken link removed** any small switching diode and 2n2222 would work
It would work good just use a kickback diode with it here this shows you how thanks to Nigel Goodwin **broken link removed** any small switching diode and 2n2222 would work
so in this case im using a 5v relay?
and i remember last time i try to combine my decoder, PIC and the relay power supply together but cant work. Is it i need to seperate the relay power supply from the decoder and PIC power supply?
The 1k resistor u said that is current limit for the base. How to prove that or any explaination? Sorry as i need to proved it in my report.
and i remember last time i try to combine my decoder, PIC and the relay power supply together but cant work. Is it i need to seperate the relay power supply from the decoder and PIC power supply?
You need to figure how much current you need and what voltages. And go from there to make you a supply that will work for your project. If you would draw out your circuit I'll knock the bugs out of it for you.
As i try last time once i plug in the coil of relay in it, i measure the voltage at the both diode pin and i found out that the voltage is 5V change to 0V.
And this does not suppose to be happen right?
Anyway this circuit i will try in the lab tommorow and will comment further...