Maker Pro
Maker Pro

Multiple ttp223 on same power supply

Mysterymachine

Sep 30, 2022
5
Joined
Sep 30, 2022
Messages
5
Hey guys I have a little problem and need some help. I have ESP, ws2812 led and ttp223 sensor. If I connect one touch sensor on ESP everything works fine, but as soon as I connect the second sensor with second LED strip I can't individually control each strip, need to touch both sensors for strips to work. I suppose I need some diode somewhere for that to work or a resistor on D4 pin but to be honest dont know where to put it, also i would like to put some capacitor on each strip for faster response bur don't know which one to use (each strip has 5 LED's in it)
Thanks in advance and sorry if something is not explained well :)

First case that works
untitled.jpg

Second case
second.jpg
 
Last edited:

Bluejets

Oct 5, 2014
5,989
Joined
Oct 5, 2014
Messages
5,989
Where does your 5v supply come from and what is it rated at.?
 

Mysterymachine

Sep 30, 2022
5
Joined
Sep 30, 2022
Messages
5
Where does your 5v supply come from and what is it rated at.?
Power supply is s-30-5 5V 6A, and input from it on schematic is in top right corner. Like I said everything works but touch sensors are working like AND gate (both need to be pressed, and when they are both LED strips light up) idea is if I touch bottom sensor the bottom LED lights up, and if i touch top sensor only the top strip lights. Jumpers are in Jog low output (only A jumper is welded), ignore black wire that's for increasing sensitivity.309553355_784880239433132_5932986324434994685_n.jpg
 

Mysterymachine

Sep 30, 2022
5
Joined
Sep 30, 2022
Messages
5
I have tested without microcontroller and it works as it's supposed to do. Question is now which resistor to put and where exactly on data line (D4 pin). I have read somewhere that it need to be 220 ohm pulldown resistor but to be honest that does not mean to me much
 
Last edited:

bertus

Moderator
Nov 8, 2019
2,722
Joined
Nov 8, 2019
Messages
2,722
Hello,

You can not drive the ledstrip directly from the TTP223 module.
The module can only drive 8 mA.
The ledstrip will likely need much more current.
You will need a driver between the TTP223 module and the ledstrip.

Bertus
 

Attachments

  • ttp223-datasheet.pdf
    280.7 KB · Views: 1

Mysterymachine

Sep 30, 2022
5
Joined
Sep 30, 2022
Messages
5
Hello,

You can not drive the ledstrip directly from the TTP223 module.
The module can only drive 8 mA.
The ledstrip will likely need much more current.
You will need a driver between the TTP223 module and the ledstrip.

Bertus
I know that i tested and it drives the strip perfectly (i only need it for a few seconds and each strip only contains 5 led's) I will add logic level FET transistor later and some capacitors when I come to stage of designing pcb but this problem will still persist where the ttp's will work like and gate when connected to esp
 

Mysterymachine

Sep 30, 2022
5
Joined
Sep 30, 2022
Messages
5
Hello,

You can not drive the ledstrip directly from the TTP223 module.
The module can only drive 8 mA.
The ledstrip will likely need much more current.
You will need a driver between the TTP223 module and the ledstrip.

Bertus
here is the link to youtube video it may be easier to demonstrate
 
Top