Led high side switch without relay

Thread Starter

ismailorhan06

Joined Jun 11, 2023
8
Hello friends. Below is the design I used to switch the positive line of the WS2811 led with the TTP223.I want the led to stay on as long as I touch the sensor and turn off when I take my hand off. But when I power the circuit, the led lights up, when I touch the sensor, it turns off. So it's the opposite of what I want.I find the solution by turning off the A switch on the sensor, but it doesn't make sense to me. Thanks in advance for the help
 

Attachments

crutschow

Joined Mar 14, 2008
33,358
The function description below shows that setting pin 4 to 0 (gnd) will give a high output when the pad is touched, which is what you want.
Why does that not make sense to you?

1686519527235.png
 

Thread Starter

ismailorhan06

Joined Jun 11, 2023
8
The sensor itself has a small LED, sir. When I turn off A, that tiny led stays on unless I touch the sensor. I wonder if this will shorten the life of the sensor. When I remove that tiny led for trial purposes, the sensor does not work.
 

Thread Starter

ismailorhan06

Joined Jun 11, 2023
8
Sir, rather than leds, there is a light on the sensor indicating that it is active. I think the room is led. In the current setup, it lights up all the time, and turns off when I touch it. I was asking in the sense that the continuous current on that tiny led shortens its lifespan. Otherwise, of course, ws2811s have a long life.
 

MisterBill2

Joined Jan 23, 2018
16,592
If the whole system is powered by a battery then the current for a small LED might be an issue. Otherwise it will have no effect on the life of the rest of the system. What source of information made you wonder about that???

As for the function of the circuit, the drawing presented does not indicate any connections to pins #4 or #6,
The table in post #2 shows that those pins must be connected to select the desired mode of operation.
For the mode you want. pin #6 must be pulled to V+
 

crutschow

Joined Mar 14, 2008
33,358
I was asking in the sense that the continuous current on that tiny led shortens its lifespan.
Of course its lifespan will be shortened when operating, as compared to non-operating but, unless it is being driven above its rated current, it's lifespan will likely be as long as anyone uses the circuit.
 

MisterBill2

Joined Jan 23, 2018
16,592
Unsoldering the LED to remove it did far more to reduce the lifetime than any amount of operating the device. And with the life projected as 20,000 hours until half brightness, why is that a concern. Consider how long 20,000 hours is. And that time is at full brightness.
If the logic is reversed then the control device needs to be changed. It appears that may be done by changing the bias on pin 4 of the control IC.
 

Thread Starter

ismailorhan06

Joined Jun 11, 2023
8
Çıkarmak için LED'i lehimlemek, kullanım ömrünü azaltmak için cihazı herhangi bir miktarda çalıştırmadan çok daha fazlasını yaptı. Ve yarı parlaklığa kadar 20.000 saat olarak öngörülen ömür düşünüldüğünde, bu neden endişe edilsin. 20.000 saatin ne kadar uzun olduğunu bir düşünün. Ve o zaman tam parlaklıkta.
Mantık tersine çevrilirse, kontrol cihazının değiştirilmesi gerekir. Görünüşe göre bu, kontrol IC'sinin 4 numaralı pimindeki önyargıyı değiştirerek yapılabilir.
[/ALINTI]
HSir, what I'm talking about, there is a tiny led on ttp223, when I turn off A, the mechanism I want happens. However, the led on the sensor lights up as long as the sensor is not touched. When I remove the trial led from there, the sensor does not work. Since there will be a constant current, even if it is small, on the sensor, this will affect its life. I wanted to ask him :)
 

djsfantasi

Joined Apr 11, 2010
9,131
HSir, what I'm talking about, there is a tiny led on ttp223, when I turn off A, the mechanism I want happens. However, the led on the sensor lights up as long as the sensor is not touched. When I remove the trial led from there, the sensor does not work. Since there will be a constant current, even if it is small, on the sensor, this will affect its life. I wanted to ask him :)
Have you tried replacing the LED with a small signal diode (matching polarity) to see if it works then?
 

Thread Starter

ismailorhan06

Joined Jun 11, 2023
8
O zaman çalışıp çalışmadığını görmek için LED'i küçük bir sinyal diyotuyla ( eşleşen polarite ) değiştirmeyi denediniz mi?
[/ALINTI]
:
:)I hadn't thought of that much. After all, isn't this platform just to get the opinions of our esteemed teachers? Thank you for your opinion. I would be very happy if you write the code of the part. Respects.
 

djsfantasi

Joined Apr 11, 2010
9,131
:) I hadn't thought of that much. After all, this platform is not just to get the opinions of you, valuable teachers. Thank you for your opinion. I would be very happy if you could write the code of the part. Respects.
Code? In your diagram in post #1, there are no components/ devices that require code.
 

MisterBill2

Joined Jan 23, 2018
16,592
Replacing that tiny indicator LED with a diode will not improve anything, but because the voltage drop of a regular diode is quite a bit less it will change the operation of the sensor. And what is the intended benefit from removing that small LED that is part of the sensor module?? I have not seen any statement of what the anticipated benefit is thought to be. And I wonder what it is.
 

Thread Starter

ismailorhan06

Joined Jun 11, 2023
8
Bu küçük gösterge LED'ini bir diyotla değiştirmek hiçbir şeyi iyileştirmez, ancak normal bir diyotun voltaj düşüşü biraz daha az olduğu için sensörün çalışmasını değiştirir. Ve sensör modülünün parçası olan o küçük LED'i çıkarmanın amaçlanan faydası nedir? Beklenen faydanın ne olduğunun düşünüldüğüne dair herhangi bir açıklama görmedim. Ve bunun ne olduğunu merak ediyorum.
[/ALINTI]
HSir, our aim is to keep that led on the sensor lit as long as it is not touched. I think this will have an impact on the sensor in terms of lifetime, as current flows.
 

MisterBill2

Joined Jan 23, 2018
16,592
LED indicators thatare operated within their limits will outlast the equipment that they are part of. LEDs are totally different from incandescent bulbs and what is called "end of life" is when the light output is reduced to half of the original level. Thus there is no reason to consider the LED lifetime. Consider how many years equal 20,000 hours, and then consider that is the length of constant operation that is promised until the light output drops to half. Most LEDs will perform much longer than that.
 
Top