• Skip to main content
  • Skip to primary sidebar

Making Easy Circuits

Learn and build electronic circuits

You are here: Home / Automation / Simple Home Automation System Circuit

Simple Home Automation System Circuit

Last Updated on January 10, 2018 by Admin 2 Comments

In this post we learn how to make a simple home automation system circuit using DTMF technology.
Most of the electronic appliances that we use in home are usually operated from traditional switch. However, with the course of time resulting to myriad of innovative standards, the role of switch is slowly getting replaced with one new technology called DTMF [Dual Tone Multi-Frequency].

Using DTMF to control home appliances make managing things more simple. You do not need to reach a switch to turn on the fan, instead you can just turn it on from a single key-touch in your mobile phone.
DTMF mainly runs on two frequencies – Row Frequency and Column Frequency.These two are often referred as low frequency and high frequency respectively.

The frequencies used in DTMF are used in such a way to avoid harmonic relation among each other so as not to produce similar tones. Unlike row frequency the column frequencies is comparatively louder in order to enable hi-frequency voice audio system.
As the button pressed on a keypad produces different tones, these tones are used to manage different appliances in your household. To design the appliance, we primarily need a DTMF encoder, which is there on a mobile phone and a DTMF decoder IC HT9107B to convert the tone from keypad in digital form.
The following section explains they way this home automation system circuit needs to be designed:
As stated previously, to design the system we need an encoder and a decoder. The mobile jack which is connected to Capacitor 1nf has two wires – red and black.

The red wire is connected to the IC decoder while the black wire is left grounded. When a button is pressed in the mobile phone a tone generates, which gets decoded by the IC decoder and further moved to the controller ATMEGA8.

 

The controller further checks the status of the input, further producing the final output using the following code:
#include <avr/io.h>
#include <util/delay.h>

int main(void)
{
DDRB=0x00;
DDRC=0xff;
while(1)
{
if((PINB&0x0f)==0x01)
{
PORTC=0x01;
}

else if((PINB&0x0f)==0x02)
{
PORTC=0x02;
}

else if((PINB&0x0f)==0x03)
{
PORTC=0x03;
}

else if((PINB&0x0f)==0x04)
{
PORTC=0x00;
}
}
}

The following Figure is of a home automation circuit design using DTMF:

 

home automation circuit

Designing the Circuit
An operational amplifier comes integrated with the IC decoder. The op-amp which generates output goes to the pre-filters in order to separate high and low frequencies. The output us further goes via frequency and code generation circuits, which enables 4-bits binary code.
The tone generated from the mobile phone is passed to op-amp via a series of 100 kilo-Ohm resistor and Capacitor 1nf. In the DTMF IC, the Pin 1, which is an inverted pin is connected to Pin 4.

This implies that the Pin 3 Vref is the operational amplifier’s output with further feedback to Pin 2 by the resistors. The crystal oscillator is connected to Pin 7 and Pin 8 on a frequency of 3.579545 MHz.

The Pin 15 is th data valid pin usually remains low, but goes high upon detection of a DTMF tone. From detection of frequency to digitally convert the data, this entire process is managed steering circuit, which consists of RT/GT, EST, Capacitor and 10K Resistors. Pin 11 and Pin 14 helps to produce the output.

These two pins are also connected to PBo – PB3 of the controller. PDo and PD1– the output pins of the controller are connected to relay, and the relay output is further connected the main source i.e. the appliances.
It is vital to note that relay essentially works as a switch, which generates isolation from different circuit parts.

However, in this project the relay used is the magnetic relay to enable AC load of 5 Volts, which is the maximum voltage derived from a controller.
Operating the Circuit
The controller constantly checks for the input after the circuit receives the power. Now if we press 1 on the mobile keypad, the IC decoder decodes the tone to output the value 0001.

The decoded output is further passed to a microcontroller generating higher output at Pin PDo, which is connected to relay.

