Author Topic: How to change politary of a circuit  (Read 1909 times)

0 Members and 1 Guest are viewing this topic.

Offline 1makermoldTopic starter

  • Contributor
  • Posts: 12
  • Country: us
How to change politary of a circuit
« on: May 29, 2019, 02:33:23 am »
How could I change the polarity of this circuit, to use PNP transistors
« Last Edit: May 29, 2019, 02:37:03 am by 1makermold »
 

Offline Pooldawg

  • Contributor
  • Posts: 18
  • Country: us
Re: How to change politary of a circuit
« Reply #1 on: May 29, 2019, 03:15:09 am »
How could I change the polarity of this circuit, to use PNP transistors

Without seeing what the two rail inputs are doing, it is a little tough.

You can simply swap in the transistor, however your "enable" for the transistor will also be swapped.  When it is a low, the transister will turn on, and when it is a high, it will turn off. Vs now it is off when low and on when hi. 

This simple video may help you:

 

Offline MarkF

  • Super Contributor
  • ***
  • Posts: 2856
  • Country: us
Re: How to change politary of a circuit
« Reply #2 on: May 29, 2019, 03:32:15 am »
Is this for Lionel Model Railroad?  Is it DCC?
This takes some thought.  I re-arranged the circuit to make it clearer to me.

   
« Last Edit: May 29, 2019, 03:44:49 am by MarkF »
 

Offline mikerj

  • Super Contributor
  • ***
  • Posts: 3468
  • Country: gb
Re: How to change politary of a circuit
« Reply #3 on: May 29, 2019, 11:58:36 am »
What is the problem with using NPN transistors?
 

Offline 1makermoldTopic starter

  • Contributor
  • Posts: 12
  • Country: us
Re: How to change politary of a circuit
« Reply #4 on: May 29, 2019, 12:23:31 pm »
Yes 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.
 

Offline MarkF

  • Super Contributor
  • ***
  • Posts: 2856
  • Country: us
Re: How to change politary of a circuit
« Reply #5 on: May 29, 2019, 06:35:22 pm »
« Last Edit: May 29, 2019, 06:51:10 pm by MarkF »
 

Offline MarkF

  • Super Contributor
  • ***
  • Posts: 2856
  • Country: us
Re: How to change politary of a circuit
« Reply #6 on: May 29, 2019, 07:09:11 pm »
I simplified version of your circuit

   
 

Offline 1makermoldTopic starter

  • Contributor
  • Posts: 12
  • Country: us
Re: How to change politary of a circuit
« Reply #7 on: May 29, 2019, 07:29:08 pm »
I tried that one i couldn't get it to work, I am sending a signal kind of like the one that you have posted, but I use a 10 vac transformer and a bridge recitfer and a make shift polarized capacitor, when I get some time I will make a drawing of it
 

Offline MarkF

  • Super Contributor
  • ***
  • Posts: 2856
  • Country: us
Re: How to change politary of a circuit
« Reply #8 on: May 30, 2019, 04:09:04 pm »
I tried that one i couldn't get it to work, I am sending a signal kind of like the one that you have posted, but I use a 10 vac transformer and a bridge recitfer and a make shift polarized capacitor, when I get some time I will make a drawing of it

There's not a lot of difference between the two.  The problem might have been that the 2N3904 doesn't have enough gain.

Does this circuit have to fit inside the locomotive (or tender)?

One quick thought without any investigating, you might try a second copy of the circuit with the rail wires reversed.
Since it's a DC shift of the AC, just reversing the inputs would see the opposite DC shift.
Really need to see how you are generating the rail power or at least your waveforms.
 

Offline 1makermoldTopic starter

  • Contributor
  • Posts: 12
  • Country: us
Re: How to change politary of a circuit
« Reply #9 on: May 31, 2019, 12:18:28 am »
 This circuit fits inside the tender, if you switch the wires around the circuit doesn't work
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf