Rucksikaa Raajkumar
Published © CC BY-NC-SA

Prototype - Alarm Device Using Human Touch Sensor (KY-036)

In this project, I will be designing an alarm device that will be triggered by a touch.

BeginnerFull instructions provided2,136
Prototype - Alarm Device Using Human Touch Sensor (KY-036)

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
Solderless Breadboard Full Size
Solderless Breadboard Full Size
×1
Jumper wires (generic)
Jumper wires (generic)
×1
USB-A to B Cable
USB-A to B Cable
×1
Touch sensor module (KY-036)
×1
Active buzzer module (KY-012)
×1
Two-colour LED module (KY-011)
×1

Story

Read more

Schematics

Schematic of KY-036

I used it to find how this sensor module works

Code

Untitled file

Arduino
// ARDUINO PROJECTS BY R
// Author: Rucksikaa Raajkumar
// https://arduinoprojectsbyr.blogspot.com/2019/10/17-alarm-device-using-human-touch.html
const int sensor = 6;
const int buzzer = 3;
const int green = 4;
const int red = 5;
int val = 0;
void setup() {
  pinMode (sensor, INPUT);
  pinMode (buzzer, OUTPUT);
  pinMode (green, OUTPUT);
  pinMode (red, OUTPUT);
}

void loop() {
  val = digitalRead (sensor);
  if (val == HIGH){
    digitalWrite (red, HIGH);
    digitalWrite (green, LOW);
    digitalWrite (buzzer, HIGH);
  }else{
    digitalWrite (red, LOW);
    digitalWrite (green, HIGH);
    digitalWrite (buzzer, LOW);
  }
}

Credits

Rucksikaa Raajkumar
44 projects • 98 followers
Amateur Arduino Developer. Undergraduate. YouTuber (https://www.youtube.com/c/RucksikaaRaajkumar/videos) and Blogger (Arduino Projects by R)

Comments