Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. You need the following parts
    1. Electrode matrix of DFRobot touch sensor kit
    2. Sensor PCB of DFRobot touch sensor kit
    3. Arduino Uno + USB cable
    4. Notebook with Arduino IDE installed
  2. Go to https://wiki.dfrobot.com/Capacitive_Touch_Kit_For_Arduino_SKU_DFR0129_
  3. Connect electrode matrix, sensor PCB and Arduino Uno as described in the link
  4. Download https://image.dfrobot.com/image/data/DFR0129/MPR121%20v1.0.zip and unzip
  5. Use touchpad example code in Arduino IDE from that folder
  6. Connect Arduino via USB to Notebook and compile and flash the microcontroller
  7. Open Serial console in Arduino IDE and choose correct BAUD rate (same as in code example)
  8. Play around with your finger on the touchpad matrix and watch console output
  9. Try to understand the code in the main .ino file.
    To understand the function calls CapaTouch.begin(), CapaTouch.getX() and CapaTouch.getY() go into the library files of the mpr121 (mpr121.h and mpr121.cpp) and try to understand the implementation