Hi there guys, im still wrapping my head around electronics and transistors and such.
I have a project im working on.
I prototyped it on a breadboard and it worked perfectly. but.. i did a rookie move and didnt test with the LM78L05 in circuit.
I want to drive a 12v buzzer in a project.
In the example below, the pic is turning RA0 on and off. when its off my plan was to have the transistor turn on.
then when its on turn the transistor off again. But i found once i put the LM78L05 in circuit the transistor would only stay on.
I feel i might be missing something.. I did try using a PNP transistor in which then switches the NPN on and off and that worked. but is there a better way than having 2 transistors?
Thanks for the help.
I have a project im working on.
I prototyped it on a breadboard and it worked perfectly. but.. i did a rookie move and didnt test with the LM78L05 in circuit.
I want to drive a 12v buzzer in a project.
In the example below, the pic is turning RA0 on and off. when its off my plan was to have the transistor turn on.
then when its on turn the transistor off again. But i found once i put the LM78L05 in circuit the transistor would only stay on.
I feel i might be missing something.. I did try using a PNP transistor in which then switches the NPN on and off and that worked. but is there a better way than having 2 transistors?
Thanks for the help.
Attachments
-
6.4 KB Views: 21