Announcement

Collapse
No announcement yet.

Circuit Design for a simple LED

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • Circuit Design for a simple LED

    Hi,
    I hope everyone doing well.
    I need some suggestions regarding isolating my circuit.
    I attached the schematic of the circuit. The function of circuit is as follows.
    1: 1s lipo battery charging circuit
    2: LED ON OFF function

    This circuit is replicated multiple times on different boards and all boards connect together in parallel to each other through J2 connector.
    There are 4 signals on J2 connector
    1: VCC
    2: GND
    3: SWITCH
    4: DOCK SIG

    At the moment, there is zero volt at VCC pin but somehow leakage voltage appears from battery to VCC pin that are 20mV. I already selected a reverse protection IC instead of TPS2051. I hope it will resolve in the next version.
    The main problem is when all boards are connected with each other. I want to isolate battery power from other boards.
    Let's say, i connect 4 these boards in parallel. Each board will have it's own battery .
    The Dock_Sig pin shows 1.4V with respect to GND when connected with other boards. When it is not connected with other boards then it shows less voltage than that i.e. 1.13V
    Here comes main problem.If somehow any board battery dry out then it start influencing other boards LED and glow them at very low brightness even if ON condition is not present. The problem appears across R11 that's takes voltage from DOCK-Sig pin and pass to the 3.3V node. As it has itself no voltage at 3.3V so it act as a power sucker.
    I need help to isolate DOCK_Sig pin from other board.

    1: Dock_Sig board connect with GND when it attach with other boards and Switch Node connect with a switch that either stay in floating state or connect with GND.

    Plz, let me know if you have any questions about it.
    Thanks

    Attached Files

  • #2
    Hi, Can anyone help me plz?
    robertferanec
    Thanks

    Comment


    • #3
      How can pin 1 of J2 be Vcc? Vcc is a net between U3 and U4 and pin 1 of J2 does not have a name, so is not connected to Vcc.

      Leakage in TPS2051 is in the dataaheet:
      Click image for larger version

Name:	Capture reverse leakage TPS2051.png
Views:	16
Size:	17.1 KB
ID:	22347
      Your Dock_Sig is directly connected to the anode of the LED in the solid state relay (MOSFET relay).

      What is the function of the DockSig?
      How do you want to drive it so that the LED is on?
      Should it be on by default?

      Comment


      • #4
        qdrives
        Yes, you are right.
        I should write VDD pin instead of VCC.
        The J2 pin 1 connect with external 5V that after passing through U1 appears at VDD node of the TP4054.
        I attached a block diagram, how multiple boards are connected with each other.
        There is only single Board C in whole design that provide 5V and GND and SW signal.
        The dock signal function is to turn OFF SSR when it connect with GND otherwise keep it ON.
        Here is the function of whole design.

        Board A or Board D when not connected with it's corresponding Board B or Board E

        The SSR always ON and 555 timer control the LED using a vibration switch. This part working fine

        Board A or Board D when connected with it's corresponding Board B or Board E through J2 connector

        Now Dock_signal will turn OFF SSR and eliminate the function of 555 timer to control LED. Now the Switch signal will control the LED directly by connecting it with GND or floating(ON or OFF).

        Let me know if you have any more questions.
        Attached Files

        Comment


        • #5
          I would replace your Solid State Relay and replace it with a P-Channel Mosfet.

          Rleds if where your LEDS are.
          R5 represents a switch to Gnd.

          Click image for larger version

Name:	Capture Fedeval DockSignal.png
Views:	17
Size:	8.9 KB
ID:	22358

          Comment


          • #6
            Hi qdrives
            Thanks for your reply.
            I also posted this question to another platform a month ago. I got some suggestions that indicate the actual problem but couldn't find the solution yet.
            It is Switch NODE.
            The switch node is connected in parallel with other boards as well.
            When the power is good in all other boards then Switch node stays at 1.4V but as soon, one board power fails, it create a 0V at it's Switch node that causes the led glow at very low brightness i.e. 2.3V Vf. The typical Vf of LED is 2.75V.
            When switch node connected with GND then it work fine. The switch node create problem only in two conditions.
            1: When other parallel board power goes to 0
            2: When it is in floating mode
            They suggested me to connect a pullup resistor to avoid floating.

            Now if i add a pull up resistor then it can solve this issue but it can add up another challenge.
            The pull up resistor will create a voltage at switch node i.e. 3.3 - Vr pull up.
            The 555 timer act as a sink in this operation. When it create logic 0V(SSR is ON) then to LED glow, it must have voltages greater than 3.3 = Vf led + Vr pull up.
            I need a way to isolate switch node from other boards in floating mode and when i have to apply GND signal then all boards can connect with GND through a single switch.
            This is where i am stuck now after long discussion with Texas instrument team.
            Thanks

            Comment


            • #7
              Click image for larger version

Name:	image.png
Views:	13
Size:	88.6 KB
ID:	22366​This is when other boards get to 0V and create a path for leakage

              Comment


              • #8
                Click image for larger version

