CAPACITIVE TOUCH SWITCH 1x4

 CAPACITIVE TOUCH SWITCH 1x4

                                    Capacitive touch sensor 1X4 has four 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 1X4 capacitive touch sensor with Arduino to automatically identify the touch and given an indication..


Application:

  • For measurement  of  flow, pressure, liquid level, spacing, scanned  multi plate  sensor, thickness measurement, ice detection, shaft angle, linear position, and balances.
  • switches (lamp dimmer, key switch, limit switch).

Sample Project With Arduino: 

                                  In this we going to know the which switch in capacitive touch switch is touched.

Materials required:

  • Capacitive touch switch 1x4
  • Arduino UNO

Circuit:





Code:

int sensorpin1 = 8;

int sensorpin2 = 9;

int sensorpin3 = 10;

int sensorpin4 = 11;

void setup() {

  Serial.begin(9600);

  pinMode(sensorpin1, INPUT);

  pinMode(sensorpin2, INPUT);

  pinMode(sensorpin3, INPUT);

  pinMode(sensorpin4, INPUT);

  Serial.println("Capacitive touch module 1X4");

}

void loop() {

  if (digitalRead(sensorpin1) == HIGH)

  {

    Serial.println("1");

    while (digitalRead(sensorpin1) == HIGH);

  }

  else if (digitalRead(sensorpin2) == HIGH)

  {

    Serial.println("2");

    while (digitalRead(sensorpin2) == HIGH);

  }

  else if (digitalRead(sensorpin3) == HIGH)

  {

    Serial.println("3");

    while (digitalRead(sensorpin3) == HIGH);

  }

  else if (digitalRead(sensorpin4) == HIGH)

  {

    Serial.println("4");

    while (digitalRead(sensorpin4) == HIGH);

  }

}



Comments

Popular posts from this blog

Voice Record & Playback Module

GSM Sim800L

GPS