How to Interface Bluetooth Module HC-05 with Arduino | Arduino के साथ ब्लूटूथ को कैसे इंटरफ़ेस करें?
Video Link: - Click Here for Video how we can interface Bluetooth module HC-05 with Arduino Uno in the description, everything you need to know. Arduino Bluetooth controller Link: - Arduino Bluetooth controller Arduino Program
#define ledPin 2
int data = 0;
void setup() {
pinMode(ledPin, OUTPUT);
digitalWrite(ledPin, LOW);
Serial.begin(9600); //default baud rate for bt 38400
}
void loop() {
if(Serial.available() > 0){ // Checks whether data is comming from the serial port
data = Serial.read(); // Reads the data from the serial port
if (data == 'a') {
digitalWrite(ledPin, LOW); // Turn LED OFF
Serial.println("LED: OFF");
}
else if (data == 'b') {
digitalWrite(ledPin, HIGH);
Serial.println("LED: ON");
}
}
Share, Support, Subscribe!!!
1. PRO KAM EXPLAINED
2. Knowledge KAM
3. PRO KAM
Follow us on
1. Facebook
2. Instagram
3. Pinterest
4. Blogspot
5 Twitter
If you have any other ideas to make me design, you can describe them in the comment section and if I can, I will make a designing video on it.
So I am waiting
#prokam #pro #IDM #Solutions #Hack
0 Comments