CAPACITIVE TOUCH SENSOR 4X4

 CAPACITIVE TOUCH SENSOR 4X4

                                              Capacitive touch sensor 4X4 has 16 touch switches. Capacitive sensing (sometimes capacitance sensing) is a technology, based on capacitive coupling, that can detect and measure anything that is conductive or has a dielectric different from air. Capacitive sensors can also replace mechanical buttons. We can interface 4X4 capacitive touch sensor with Arduino to automatically identify the touch and given an indication
 

Application:

  • Used to proximity sensing (personnel detection, light switching, vehicle detection).
  • Switches (lamp dimmer, keyswitch, limit switch).
  • For measurement  of  flow, pressure, liquid level, spacing, scanned  multi plate  sensor, thickness measurement, ice detection, shaft angle, linear position, and balances.

Sample Project With Arduino:

                              In this we going to identify the touch using the capacitive touch sensor 4x4.

Materials required:

  • Capacitive Touch 4x4
  • Arduino UNO

Circuit:


Code:

#include <TTP229.h>

const int SCL_PIN = 8;    // The pin number of the clock pin.

const int SDO_PIN = 9;     // The pin number of the data pin.

TTP229 ttp229(SCL_PIN, SDO_PIN);   // TTP229(sclPin, sdoPin)

void setup()

{          Serial.begin(115200);

            Serial.println("Start Touching Several Keys Simultaneously!");

}

void loop()

{         uint8_t sum = 0;

            uint16_t keys = ttp229.ReadKeys16();     // Blocking

            for (uint8_t i = 0; i < 16; i++)

                        if (keys & (1 << i))

            sum += i + 1;

            Serial.println(sum);

}


Comments

Popular posts from this blog

Voice Record & Playback Module

GSM Sim800L

GPS