As the relay used here is to switch the circuit, the appliance will then turn ON. And if the input received by the relay is 2, the appliance that you are trying to turn ON will go OFF. Similar idea goes with pressing other values in the mobile keypad.
Requirements
Following are the components that you need to design the circuit:
1. Microcontroller U1 – Atmega8
2. IC HT9107B
3. AC load
4. Relay
5. C1, C2, C3, C4 Capacitors
6. Relay
7. X1 Crystal Oscillator
The popularity of DTMF is getting prominent day by day, but is somehow limited because of the limitations of a mobile, which can only generate 16 tones.

Furthermore, security is also another concern as anybody can operate an appliance simply by calling the mobile connecting to the system.

Looking at the benefits, you can control your appliances from anywhere. The setup cost is low and it also helps low consumption of electricity.

You'll also like:

  • 1.  Power Saving Street Lamp Circuit using Motion Sensor
  • 2.  Simple Line Follower Circuit
  • 3.  Simple Voice Recorder and Playback Circuit
  • 4.  Greenhouse Temperature and Humidity Controller Circuit
  • 5.  Automatic Kennel Door Circuit with Day Night Lock
  • 6.  Day Night Activated Triac Switch Circuit

About Admin

Hey friends, Thanks a bunch for stopping by this site! I am an engineer with a Bachelor of Engineering in Electronics and Telecommunication. One of my passions is gathering information from all sorts of electronics books and tutorials. I then take that information and compile it into a language that is super easy to understand. My goal is to make those complex electronics circuit concepts and technical terms much more accessible for all the new and budding electronics engineers out there. I can also design customized circuit diagrams as required by the users.
If you have any questions related to this field, please do not hesitate to drop a comment! I am always here and ready to help you out with any queries you might have. I cannot wait to hear from you!

Reader Interactions

Comments

  1. Parmod says

    November 14, 2019 at 7:37 pm

    Dear sir
    Sir मुझे इंग्लिश नही आती पर आपके project समझ आते हैं। sir ऐसा प्रोजेक्ट बना सकते हो क्या जिसमे gsm module इस्तेमाल करके कॉल रिसीव होने के बाद 1 दबाने से मोटर ऑन ओर sms फीडबैक दे।मोटर ऑन या मोटर ऑफ

    Reply
    • admin says

      November 15, 2019 at 4:34 pm

      Dear Pramod, I don’t have the exact circuit that you’ve mentioned but a similar project is already present in my blog which you can refer through the following link

      https://makingcircuits.com/blog/gsm-based-irrigation-circuit-using-cellphone-missed-calls-and-arduino/

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Categories

  • 3 Phase (4)
  • 8051 Microcontroller (1)
  • Arduino (11)
  • Audio and Amplifier (102)
  • Automation (8)
  • Battery Chargers (64)
  • Bicycle Projects (4)
  • Car and Motorcycle Projects (39)
  • Datasheets (10)
  • DIY Projects (5)
  • Electrical (15)
  • Free Energy (6)
  • Games Projects (2)
  • High Voltage (14)
  • Hobby Projects (30)
  • Household Circuits (2)
  • IC 555 Circuits (4)
  • Ignition Circuits (2)
  • Indicators (50)
  • Infrared (6)
  • Inverter Circuits (29)
  • Lights and Lamps (97)
  • Medical (8)
  • Meter and Tester Circuits (38)
  • Motor Driver (17)
  • New Circuits (56)
  • Oscillators (30)
  • Pets and Pests (5)
  • Power supply (81)
  • Protection Circuits (25)
  • PWM (8)
  • Remote Control (20)
  • Security and Alarm Circuit (48)
  • Sensors and Detectors (66)
  • Signal Processor (23)
  • Solar Controller Circuits (61)
  • SSR (3)
  • Temperature Controller (20)
  • Timer (25)
  • Transformerless (7)
  • Transmitters (12)
  • Tutorials (45)
  • UPS (2)
  • Voltage Regulators (57)
  • Water Sensor and Controller (29)
  • Home
  • Privacy Policy
  • Contact
  • Disclaimer
  • Copyright

© 2025 · Making Easy Circuits