Project tutorial
Automation basics using arduino and DTMF decoder

Automation basics using arduino and DTMF decoder © GPL3+

This projects explains the basic set up of automation using DTMF technology.It can be applicable in any automation field.

  • 4,126 views
  • 3 comments
  • 6 respects

Components and supplies

About this project

The project uses the DTMF technology. The tone generated from cell phone is converted into binary numbers.This particular number is used for driving LEDs or relays.

Code

Arduino codeArduino
upload this sketch into your arduino
int x,y,z,t;

int a=3;

int b=4;

int c=5;

int d=6;

int e=7;

int f=8;

int g=9;

int h=10;

void setup() {



pinMode(a,INPUT);

pinMode(b,INPUT);

pinMode(c,INPUT);

pinMode(d,INPUT);

pinMode(e, OUTPUT);

pinMode(f,OUTPUT);

pinMode(g,OUTPUT);

pinMode(h,OUTPUT);

Serial.begin (9600);

}

void loop() {



x=digitalRead(a);

y=digitalRead(b);

z=digitalRead(c);

t=digitalRead(d);

Serial.print(x);

Serial.print(y);

Serial.print(z);

Serial.println(t);

delay(1000);

if (x==1 && y==0 && z==1 && t==1)

{digitalWrite(e,HIGH);

digitalWrite(f,LOW);

digitalWrite(g,HIGH);

digitalWrite(h,LOW);}

if (x==1 && y==1 && z==1 && t==0)

{digitalWrite(e,LOW);

digitalWrite(f,HIGH);

digitalWrite(g,LOW);

digitalWrite(h,HIGH);}

if (x==1 && y==1 && z==0 && t==1)

{digitalWrite(e,LOW);

digitalWrite(f,LOW);

digitalWrite(g,HIGH);

digitalWrite(h,LOW);}

if (x==1 && y==0 && z==0 && t==1)

{digitalWrite(e,HIGH);

digitalWrite(f,LOW);

digitalWrite(g,LOW);

digitalWrite(h,LOW);}

if (x==0 && y==0 && z==1 && t==1)

{digitalWrite(e,LOW);

digitalWrite(f,LOW);

digitalWrite(g,LOW);

digitalWrite(h,LOW);}}

Schematics

Pin connections
connect the pins as shown in the figure
Img 20171030 213359 tlbwxozsjn

Comments

Similar projects you might like

Android App-Based Home Automation System Using IOT

Project tutorial by Team Autoshack

  • 24,839 views
  • 17 comments
  • 75 respects

Talkative Automation || Audio from Arduino || HC-05 || Voice

Project tutorial by Vishalsoniindia

  • 2,552 views
  • 0 comments
  • 5 respects

Sliding Gate Automation

Project tutorial by Lasith Ishan Premaratne

  • 18,531 views
  • 12 comments
  • 34 respects

Bluetooth Based Home Automation

Project tutorial by Team Brink.IO

  • 9,652 views
  • 13 comments
  • 38 respects

Email Home Automation

Project tutorial by Chirila Radu

  • 3,994 views
  • 0 comments
  • 14 respects

Home Automation Using Zone Beacon via Android App

Project tutorial by Team SomeRandomTeam

  • 1,413 views
  • 2 comments
  • 13 respects
Add projectSign up / Login