O'Reilly logo

Arduino: Building exciting LED based projects and espionage devices by Marco Schwartz, Utsav Shah, Samarth Shah, Adith Jagdish Boloor

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Pattern recognition

Firstly, go ahead and create this circuit:

Pattern recognition

Touch pad circuit (credits: Lauren, DFRobot)

Your capacitive touch pad and its controller (the central component in the image), are connected using the corresponding numbers labeled on the pins. The connections from the Arduino to the controller are as follows (literally the same connections as before):

  • GND – GND
  • VCC – 5V
  • SCL – A5 (analog pin 5)
  • SDA – A4
  • IQR – D2 (digital pin 2)
  • ADDR – no connection necessary

Do not worry if the touch pad doesn't look exactly like this; as long as the connections are fine, everything will work out.

Open up Arduino and go to File | Examples | MPR121 | Examples ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required