No video

TTP223 Capacitive Touch Switch Revisit

  Рет қаралды 26,043

Julian Ilett

Julian Ilett

4 жыл бұрын

JLCPCB Prototype for $2(Any Color): jlcpcb.com
Taking another look at the TTP-223 touch sensor module. Making the module breadboard-friendly with a new Dupont pin header. Modifying the module to enable toggle mode.

Пікірлер: 62
@maicod
@maicod 4 жыл бұрын
I'm loving this shed remote control series
@JulianIlett
@JulianIlett 4 жыл бұрын
Cheers Maico - tricky bit coming next, trying to get the ackpayload to work :)
@maicod
@maicod 4 жыл бұрын
I haven't been playing with RF between 2 Arduino's myself so no help from me sadly but I know you'll get there !
@psubond
@psubond 4 жыл бұрын
Put a little piece of silicone tubing on your solder sucker tip and it will allow you to get tip right against the soldering iron/joint
@simonhopkins3867
@simonhopkins3867 4 жыл бұрын
Thanks for the tip. 👍🏻
@mrnixie
@mrnixie 4 жыл бұрын
Julian, I have faced the same "toggle/momentary" dilemma (may be too strong a word!) as you do. I decided to keep the hardware switch in momentary mode, and perform the latch function in a couple of lines of code instead. Advantages: you can set the start condition of the switch during a software reboot. You can override the value by program if you need to (for example temp over-range forces fan on, regardless of switch state), or you might choose to "lockout" the button's function during certain program phases or times, you can implement dual functions by a short-press, or long-press. I notice a lot of the so-called toggle switches in my car work this way, too.
@webchimp
@webchimp 4 жыл бұрын
The trick with solder sucking a plated through hole is to hold the board vertically and place the sucker on one side and the iron on the other. That way you can keep the heat on and get a better seal with the tip of the sucker.
@tin2001
@tin2001 4 жыл бұрын
That's how I do it. Big boards I hold between my knees, small boards I just sort of lean on the hand that's holding the sucker. I really need to get a little vice for my bench 😂
@massimookissed1023
@massimookissed1023 4 жыл бұрын
I have some red TTP223 boards, they're about the size of a finger nail, and they _do_ each have pads to solder-select hi/lo & toggle.
@JulianIlett
@JulianIlett 4 жыл бұрын
Same type due here soon :)
@jamesthepuerilis
@jamesthepuerilis 4 жыл бұрын
i hate solder suckers like that, prefer to use desoldering wick
@paranoiia8
@paranoiia8 4 жыл бұрын
Weird design for that button. If it's "touch" button it should be totally flat and all components and connector should be at the bottom...
@ClokworkGremlin
@ClokworkGremlin 4 жыл бұрын
That's how the ones I bought are laid out. Also smaller and significantly cheaper than the style he's got here. (Brand is inconsequential, there are a dozen different brand names on both styles, but they're basically the same 2 variants.) The ones I bought also have little open blobs on the AHLB and TOG pins, so you can bridge them if you want to change the mode without needing to get all hacky like Julian did. [edit]Ah, he mentions that he also has the "red" style, he's just playing with the "blue" style right now.
@ParedCheese
@ParedCheese 4 жыл бұрын
Wouldn't an ESP32 with an "external' antenna be a better idea? You'd get the extra bit of range you need *and* built-in touch switches.
@unperrier5998
@unperrier5998 4 жыл бұрын
Why not use a simple SPST switch instead? Is it for fun or because you don't want to bother with debouncing? Or because a 5p switch doesn't make an interesting video? ;) (SPST or any other more suitable type of switch)
@gregclare
@gregclare 4 жыл бұрын
@Julian Ilett I’m curious if the Active Low / Active High pin setting also determines the power-on state? eg. If the initial power-on state is Off (seems logical to assume), then you’d also assume this pin might control if the output is initially high or low after power-on initialisation. In which case this pin would still be relevant even with Toggle mode selected. ie. On power-up do you want the fan to default to On or Off?
@JulianIlett
@JulianIlett 4 жыл бұрын
Yes it does - and this became an issue in my latest video. I used a simple inversion in the sketch to reverse the power up state. Cheers Greg :)
@stevesm2010
@stevesm2010 4 жыл бұрын
They will both actually be Trancievers then ;-)
@JulianIlett
@JulianIlett 4 жыл бұрын
They will indeed :)
@Dudleymiddleton
@Dudleymiddleton 4 жыл бұрын
I remember around 1977 my parents rented this cutting-edge Mitsubishi TV - Didn't have a remote control they weren't about yet unless you were rich, but the channel change buttons were touch sensitive non tactile little chrome strips which was quite a novelty at the time, just touching them to turn the telly over. I guess this is similar technology using capacitance?
@GeorgeGeorge-xj2bc
@GeorgeGeorge-xj2bc 4 жыл бұрын
This was based on the high input impedance and had many problems as random channel changings due to electrostatic,humidity,air blowing.
@Richardincancale
@Richardincancale 4 жыл бұрын
I remember babysitting in a house with one of these around that time. The house was old and damp with a stone floor. Had to jump while having finger on the touch pad to get the TV to change channels! The growly dog didn’t encourage frequent changes!!
@californiakayaker
@californiakayaker 4 жыл бұрын
Amazing what you can do when you solder suck from under the board. Visualizing what is happening and whether you actually right on the hole from underneath is a little tricky though. I've recently picked up a Anesty ZD915 but haven't used it yet, barely have time to use my vacuum cleaner lately lol
@rapunzeleh546
@rapunzeleh546 3 жыл бұрын
i purchased some of these from aliexpress a few years ago and just now found a practical use them... just to test them i connected one to a USB cable on my computer, with a male/female connector, then just wired red to vcc and black to grnd.... get a red light, not green like every site says i should get...and the light doesn't change when i touch it - long touch, short touch, back front, nothing... so figured it was a bum one... got another one... same thing... got ANOTHER one - same thing. so clearly i'm doing something wrong... just to test to see if they even recognize a touch, not even wiring a circuit or anything... am i just stupid or something? what's the deal? any idea?
@entozoon
@entozoon 2 жыл бұрын
@Julian Ilett If the receiver sends an acknowledgement packet, does the sender send receipt of that acknowledgement? and the receiver receipt of that receipt of acknowledgement? :P
@minkloco619
@minkloco619 2 жыл бұрын
Nice video can I use this fr a drum machine project?
@hukuzatuna
@hukuzatuna 4 жыл бұрын
Julian, you could write a machine learning algorithm (well, probably an ANN) to optimize the humidity at which the fan should turn on and the length of time the fan should run. :-)
@JulianIlett
@JulianIlett 4 жыл бұрын
I'm not that good at coding :)
@hukuzatuna
@hukuzatuna 4 жыл бұрын
@@JulianIlett What's your target humidity, and do you have dehumidification to hit the target humidity even if the ambient humidity is higher? I may have some time this weekend to take a shot at it. ;-)
@RandomElectronics1
@RandomElectronics1 4 жыл бұрын
If I designed this board, there would be a jumper on the touch sensor board to set the toggle mode. I know that the board featured in the video board does NOT have a jumper to set the toggle mode. Soldering those 2 pins on the chip together might have been hard.
@bobbunni8722
@bobbunni8722 4 жыл бұрын
4:56
@stevefox3763
@stevefox3763 4 жыл бұрын
I'm waiting for the headline 'youtuber arrested for high tech cannabis grow' ha ha.
@nkos6376
@nkos6376 4 жыл бұрын
goooooooooood morning Juliet
@Smartpalorg
@Smartpalorg 2 жыл бұрын
Is there any way to toggle ttp223b green led ?
@anvarthahathaha5361
@anvarthahathaha5361 4 жыл бұрын
Can we use this to 5 mm glass
@FG-Supercharged
@FG-Supercharged 4 жыл бұрын
Why would you send a *continuous* stream of "ons/offs" via the transmitter when you could program to just look for a coded "on/off" signal at the other end and switch/toggle as needed (saving power at the transmitter side)?
@JulianIlett
@JulianIlett 4 жыл бұрын
Because there may be lost packets at the extreme edge of the radio's range.
@FG-Supercharged
@FG-Supercharged 4 жыл бұрын
But I thought you were going to use an "ACK"nowledge return from the other device to confirm "on/off" as well?
@JulianIlett
@JulianIlett 4 жыл бұрын
Acknowledge the acknowledge payload? Probably not :)
@djmikolajczak
@djmikolajczak 4 жыл бұрын
You should have the unit in the shed report back the battery level once or twice a day. I know you're planning on putting a big battery out there but it's going to get low at some point
@JulianIlett
@JulianIlett 4 жыл бұрын
Battery voltage will be sent to the display :)
@joshuabest100
@joshuabest100 4 жыл бұрын
If you need any 1 way 2 way 4 way or 8 way relay boards let me know I'll post you some out I have tons I also have other bits like ultrasonic sensors and temp sensors
@hitterz
@hitterz Жыл бұрын
May you show me how to connect one of these please and thank you, message me back
@webchimp
@webchimp 4 жыл бұрын
Meant to ask on a previous vid, what's the capacitor doing on the transmitter board?
@JulianIlett
@JulianIlett 4 жыл бұрын
Apparently it helps keep the transmitter power at full strength
@webchimp
@webchimp 4 жыл бұрын
Fair enough, don't need mine to go too far so I probably leave that off. Might make the battery last longer
@ClokworkGremlin
@ClokworkGremlin 4 жыл бұрын
Helps keep the power from dropping out during spikes in power draw.
@pulesjet
@pulesjet 4 жыл бұрын
I'm quite sure your RF distance issue could be overcome using a small Yaggi type antenna. Maybe even a Bow Tie type.
@andrewkieran8942
@andrewkieran8942 4 жыл бұрын
Just slowing the transmission rate down from 1mbps to 250kbps would probably increase his range enough to resolve any issue.
@followthetrawler
@followthetrawler 4 жыл бұрын
I'm still struggling to understand the human involvement here. Why not fully automate this so when a humidity level is reached the fan turns on automatically? You wont always be at your desk, or awake... fun though.
@JulianIlett
@JulianIlett 4 жыл бұрын
Eventually I will :)
@duncanx99
@duncanx99 4 жыл бұрын
Pins coming out the bottom!!! Painful...
@chuxxsss
@chuxxsss 4 жыл бұрын
Never understood why they solder them pins in when must time you need straight pins.
@gbraadnl
@gbraadnl 4 жыл бұрын
here in china they are offered with pins unsoldered or soldered.
@chuxxsss
@chuxxsss 4 жыл бұрын
@@gbraadnl I think you are right. If supplied just put them in with it not soldered. Hope you are all well. We are all wishing the best for china and the whole world at this stage. Stay safe. .注意安全
@gbraadnl
@gbraadnl 4 жыл бұрын
@@chuxxsss thanks for the kind words. family is safe. Work from home, kids have online classes. Feel bad about the situation. Lets hope this is over soon.
@kamalesh0101
@kamalesh0101 4 жыл бұрын
Hey juliann.. love from india
@ronringel9132
@ronringel9132 4 жыл бұрын
Comment #31, Well done.
@MarkGoodfellow
@MarkGoodfellow 4 жыл бұрын
Hello Julian
@sailingoctopus1
@sailingoctopus1 4 жыл бұрын
Mark Goodfellow probably fell asleep while writing a comment; Julian's voice has a soporific effect on me, maybe it has the same effect on Mark
@ElmerFuddGun
@ElmerFuddGun 4 жыл бұрын
@@2000jago - Come on. At least Mark wasn't saying "first!" like so many kids do.
From Start To Finish: TTP223 Touch Sensor
15:06
David Watts
Рет қаралды 20 М.
The Joker saves Harley Quinn from drowning!#joker  #shorts
00:34
Untitled Joker
Рет қаралды 53 МЛН
Spot The Fake Animal For $10,000
00:40
MrBeast
Рет қаралды 212 МЛН
艾莎撒娇得到王子的原谅#艾莎
00:24
在逃的公主
Рет қаралды 43 МЛН
Every Component of a Switch Mode Power Supply Explained
23:10
ElectrArc240
Рет қаралды 280 М.
Making the TTP223 less sensitive using a capacitor
4:32
Overclockers
Рет қаралды 10 М.
TTP223 Capacitive Touch Switches
9:18
Simple Electronics
Рет қаралды 83 М.
Breadboard capacitive touch sensor tutorial
15:13
FriendlyWire
Рет қаралды 86 М.
These sound illusions fool almost everyone
24:55
Veritasium
Рет қаралды 1,5 МЛН
Horrific LED tester that can literally kill you - (with scary schematic)
15:48
Giant RC Rocket Plane
19:46
ProjectAir
Рет қаралды 373 М.
Postbag: #32(b) - Capacitive Touch Switch Modules TTP224/226
16:55
Julian Ilett
Рет қаралды 73 М.
PCIE Meltdown
10:29
Julian Ilett
Рет қаралды 5 М.
I tried Future Technology! (that you can use TODAY)
12:22
GreatScott!
Рет қаралды 271 М.