Arduino Voice Control Using A Free Android App And The HC-06 Bluetooth module - Beginner Tutorial
ฝัง
- เผยแพร่เมื่อ 2 มิ.ย. 2024
- Check out this Arduino voice control video where I used a free Android app and the HC-06 Bluetooth Module. This is a beginner walk-through tutorial that I hope you find helpful. Check back for more Arduino ideas! thanks for watching~
🔔🔔 SUBSCRIBE 🔔🔔 don't forget to subscribe and click the bell!
/ @bmonsterlaboratory
need help installing Arduino IDE? click here! • The Most Complete Star...
see how to prep your extension cord and set up a relay module.
Start at 1:29 in this video- • How to Connect Coffee ...
Facebook: / bmonster-laboratory-10...
search #bluetoothuino to find the program code on Facebook
Twitter: / b_monsterlab
Chapters:
0:00 intro
0:25 component list
1:24 intro to HC-06 BT module
2:18 USB to TTL converter
2:48 Bluetooth module to converter diagram
3:21 set up your Bluetooth module
6:25 Bluetooth AT command list
7:22 install Android Bluetooth Control app
10:26 HC-06 source code
11:36 voice control Bluetooth lamp demo
12:05 Arduino Bluetooth lamp diagram
The HC-06 is a slave only module. The HC-05 can act as a slave and master module.
I purchased this Arduino Bluetooth module on the Amazon link below
www.amazon.com/gp/product/B07...
nice idea🔥🔥
Thanks! A very cheap and reliable Bluetooth option. Thanks for watching! 👊👊
Hello, thank you. Where can I find the library?🎉
The SoftwareSerial library is included with the Arduino IDE, which can be downloaded from the official Arduino website: www.arduino.cc/en/software.
Once you have installed the Arduino IDE on your computer, you can access the SoftwareSerial library by including it in your sketch using the #include statement:
I try to include all code for videos on the Facebook page. This code is short enough to post on TH-cam. See code below. Hope that helps!
SoftwareSerial BLUETOOTH(10, 12);
void setup()
{
pinMode(6, OUTPUT);
BLUETOOTH.begin(9600);
BLUETOOTH.println("Hello from Arduino");
}
char a;
void loop()
{
if (BLUETOOTH.available())
{
a=(BLUETOOTH.read());
if (a=='1')
{
digitalWrite(6, HIGH);
BLUETOOTH.println("LED on");
}
if (a=='0')
{
digitalWrite(6, LOW);
BLUETOOTH.println("LED off");
}
if (a=='?')
{
BLUETOOTH.println("Send '1' for LED on");
BLUETOOTH.println("Send '0' for LED off");
}
}
}
remember, you also need to install Android Bluetooth Control app