Project tutorial
Making Capacitance Alarm with Arduino

Making Capacitance Alarm with Arduino © GPL3+

This alarm will turn on a buzzer and the bulb when the capacitance sensor senses something. And show you how to make the sensor yourself!

  • 923 views
  • 0 comments
  • 1 respect

Components and supplies

Apps and online services

About this project

Step 1:

First gather all the parts:

  • Breadboard
  • Aluminium foil for sensor
  • Arduino Uno
  • Jumpers
  • Buzzer or speaker
  • Relay
  • 1M resistor

Step 2:

Connect relay like shown below:

  • relay IN1 => arduino D8
  • relay 5v => arduino 5v
  • relay GND => arduino GND
  • relay COM => + bulb
  • relay NO => AC +
  • - bulb => AC -

Step 3:

Make capacitance sensor by taking a piece of aluminium and connect 2 wires and connect a resistor to its one end.

Step 4:

Connecting the buzzer or speaker:

Step 5:

Upload the code. Respect, share the project with others:

Support

Vote For Me Please

https://www.instructables.com/id/How-to-Make-Remote-Controlled-Bulb-With-Arduino/

https://www.instructables.com/id/How-to-Make-a-Parabolic-Microphone-With-an-Old-TV-/

https://www.instructables.com/id/How-to-Make-Secret-Drawer-Alarm/

Code

Arduino codeArduino
upload it
#include <CapacitiveSensor.h>

// by M shameel kv


CapacitiveSensor   cs_4_2 = CapacitiveSensor(4,2);        // 1M resistor between pins 4 & 2
        

void setup()                    
{
   cs_4_2.set_CS_AutocaL_Millis(0xFFFFFFFF);     
   Serial.begin(19200);
   pinMode(11,OUTPUT);
   pinMode(8,OUTPUT);
   digitalWrite(8,HIGH);
   delay(100);
   
}

void loop()                    
{
    long start = millis();
    long total1 =  cs_4_2.capacitiveSensor(30);
    

 // for debugging
    Serial.print(millis() - start);       
    Serial.print("\t");                    

    Serial.println(total1);  
                    
    if ((total1)>=600) {
      tone(11,750);
      delay(1000);
      noTone(11);
      digitalWrite(8,LOW);
      
      
    }
   
    
    

    delay(10);                              
}

Schematics

fritzing schematics
connect like this
mysecndproject_A5y0PpWorl.fzz

Comments

Similar projects you might like

GSM Home Alarm V1.0

Project tutorial by Hugo Gomes

  • 28,050 views
  • 13 comments
  • 42 respects

Soda Can Alarm

Project tutorial by Steven Jonathan

  • 1,410 views
  • 2 comments
  • 6 respects

Buzzer Alarm System With Help Of Arduino

by Team ONYX

  • 37,920 views
  • 5 comments
  • 21 respects

Remote Controlled Bulb With Arduino

Project tutorial by muhammed shameel k.v

  • 1,895 views
  • 0 comments
  • 12 respects

Complete Digital Clock Including Alarm and Motion Sensor

Project tutorial by LAGSILVA

  • 13,818 views
  • 12 comments
  • 52 respects

Distance Alarm System

Project tutorial by Darwin Dela Cruz

  • 3,410 views
  • 3 comments
  • 17 respects
Add projectSign up / Login