How to Easily Make a Voice Control Home Automation Device
[Bangla]
How to Easily Make a Voice Control Home Automation Device
In this video, we will learn - how to turn on and off electronic devices like our home fan, lights, TV, etc. with voice commands.
🔥Circuit + Code Download Link: https://bit.ly/38axtPu
The PCB board will be needed to make the trainer board like the picture above. According to the above circuit, you can build a trainer on Veroboard. I made my PCB board from http://www.jlcpcb.com.
Gerber files are required to order on this website. If you want to get this PCB Gerber file, enter this link https://youtu.be/tpIZDV5NqpI.After going to the link, you will find the link to the Gerber file in the description box of the video. And if you want to design a PCB yourself, then go. at http://easyeda.com.
JLCPCB Prototype for $2(Any Color): https://jlcpcb.com
📌Order your own designed PCB online. How to Order PCB design on Online | JLPCB https://youtu.be/Gzs97NkO0sI📌 requirement material-
1. Arduino Uno Board
2. 5V DC Relay - 4p
3. Bluetooth Sensor HC 06 -1p
4. BC547 Transistor - 4p
5. 1K Resistor - 5p
6. M to M raile
7. Power Socket - 1p
Programming Code:
String voice; int led1 = 2, //Connect 1ST TRANSISTOR COLLECTOR To Pin #2 led2 = 3, //Connect 2ND TRANSISTOR COLLECTOR To Pin #3 led3 = 4, //Connect 3RD TRANSISTOR COLLECTOR To Pin #4 led4 = 5, //Connect 4TH TRANSISTOR COLLECTOR To Pin #5 led5 = 6; //Connect 5TH TRANSISTOR COLLECTOR To Pin #6 void allon(){ digitalWrite(led1, HIGH); digitalWrite(led2, HIGH); digitalWrite(led3, HIGH); digitalWrite(led4, HIGH); digitalWrite(led5, HIGH); } void alloff(){ digitalWrite(led1, LOW); digitalWrite(led2, LOW); digitalWrite(led3, LOW); digitalWrite(led4, LOW); digitalWrite(led5, LOW); } void setup() { Serial.begin(9600); pinMode(led1, OUTPUT); pinMode(led2, OUTPUT); pinMode(led3, OUTPUT); pinMode(led4, OUTPUT); pinMode(led5, OUTPUT); } void loop() { while (Serial.available()){ delay(10); char c = Serial.read(); if (c == '#') {break;} voice += c; } if (voice.length() > 0) { Serial.println(voice); if(voice == "*all active") {allon();} else if(voice == "*all deactive"){alloff();} else if(voice == "*LED on") {digitalWrite(led1, HIGH);} else if(voice == "*CFL on") {digitalWrite(led2, HIGH);} else if(voice == "*fan on") {digitalWrite(led3, HIGH);} else if(voice == "*laptop on") {digitalWrite(led4, HIGH);} else if(voice == "*TV on") {digitalWrite(led5, HIGH);} else if(voice == "*LED shutdown") {digitalWrite(led1, LOW);} else if(voice == "*CFL shutdown") {digitalWrite(led2, LOW);} else if(voice == "*fan shutdown") {digitalWrite(led3, LOW);} else if(voice == "*laptop shutdown") {digitalWrite(led4, LOW);} else if(voice == "*TV shutdown") {digitalWrite(led5, LOW);} voice="";}}📌 PCB Gerber Download Link: https://drive.google.com/open?id=1y2M-xXsNG3IQjFRZlB9YgafPD5ar2hKg
📌 How To Make PIC16F877A Microcontroller Trainer 🔥🔥🔥 https://youtu.be/tpIZDV5NqpI 📌 Easily Voice Control Home Automation 🔥🔥🔥 https://youtu.be/8Msdmrgz4ps
No comments