Its my first
blog post that how can we manage arduino with Bluetooth. Its very fast apps
that we are use in windows app store. I am using arduino Bluetooth bot you can
use further module.
ARDUINO BLUETOOTH CONTROLLER PARTS
Arduino
Sketch & Upload
1.We can install very fast app from
windows store and to install this we need windows 8.0 &10.
Windows: 8.1
& 10
I am using
arduino Bluetooth bot you can use further module.
ARDUINO BLUETOOTH CONTROLLER PARTS
Arduino
Sketch & Upload
int led = 13;
void setup()
{
Serial.begin(9600);
Serial.flush();
pinMode(led,
OUTPUT);
}
void loop()
{
String command =
"";
while
(Serial.available() > 0)
{
command
+= Serial.readString();
delay(5);
}
if (command ==
"on")
{
digitalWrite(led, HIGH);
}
else if (command
== "off")
{
digitalWrite(led, LOW);
}
}
Assembling of the project
We are assemble this project with the matching wires.
You can use shorter wires to remove difficulty.
-------------------------------------
-------------------------------------
Bluetooth = Arduino Pin
BLL VCC = 5v or Vin (USB only power
arduinos)
BL GND = GND
BL Rx = TX pin
BL Tx = Rx pin
-------------------------------------
-------------------------------------
Component = Arduino Pin
Led + = 13 pin
Led - = GND
.We can use arduino led in place of normal led.
Bluetooth Pair and Search
2. Pair your device to your laptop.
The initial pair only has to be done
one time.
Most passcodes are 1234 or 0000.
3.Open Quick Terminal and search for
your device.
How It Works:-
When we send ON command in circuit, then the Led will glow and when we send OFF command then our Led will turn
off.
We
can use different type of command to
control the more things in Bluetooth control Arduino.
You can also visit this link:
No comments:
Post a Comment