How to Use a TTP223-Based Touch Switch © GPL3+

Today we are going to learn about touch switch based on TTP223.

  • 2,281 views
  • 2 comments
  • 8 respects

Components and supplies

Apps and online services

About this project

Introduction

Today we are going to learn the following about touch switch based on TTP223.

  • Pinout explanation
  • Four different modes of the touch switch
  • Connecting with LED
  • Interfacing with Arduino
  • Adjusting touch sensitivity

TTP223 Features

  • Operating voltage 2.0V~5.5V
  • Operating current @VDD=3V, no load
  • At low power mode typical 1.5uA, maximum 3.0uA
  • The response time max 220mS at low power mode @VDD=3V
  • Sensitivity can adjust by the capacitance(0~50pF) outside
  • Stable touching detection of the human body for replacing traditional direct switch key
  • Provides Low Power mode
  • Provides direct mode、toggle mode by pad option(TOG pin) Q pin is CMOS output
  • All output modes can be selected active high or active low by pad option(AHLB pin)
  • After power-on have about 0.5sec stable-time, during the time do not touch the keypad, And the function is disabled
  • Auto calibration for life.
  • At low power mode, the re-calibration period is about 4.0sec normally,
  • When key detected touch and released touch, the auto re-calibration will be redoing after about 16sec from releasing key
  • The sensitivity of TTP223N-BA6 is better than TTP223-BA6’s. But the stability of TTP223N-BA6 is worse than TTP223-BA6’s.

Touch switch configurations

There are four different configurations for this touch switch, which is explained below in details.

Config 1:

  • To obtain configuration one both A and B terminals should be in open position.
  • Default output state will be LOW
  • Changes the state (to HIGH) when a touch is detected and will be back to the default state when touch is released

Config 2:

  • To obtain configuration one both A should be open and B should be closed position.
  • Default output state will be LOW
  • Changes the state when a touch is detected and remains on that state until another touch is detected.

Config 3:

  • To obtain configuration one both A should be closed and B should be in open position.
  • Default output state will be HIGH
  • Changes the state (to LOW) when a touch is detected and will be back to the default state when touch is released

Config 4:

  • To obtain configuration one both A and B terminals should be closed position.
  • Default output state will be HIGH
  • Changes the state when a touch is detected and remains on that state until another touch is detected.

Adjusting touch sensitivity

Sensitivity can adjust by adding a capacitance, the value of capacitor ranges from 0 to 50 pf, where 0pf gives the full sensitivity and 50pf will gives the lowest sensitivity. For example, if you needed the touch switch to work through glass or acrylic you will be needed to adjust the sensitivity based on the thickness of the material.

Connecting with LED

Interfacing with Arduino

Video

Support me by subscribing to my channel: http://bit.ly/2L7VLn3

Code

Code

Schematics

Connecting Touch Switch With LED
Touch sw with led fejm3z1rie
Interfacing Touch Switch With Arduino
Touch sw with arduino lrvqoq99dh

Comments

Similar projects you might like

touch sensor

Project tutorial by tech guy

  • 20,761 views
  • 4 comments
  • 12 respects

Smart Touch Switch Board

Project tutorial by Ashwini kumar sinha

  • 2,697 views
  • 5 comments
  • 13 respects

Touch Controlled Light Using Arduino

Project tutorial by Amal Mathew

  • 10,860 views
  • 5 comments
  • 14 respects

IR Remote Controlled Power Switch for Rapsberry Pi 3

Project tutorial by Vilém Kužel

  • 2,188 views
  • 1 comment
  • 9 respects

DFRobot's 2.8" TFT Touch Shield for Arduino

by Techmirtz

  • 4,570 views
  • 1 comment
  • 22 respects

Capacitive Touch Keyboard Extension with Leonardo

Project tutorial by Alex Wulff

  • 5,757 views
  • 2 comments
  • 17 respects
Add projectSign up / Login