Wish List 0

122 Mpr121 Module Capacitive Touch Sensor Key Induction Keypad

Rs. 59.00 Rs. 68.00

-The MPR121 capacitive keypad uses the MPR121 and 12 touch sensitive pads to give you a simple 'keypad' with an I2C output.
-The board also has four mounting holes allowing it to be used as an input system in place of traditional buttons.
-Check the example code below for an easy way to read the keypad

SPECIFICATIONS:

Low power operation:

-1.71 V to 3.6 V supply operation

-29 μA supply current at 16 ms sampling interval period

-3 μA Stop mode current


12 capacitance sensing inputs:

-8 inputs are multifunctional for LED driver and GPIO


Complete touch detection:

-Auto-configuration for each sensing input

-Auto-calibration for each sensing input

-Touch/release threshold and debounce for touch detection


I2C interface, with Interrupt output:

-40°C to +85°C operating temperature range:


OVERVIEW:

-Low power operation

-1.71 V to 3.6 V supply operation

-29 μA supply current at 16 ms sampling interval period

-3 μA Stop mode current

-12 capacitance sensing inputs

-8 inputs are multifunctional for LED driver and GPIO

-Complete touch detection

-Auto-configuration for each sensing input

-Auto-calibration for each sensing input

-Touch/release threshold and debounce for touch detection

-I2C interface, with Interrupt output

-3 mm x 3 mm x 0.65 mm 20 lead QFN package

--40°C to +85°C operating temperature range


PACKAGE INCLUDES:

1 PCS x 122 Mpr121 Module Capacitive Touch Sensor Key Induction Keypad


//SOURCE CODE TAKEN FORM BELOW LINK

//https://learn.sparkfun.com/tutorials/mpr121-hookup-guide/all

void readTouchInputs(){

  if(!checkInterrupt()){


    //read the touch state from the MPR121

    Wire.requestFrom(0x5A,2); 


    byte LSB = Wire.read();

    byte MSB = Wire.read();


    uint16_t touched = ((MSB << 8) | LSB); //16bits that make up the touch states



    for (int i=0; i < 12; i++){  // Check what electrodes were pressed

      if(touched & (1<<i)){


        if(touchStates[i] == 0){

          //pin i was just touched

          Serial.print("pin ");

          Serial.print(i);

          Serial.println(" was just touched");


        }else if(touchStates[i] == 1){

          //pin i is still being touched

        }  


        touchStates[i] = 1;      

      }else{

        if(touchStates[i] == 1){

          Serial.print("pin ");

          Serial.print(i);

          Serial.println(" is no longer being touched");


          //pin i is no longer being touched

       }


        touchStates[i] = 0;

      }


    }


  }

}


15 days

Write a review

Please login or register to review