MINI PROJECT 2.arduino PDF
MINI PROJECT 2.arduino PDF
MS SHESHGIRI COLLEGE OF
ENGINEERING ,UDYAMBAG BELAGAVI
DEPARTMENT OF
BIOMEDICALENGINEERING
CERTIFICATE
Last but not the least we are especially grateful to our parents
and friends who have always supported and encouraged us in all our
endeavours.
Arduino UNO
HC-06 Bluetooth Module
Breadboard
Jumper Cables
330 Ohm Resistors
LED's
Android app
PROGRAM
String voice;
int RED = 2;
int GREEN = 3;
int BLUE = 4;
void RedOn()
{
digitalWrite (RED, HIGH);
void RedOff()
}
void allon() { digitalWrite (RED, HIGH);
void alloff()
void setup()
Serial.begin(9600);
pinMode(RED, OUTPUT);
pinMode(GREEN, OUTPUT);
pinMode(BLUE, OUTPUT);
void loop()
while(Serial.available())
delay(10);
char c=Serial.read();
if(c=='#') {break;
}
voice += c; } if (voice.length() > 0)
Serial.println(voice);
{ RedOn();
} voice="";
}
WORKING
* The standard HC-05 bluetooth module has six pins. However, we will
only be using 4 in this project. The pins we will be using are the VCC pin,
the GND pin, the TXD pin, and the RXD pin. The VCC pin of the bluetooth
module connects to the +3.3V of the Arduino. The GND pin of the module
connects to GND of the Arduino. TX pin of the bluetooth module connects
to digital pin 0 (RXD), and the RXD pin connects to digital pin 1 (TXD).
* The next step in creating our voice controlled LED's is to connect the
LED's to the Arduino through the breadboard. First, connect the short
end of the LED to ground. Next, connect the long end of each of the LED's
to a 330 ohm resistor. Finally, connect the resisted current from the
LED's to digital pins on the Arduino. In this project, we will be connecting
one LED to digital pin 2, another to digital pin 3, and the last LED to
digital pin 4.
* For this project, we can supply power to the Arduino through any +5V
power source. You can use a USB port from your computer to power the
Arduino, but in this project I will be using a 5V portable battery. Before
you connect a power source to your Arduino, make sure that the GND of
the Arduino is connected to ground of the breadboard.
* You can begin to test your project by downloading the app for Android:
BT Voice Control for Arduino; Created by SimpleLabsIN. Next, click on
the menu bar in the upper right hand corner and select 'Connect Robot.'
On the new window that appears, select the HC-05 bluetooth module and
connect it. Congrats! You have completed your voice controlled LED
Arduino project. Now, when you speak certain commands from the code
into your device through the app, specific LED's should turn on and off.
APPLICATIONS