
This project combines a ready-made voice-recognition app on a smartphone with an HC-06 Bluetooth module to turn LEDs on and off just by speaking a voice command, with no need to program any speech-recognition algorithm yourself.
Components needed
An Arduino Uno board, an HC-06 Bluetooth module, two LEDs each with a 220-ohm resistor, and an Android phone with an Arduino-oriented voice-over-Bluetooth app.
Wiring it up
The HC-06 module connects to two digital pins via the SoftwareSerial library (pins 10 and 11 in this project) at 9600 baud, while each LED connects to its own digital pin through a 220-ohm resistor.
How it works
The phone app captures the voice command through the device's microphone and converts it internally to text, then sends that text as a character string over Bluetooth to the HC-06 module connected to the Arduino. The code watches for any new data arriving over the software serial port, and when it receives text, it compares it against a list of predefined commands like "turn on Red LED" or "all LED turn off"; when the received text matches one of these commands, the code turns on or off the digital pin corresponding to the targeted LED. This approach relies on simple, direct string matching with no complex language processing, since the phone app handles the entire speech-recognition task before the text ever reaches the Arduino.
You can find the HC-06 Bluetooth module and LEDs at Juthour Tech.
اترك تعليقا