Basic ElectronicsCommunicationControlElectrical DesignElectrical ProjectElectronics Engineering ProjectHow ToHVAC

Voice Recognition Based Home Automation System

Voice Controlled Home Automation System using 8051 Microcontroller

Voice Recognition Based Home Automation

With the evolution of smart devices and various wireless communication technologies, it is now possible to leverage these techniques for the best possible benefits for human beings. One such benefit involves controlling of home appliances irrespective of the distance, saving time as well as energy. This smart controlling of home appliances is what we know as Home Automation same as industrial automation.

While there are various techniques like Wireless Communications, Internet of Things (IoT), Voice Recognition method, here we are going to have a small idea about how we can use Voice Recognition for Home Automation purpose.Practical Example of Voice Recognition Based..

Before that let us have a theoretical knowledge about Voice Recognition.

Voice Recognition

Voice recognition implies reception and interpretation of any linguistic dictation, by a machine or a program. It is the process of recognizing human speech and decoding it into text form.

It basically involves conversion of analog sound waves (vibrations in air caused by words spoken by human beings) to digital signals, which are decoded to appropriate words and then eventually sentences.

A speech recognition system generally consists of a speech capturing device (basically a microphone and a Analog to Digital Converter, which samples and digitizes the analog sound signals), a Digital Signal Processor (DSP) module (which process the digital signal to convert it from time domain to frequency domain, so as to retain the original information), a Preprocessed signal storage system (a memory card to carry out further task), Predefined speech patterns, stored in the memory as reference for matching, and a pattern matching algorithm for comparing the incoming speech signal with the reference speech pattern.

Voice Controlled Home Automation System using 8051 Microcontroller

It is noteworthy that a normal human being can produce speech at a rate of 10 sounds per second and the required information rate is 50 bits per second in the speech signal. This acoustic signal is converted to electrical signal by the microphone, and the analog signal is converted to digital signal.

Since this converted digital signal in time domain, is sampled at 16000 times per second, it is not suitable to locate the speech patterns. Hence it is converted to Frequency domain using Fast Fourier Transform (FFT) technique. This technique involves analyzing component after every 1/100th of a second and computing the frequency spectrum of each such component.

You may also read: Fully Automatic Water Level Controller using SRF04

Each such frequency graph or spectrum represents the segments of sounds made by the speech dictator. The computer or a controller matches the unknown speech segment with the stored phonetics of the language.

This pattern matching can be done using an acoustic phonetic approach (using the Hidden Markov Model, wherein the speech segment is matched with the phoneme per its probability), pattern recognition approach (unknown speech pattern compared with the reference speech pattern by determining the distance between the signals) and the Artificial Intelligence approach (based on utilization of basic knowledge sources).

The Proposed Model of Voice Controlled Home Automation

Here we have tried to build a small voice recognition based home automation system using wireless communication between two 8051 microcontrollers.

Disclaimer: The transmitter and receiver circuit presented here are theoretical and not tested practically. We have used Multisim which neither has the simulation model for HM2007 nor any Communication Model. Hence proper simulation for the system could not be possible.

The system involves processing of the voice command, from the user (at the microphone input) by the voice recognition IC, transmission and reception of the signal using Communication modules, controlled by the microcontroller. The microcontroller at the reception controls the switching of the bulb, based on the correct voice command from the transmitter system.

Now, let us have a brief idea about how the system would work.hm2007 voice recognition board

Figure 2: HM2007 Speech Recognition Board

The heart of the speech recognition system involves the IC HM2007, which is a 48 pin IC providing speech recognition function. It works in Manual or CPU mode. It can recognize up to 20 words, each at a length of 1.92 seconds and operates at 9 to 15 Volts DC.Here we can use manual mode for HM2007.

Circuit Diagrams of Voice Recognition Home Automation System

Transmitter SectionTransmitter Section

Receiver SectionReceiver Section

Working of the System

1. The user gives voice input to the MICIN pin of HM2007 IC, through a microphone.

2. The RDY pin of the IC will be in active LOW state, indicating it is ready for training purpose.

3. The user presses “1” on the keypad and then the “TRAIN” key, before saying the target word (either “ON” or “OFF”)

4. The Memory Enable (ME) pin, connected to the corresponding pin of external SRAM, which stores the 8-bit data signal corresponding to the number

5. Once the voice input is detected, RDY pin goes HIGH and the IC starts the recognition process.

6. Result of the recognition process is given through the data bus to the 8051 Microcontroller.

7. The microcontroller (named uC1) transmits the data signal through the communication module.

8. At the receiver end, the microcontroller (named uC2) receives the data input and compares it with the stored command. Once both the data matches, the relay is operated (per the given command). If the data does not match, the microcontroller retransmits an error signal back.

9. The microcontroller uC1 receives this error signal and interrupts the on-going process, and displays the error information on the connected Liquid Crystal Display (LCD).

Limitations of Voice Recognition System

1. Continuous spoken words cannot be accepted by the system due to overlapping and hence there needs to be a silence or pause between two consecutive words. Thus, only isolated words would be feasible.

2. The system is a speaker dependent system. Too many speakers speaking simultaneously would result in overlapping of the signals and interruptions.

3. There is a limitation on vocabulary size as well. Languages with large vocabulary are difficult for pattern compared to languages with small vocabulary, since chances of having ambiguous words are less.

Irrespective of the above limitations, this system of controlling home appliances using voice recognition method would provide advantageous considering the fact it saves time as well as provides security.

I have presented a small model represented voice recognition based home automation, whereas on a large scale such system, once build on a large scale can be used for various applications.

Any other idea regarding controlling of home appliances using voice recognition is welcome in the below comments section.

You may also read:

Electrical Technology

All about Electrical and Electronic Engineering & Technology. Join us on WhatsApp at Electrical Technology Official Channel, to receive the latest content, articles, and updates. You can also like and follow our social media networks below, or subscribe with your email to receive premium engineering articles in your mailbox.

One Comment

  1. Hi there, It’s really no surprise to learn that well over 90% of all households in the USA own up to 3 smartphone devices. Our love affair with tech is now spilling over into the home, as statistics reveal that revenue in the Smart Home technology market amounts to well over US$71 million, in the first quarter of 2019. From automated house functions to smart security, from devices to energy, our homes are growing smarter and more connected by the year. I started my working life as an interior designer and I’ve helped dozens of clients create their own, custom self-builds. These have ranged from the simple to the high tech and ultra modern. I’ve always had a soft spot for the latter and it’s been exciting to see how technology is integrating with our homes. I came across while researching a different topic and couldn’t help but feel your readers might be interested in my article idea on Smart Home Tech ideas for the coming year. I’d love to contribute a full article on this topic because your readers will be certain to find these tips and ideas relating to it very useful. I would be happy to do this in return for including a mention of a previous piece I’d worked on. Please let me know what you think, I’d be happy to get started right away. Best Regards, Jennifer

Leave a Reply

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

Back to top button