Using transistor as a relay.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Colt45ws
    Senior Member
    • Jan 2009
    • 174
    • USA

    #1

    Using transistor as a relay.

    Im attempting to figure out how to install door switch panels in my car from a newer model year. Everything is pretty much just wired straight up just with different plugs.
    Except for the Lock/unlock switch.
    On my model year only the up-optioned vehicles like mine received a DDM (Driver Door Module) which is needed for keyless entry and the like. So some vehicles had the lock/unlock switch directly running the lock actuators by switching +12v to them and on the up models it would still switch +12v but only to a pin on the DDM which would then take care of actually running the lock actuators. Basically the switches are designed to switch positive.
    On the newer years, all vehicles receive a DDM so it simply sends VREF out on the lock and unlock wires and the switch itself when pressed shorts the corresponding pin to ground. They are only designed to switch to ground.
    So I need to have a setup I can use ground switched to switch positive. I confirmed the current through the switch on my car is around 35mA to the DDM.
    I have looked on the internet for how to do something like this, but I just get confused.
    Using what is given at http://www.rason.org/Projects/transwit/transwit.htm it looks like I would need a 28-29KOhm resistor as R1 and 280-290KOhm for R2 for the shown 2N3906. Does this sound right? I selected 13V as a middle ground input but there is a pretty wide range of voltage in a vehicle; do you think it would stay "saturated" in say the 10-15V range?
  • PCBONEZ
    Grumpy Old Fart
    • Aug 2005
    • 10661
    • USA

    #2
    Re: Using transistor as a relay.

    Wiring diagrams would help. - Hand sketch will do.

    This DDM thing is in parallel with the switches so either works the lock?
    .
    Mann-Made Global Warming.
    - We should be more concerned about the Intellectual Climate.

    -
    Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind.

    - Dr Seuss
    -
    You can teach a man to fish and feed him for life, but if he can't handle sushi you must also teach him to cook.
    -

    Comment

    • b700029
      Banned
      • Sep 2010
      • 640

      #3
      Re: Using transistor as a relay.

      Using a MOSFET may be more convenient since they don't need biasing resistors when used as switches.

      Comment

      • Colt45ws
        Senior Member
        • Jan 2009
        • 174
        • USA

        #4
        Re: Using transistor as a relay.

        This is what I drew up last night using my original diagram and pasting in the newer switch design then wiring it up with relays. I think some sort of solid state switching action could be much smaller and less complicated as far as actual operation. Relays are way over kill for the actual 35mA going to the DDM.
        http://colt45.ws/cvn/DDM_lock_revised.gif
        The DDM is what actually operates the lock mechanism. The switch just tells it to do so. It basically a computer. It probably has relays of its own internally that operate locks.
        Last edited by Colt45ws; 08-16-2011, 10:48 PM.

        Comment

        • PCBONEZ
          Grumpy Old Fart
          • Aug 2005
          • 10661
          • USA

          #5
          Re: Using transistor as a relay.

          I think I'm lost.
          Have a drawing before the mods?

          Is the light bulb lookin' thing in the "Door Lock Switch" representing the lock's solenoid?
          .
          Mann-Made Global Warming.
          - We should be more concerned about the Intellectual Climate.

          -
          Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind.

          - Dr Seuss
          -
          You can teach a man to fish and feed him for life, but if he can't handle sushi you must also teach him to cook.
          -

          Comment

          • Colt45ws
            Senior Member
            • Jan 2009
            • 174
            • USA

            #6
            Re: Using transistor as a relay.

            My car: http://colt45.ws/cvn/DDM_lock.gif
            2010: http://colt45.ws/cvn/2010locks.jpg
            The light bulb is just a light bulb. I scaled it up because the screen shot is small so it lacks a lot of detail.

            Comment

            • Colt45ws
              Senior Member
              • Jan 2009
              • 174
              • USA

              #7
              Re: Using transistor as a relay.

              Im liking the MOSFET idea! It looks like I need a P-Channel type.
              Would something like this work?
              http://www.mouser.com/ProductDetail/...jjUTbfift7g%3d

              I drew a schematic again. I tried to to a better job this time.
              http://colt45.ws/cvn/DDM_lock_FET.gif

              Comment

              • japlytic
                Badcaps Legend
                • Oct 2005
                • 2086
                • Australia

                #8
                Re: Using transistor as a relay.

                I have seen high power solid-state DC relays from Jaycar.
                The AC and DC types of solid-state relay are not interchangable.
                My first choice in quality Japanese electrolytics is Nippon Chemi-Con, which has been in business since 1931... the quality of electronics is dependent on the quality of the electrolytics.

                Comment

                • Colt45ws
                  Senior Member
                  • Jan 2009
                  • 174
                  • USA

                  #9
                  Re: Using transistor as a relay.

                  I also seen solid state relays as well, but they were not cheap. If I was going to do that, I might as well get regular relays..
                  Also, I just realized my FET circuit will not work. It looks like they would have to be fed source voltage at the gate in order to actually turn them 'off'.

                  Comment

                  • joshnz
                    Badcaps Veteran
                    • Feb 2011
                    • 969
                    • New Zealand

                    #10
                    Re: Using transistor as a relay.

                    Why can't you move the grounded line from the switch to +?
                    My pc
                    CPU : AMD PHENOM II x4 @ 3.5Ghz
                    MB : ASUS M4A89TD PRO USB3
                    RAM : Kingston ValueRAM 16gb DDR3
                    PSU : Cooler Master 850W Silent Pro
                    GPU : ATI Radeon HD 6850

                    Comment

                    • Colt45ws
                      Senior Member
                      • Jan 2009
                      • 174
                      • USA

                      #11
                      Re: Using transistor as a relay.

                      Then the light wont work.

                      Comment

                      • joshnz
                        Badcaps Veteran
                        • Feb 2011
                        • 969
                        • New Zealand

                        #12
                        Re: Using transistor as a relay.

                        oops didn't take not of that.
                        I'll be back soon i'll cook up something for ya.
                        My pc
                        CPU : AMD PHENOM II x4 @ 3.5Ghz
                        MB : ASUS M4A89TD PRO USB3
                        RAM : Kingston ValueRAM 16gb DDR3
                        PSU : Cooler Master 850W Silent Pro
                        GPU : ATI Radeon HD 6850

                        Comment

                        • joshnz
                          Badcaps Veteran
                          • Feb 2011
                          • 969
                          • New Zealand

                          #13
                          Re: Using transistor as a relay.

                          Here is something using common components.
                          Attached Files
                          My pc
                          CPU : AMD PHENOM II x4 @ 3.5Ghz
                          MB : ASUS M4A89TD PRO USB3
                          RAM : Kingston ValueRAM 16gb DDR3
                          PSU : Cooler Master 850W Silent Pro
                          GPU : ATI Radeon HD 6850

                          Comment

                          • PCBONEZ
                            Grumpy Old Fart
                            • Aug 2005
                            • 10661
                            • USA

                            #14
                            Re: Using transistor as a relay.

                            I don't see any functional difference in the two kinds of switches.
                            .
                            Why wouldn't this work?
                            .
                            Attached Files
                            Mann-Made Global Warming.
                            - We should be more concerned about the Intellectual Climate.

                            -
                            Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind.

                            - Dr Seuss
                            -
                            You can teach a man to fish and feed him for life, but if he can't handle sushi you must also teach him to cook.
                            -

                            Comment

                            • joshnz
                              Badcaps Veteran
                              • Feb 2011
                              • 969
                              • New Zealand

                              #15
                              Re: Using transistor as a relay.

                              Originally posted by PCBONEZ
                              I don't see any functional difference in the two kinds of switches.
                              .
                              Why wouldn't this work?
                              .
                              It's to do with the light on each switch from what I seen.
                              One system is pull low to do it's thing the other is pull high.
                              My pc
                              CPU : AMD PHENOM II x4 @ 3.5Ghz
                              MB : ASUS M4A89TD PRO USB3
                              RAM : Kingston ValueRAM 16gb DDR3
                              PSU : Cooler Master 850W Silent Pro
                              GPU : ATI Radeon HD 6850

                              Comment

                              • PCBONEZ
                                Grumpy Old Fart
                                • Aug 2005
                                • 10661
                                • USA

                                #16
                                Re: Using transistor as a relay.

                                Originally posted by joshnz
                                One system is pull low to do it's thing the other is pull high.
                                When all you do is change the switch that doesn't matter.

                                Originally posted by joshnz
                                It's to do with the light on each switch from what I seen.
                                Looks to me like control of the light bulb is via something in diagrams 10-9 and 10-10 which aren't shown.
                                -
                                If that isn't true then looking at the original drawing it looks like the light would be on the whole time the ignition switch is, including when engine is running.
                                .
                                Last edited by PCBONEZ; 08-17-2011, 07:01 AM.
                                Mann-Made Global Warming.
                                - We should be more concerned about the Intellectual Climate.

                                -
                                Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind.

                                - Dr Seuss
                                -
                                You can teach a man to fish and feed him for life, but if he can't handle sushi you must also teach him to cook.
                                -

                                Comment

                                • mathog
                                  Badcaps Legend
                                  • Mar 2010
                                  • 2655

                                  #17
                                  Re: Using transistor as a relay.

                                  Originally posted by Colt45ws
                                  I also seen solid state relays as well, but they were not cheap.
                                  Well, that depends on how much current is required. If you can drive the load with a a couple of hundred milliamps, a Clare LCA110 can be had for $1.90 from Mouser. It will only do 240 mA max though, in the DC configuration (both Mosfet's in parallel.) 1A and 2A parts are available from other manufacturers, and they cost less than $5. I really like the solid state relays because there's no way to blow out the mosfet gate, since these are driven optically by an LED inside the package. It is, however, possible to blow out the LED if you forget to put a resistor in series with it, and some relays could be damaged by too much reverse voltage at the input. (So don't wire it up wrong!)

                                  Comment

                                  • Colt45ws
                                    Senior Member
                                    • Jan 2009
                                    • 174
                                    • USA

                                    #18
                                    Re: Using transistor as a relay.

                                    The light bulb is always on in run or acc. That is all the +12v feed is for. The switch is connected to the ground side of the bulb.

                                    Comment

                                    • Colt45ws
                                      Senior Member
                                      • Jan 2009
                                      • 174
                                      • USA

                                      #19
                                      Re: Using transistor as a relay.

                                      Originally posted by joshnz
                                      Here is something using common components.
                                      This is perfect! Thank you!

                                      Comment

                                      • Gordon01
                                        Member
                                        • Aug 2011
                                        • 33
                                        • Russia

                                        #20
                                        Re: Using transistor as a relay.

                                        Originally posted by Colt45ws
                                        So I need to have a setup I can use ground switched to switch positive. I confirmed the current through the switch on my car is around 35mA to the DDM.
                                        Much simpler idea:



                                        As FET you can use: IRF5305, IRF4905, IRF5210, IRF9Z24, IRF9Z34.. or just about any P-Channel MOSFET in TO220 case(because you need very small current). TO220 for easy air-wiring and you can screw it to something.
                                        You can reduce R1 and R2 if you want... just need to R1/R2 = 10/1
                                        Attached Files
                                        Last edited by Gordon01; 08-18-2011, 04:19 AM.

                                        Comment

                                        Related Topics

                                        Collapse

                                        • SluggerB
                                          Help making a switch work the opposite way with a relay
                                          by SluggerB
                                          I have a very small float switch, I'm using in a very small tank. It only fits in one way. Link https://www.amazon.com/uxcell-Switch.../dp/B07DZ1J2GB

                                          I want the switch to be open when the water is high, and closed when the water is low. Unfortunately it works the opposite. And since this switch is designed to be underwater, it's all sealed up, there is no taking it apart or hacking it up.

                                          It will be driving a water pump, basic idea, when the water is low, switch closes, which turns on water pump, when enough water is in the tank, float switch floats,...
                                          02-07-2025, 07:57 PM
                                        • CuriousJohn
                                          Burco boiler power problem
                                          by CuriousJohn
                                          Burco BCPLSAFWM5L 5 Litre Wall Mounted Automatic Water Boiler With Filtration UK 240v

                                          Does anybody have any experience with these Burco units at all there is no record of them on the forum lol and a proper service manual would be nice. I invite you all to pesuade me not to botch repair it with a 5v relay, read on.

                                          This unit was rescued from a skip 3 years ago, the only fault it had then was no backight display (plus it wanted a new probe set and top seal) but the screen was never an issue you can still see the screen as is and I just use it to get 5 Litres of very hot...
                                          12-22-2024, 10:25 AM
                                        • Document Archive
                                          Acer Switch Switch V 10 SW5-017P Hybrid (2-in-1) V 10 Specification for Upgrade or Repair
                                          by Document Archive
                                          This specification for the Acer Switch Switch V 10 SW5-017P Hybrid (2-in-1) can be useful for upgrading or repairing a laptop that is not working. As a community we are working through our specifications to add valuable data like the Switch V 10 SW5-017P boardview and Switch V 10 SW5-017P schematic. Our users have donated over 1 million documents which are being added to the site. This page will be updated soon with additional information. Alternatively you can request additional help from our users directly on the relevant badcaps forum. Please note that we offer no warranties that any specification,...
                                          09-06-2024, 05:30 AM
                                        • Natob82
                                          Micro Momentary Push Switch?
                                          by Natob82
                                          Great to be here! I'm a newbie here trying to find a "micro", momentary push switch to repair a Sony "clamshell" video walkman. This micro switch has long since discontinued by Sony, however I hope there are third-party switches of the same size and functionality that I might be able to source to play the same role. The purpose of this switch is to tell the video walkman that the user has activated the mechanical tape eject button, turning that physical action into an electronic signal that tells the tape transport mechanism to open so one can load or eject a video tape. I...
                                          12-21-2022, 05:22 AM
                                        • grimacelord
                                          NEC TurboExpress On/Off Power Switch Replacement Help
                                          by grimacelord
                                          Hello,

                                          I've been working on a NEC TurboExpress and I accidentally got the plastic inside the power ON/OFF switch too hot while doing other repairs and melted it. At first, it would still power on when sliding the switch, but you had to really press inward while sliding to get it to work.

                                          I removed the switch component and tried to gently melt the plastic back so it would work more reliably and all I managed to do was make it worse.

                                          I need to find a replacement On/OFF switch for this, but having some trouble figuring out which kind of switch I need....
                                          11-09-2023, 09:49 AM
                                        • Loading...
                                        • No more items.
                                        Working...