5% OFF Over $19, Code: Elephant5; 10% OFF Over $59, Code: Elephant10



ARDUBLOCK Project 16: Capacitive Touch Module Control LED

Posted by Fiona Su on

Introduction:
Capacitance touch module supplies one touch key to detect IC. In order to replace traditional key with changeable area key, touch detecting IC is designed. In this project, we use graphical programming and control the on and off of LED by capacitive touch module.
Materials Required:

  • 1. KEYESTUDIO UNO Control Board *1
  • 2. V5 Sensor Shield*1
  • 3. Piranha LED*1
  • 4. Copacitive Touch Module*1
  • 5. Female to Female Dupont Line*6

Connection Diagram:

thumb

thumb

After wiring, we can start programming.

thumb

Click “download to Arduino” to see the following codes in IDE interface:
Sample Code:

*****************************************************************************
void setup()
{
  pinMode( 4 , INPUT);
  pinMode( 10 , OUTPUT);
}

void loop()
{
  if (( digitalRead(4) && HIGH ))
  {
    digitalWrite( 10 , LOW );
  }
  else
  {
    digitalWrite( 10 , HIGH );
  }
}
*******************************************************************************

Result:
After the program is downloaded, we can use capacitive touching module to control LED.

All Projects

Buy it >> ARDUBLOCK Graphical Programming Starter Kit for Arduino

 

 

0 comments

Leave a comment

Please note, comments must be approved before they are published