Name:	image.png
Views:	13
Size:	49.9 KB
ID:	22368​Voltages at different node in normal operation

                Comment


                • #9
                  When all boards has good battery power and no issue.
                  Click image for larger version

Name:	image.png
Views:	13
Size:	47.6 KB
ID:	22370
                  When one board battery fail then voltages across switch node.
                  Click image for larger version

Name:	image.png
Views:	12
Size:	49.3 KB
ID:	22371

                  Comment


                  • #10
                    So the first thing is to describe what you want to do.
                    A bit from your problems and connections I assume you want to control the brightness either locally (dock sig = high) or remotely (sock sig = low).
                    The way you have done will cause EMI issues as the LED current goes from switch, through board B, to board C to Gnd. Then power from board C through board B, U1, U3 and U4 to reach the LEDs again. That is a big loop.

                    Change the architecture so that:
                    1) The dock sig powers on/off the 555 timer. You could use the same circuit as I made but this time Rleds is the 555 timer.
                    2) A kind of OR functionality that turns on the LEDs - so either Switch or the 555 timer can turn the LEDs on.
                    3) Make sure that the levels are that when the 555 is not powered, it does not turn on the LEDs.

                    For 2 and 3 you could simply have 2 FETs or transistors in parallel.

                    Comment


                    • #11
                      Your 1st assumption is correct.
                      I have to run the board locally as well as remotely.
                      In remote condition, i am doing two functions.
                      1: Charging multiple boards(Board A, Board D and so on) through a single dock station. When Board A(Board D and so on) connected with Board C through B. It must transfer it's control to Board C to turn ON/OFF LED.
                      The dock signal simply define when Board A is connected with Board C through Board B and eliminate the usage of 555 timer through SSR.
                      Regarding, your suggestion about loop, unfortunately, i have to go with it because dock station main switch is connected with boards through a cable. I can't move that switch location to anywhere else.
                      Now about your suggestions.
                      1: I couldn't see your circuit. Did you upload it somewhere?
                      2: Yes this is what i need. But there must be some signal that define when to shift control over 555 timer and when to switch. This is what i did through Dock signal. It shut off SSR when dock signal is low otherwise keep it High. The dock signal is only low when it connected with Board B.
                      3: you mean logic level of FETs?

                      I previously used FET but due to it's leakage current , it switching created issues so i moved to SSR for dock signal.

                      The dock signal only loosing power from battery i..e (3.3 V)/2K = 1.65mA when connect with GND if i am not wrong.
                      I can live with it but if it can also avoid, that would be great.
                      The main problem is Switch NODE.
                      I want to isolate this node from Board B but in the meantime, also want to control this node through switch from Board C.

                      Comment


                      • #12
                        I am not suggesting to move the switch. I am suggesting to have the LED current remain local. The control signal to drive the LEDs can be remote.

                        1) Don't you see a schematic here: https://designhelp.fedevel.com/forum...2357#post22357
                        2) you can drive the LED like this:
                        Click image for larger version

Name:	Capture Fedevel driving LED.png
Views:	16
Size:	6.1 KB
ID:	22379
                        The big difference in this circuit is that it is switching the LEDs on when supplying voltage/current and not connecting to Gnd. But it is a bit less error prone in low battery conditions.

                        The dock signal only loosing power from battery i..e (3.3 V)/2K = 1.65mA when connect with GND if i am not wrong.
                        You are wrong. True Dock signal draws 1.65mA when connected to Gnd. However, If not connected, current goes thru the LED of the SSR. Lets assume 1.5V, then you draw (3.3-1.5)/2k=0.9mA.

                        Comment


                        • #13
                          Hi,
                          Now i got your point and it make sense to me.
                          I rephrase it here to make sure we are on the same page.
                          1: Control 555 timer power using this circuit. Rleds will be supply pin for 555 timer. The Rswitch will be dock signal that will control the power to 555 timer. If floating or open then 555 timer is supposed to get power because i have only one option to connect with GND of dock signal to turn OFF power
                          ​​​​​​Click image for larger version

Name:	image.png
Views:	13
Size:	8.9 KB
ID:	22382
                          2: If dock signal turn OFF 555 timer then Switch will control LED using this circuit because 555 timer is not working anymore. Connecting with GND or Floating, Switch node suppose to turn ON/OFF LED. I need switch node connect with GND to turn ON LED. In the floating stage, it is supposed to be OFF because this condition will also available when 555 timer power ON.

                          Click image for larger version

Name:	image.png
Views:	10
Size:	6.1 KB
ID:	22383
                          ​​

                          Comment


                          • #14
                            1) Correct.
                            2a) Both switch and timer can switch on LEDs. But I do assume that switch and dock are either both connected or neither of them.
                            2b) If you also need the LEDs to turn on when switch is connected to Gnd, you need to change it to PNP transistors, swap LED and transistors, change pull-down to pull-up and diode to pull-up like in the first schematic.

                            Comment


                            • #15
                              Yes, the switch and dock will either connected both or neither of them
                              I will update the circuit and will send you for final review.
                              Thanks for all your help.

                              Comment

                              Working...
                              X
                              😀
                              🥰
                              🤢
                              😎
                              😡
                              👍
                              👎