Page 1 of 1

Help with a circuit again

Posted: Tue May 28, 2019 5:20 am
by 1moldmaker
How can I change the polarity of this circuit by using PNP transistors

Re: Help with a circuit again

Posted: Wed May 29, 2019 5:27 am
by 1moldmaker
This is a circuit for Lionel trains that run on 0-18 vac. It is not DCC
What it does is when it gets a signal of positive dc voltage to the outside rail it turns on the optocoupler and it turns on the whistle, I would like to reverse the polarity so when I send a negative dc voltage to the outside rail it would activate a bell.

Re: Help with a circuit again

Posted: Wed May 29, 2019 1:15 pm
by dyarker
bell.png
bell.png (10.96 KiB) Viewed 5861 times
NPN to PNP, reverse diodes, reverse polarized capacitors, pin 1 of optocoupler stays positive.

Cheers,

Re: Help with a circuit again

Posted: Wed May 29, 2019 5:07 pm
by 1moldmaker
thanks, never even thought of switching the leads going into the optocoupler

Re: Help with a circuit again

Posted: Thu May 30, 2019 12:33 pm
by haklesup
I guess that changes the trigger point from the falling edge to the rising edge of the outside rail. you may need to change the values of R3 and R4 if the bias current to turn off the Darlington PNP is different.

Re: Help with a circuit again

Posted: Fri May 31, 2019 5:14 pm
by 1moldmaker
Im using the pnp equivalent of a 2n2222a, its a 2n2907a, I am going to bread board this circuit tonight,
thanks again