CONTROL THE DEVICES CONNECTED TO MSP430 USING VOICE RECOGNITION
In this post , speech recognition from google API is used for controlling the devices connected to the micro controller. voice is converted to a low size format and sent over to google servers .The corresponding text will be returned from google. this text is again sent back to controller for control purposes.
Materials Required :
- Smartphone with internet .
- Relay(for controlling AC / high voltage devices)
- Bluetooth module.
- MSP430 launchpad controller.
- Please read the Interfacing of Bluetooth-Module with MSP430-Launchpad before starting this project.
- please read how to Interface relay with MSP430 to control devices
NOTE : Since pin 2 and 3 are used for Bluetooth interfacing , please connect the transistor base to the pins other than 2 and 3 . In this Post the pin 4 is used for connecting the device as per the article how to Interface relay with MSP430 to control devices
Combine and connect the circuit from the below links (USE PIN 4 INSTEAD OF 2 to connect relay)
Interfacing of Bluetooth-Module with MSP430-Launchpad
how to Interface relay with MSP430 to control devices (Ex:Light)
Download the Android APP
link : DOWNLOAD EMBEDDEDHW APP
![]() |
Android App from EmbeddedHW.com |
- Click on the Home Button
![]() |
Home screen of EmbeddedHw Android App |
INTERNET IS REQUIRED FOR VOICE CONTROL
- Turn on your Internet in the smartphone
- Turn On the Bluetooth of the smartphone & Pair the device (password:1234)
- Click on the connect button and select our device.
- click on the voice control to speak
The speech will be converted to text using google API .This converted Text will sent to our controller using the bluetooth module.
EXAMPLE :-
you can turn on the LIGHT by saying "LIGHT ON". the controller will receive the text "LIGHT ON" from the smartphone.this text can be used to turn on the light .
An example program is given below
byte ehw = 0; // incoming serial byte
void setup()
{
// start serial port at 9600 bps:
Serial.begin(9600);
pinMode(4, OUTPUT);
pinMode(4, OUTPUT);
}
void loop()
{
// if we get a valid byte, read analog ins:
while (!Serial.available() > 0)
ehw = Serial.read();
Serial.println(ehw);
if(ehw="LIGHT ON"){
digitalWrite(4, HIGH); }
else if(ehw="LIGHT OFF"){
digitalWrite(4, LOW); }
else
Serial.println("Incorrect message");
delay(10);
}
0 comments:
Post a Comment