fbpx

Interface Bluetooth With Arduino Uno

A wireless technology used to exchange data over short distance.

  • It uses short wave length UHF radio wave.
  • Operated at a frequencies between 2400 and 2483.5Mhz.
  • Use to create personal area network.
  • It is alternate to RS232 data cable.
  • Bluetooth is more useful to transfer data with two are more devices in low band-with situations.
  • Bluetooth is also used to transfer sound data which as application in Mobile Phones.

Paring System:

  • To Transfer data between two devices , it must synchronized by paring.
  • Paring done link key.
  • When both devices have same link key then it said to be paired.

Data Transfer:

  • Bluetooth Transfer data by dividing the transmiting data into packets.
  • Transmit each packet on one of 79 designated Bluetooth channels.

Hardware Required

  • Bluetooth Module.
  • Arduino.

Bluetooth Pinout

  • Vin= +5V.
  • Tx= Rx of Microcontroller.
  • Rx= Tx of Microcontroller.
  • Gnd= Ground

Circuit

Virtual Circuit

Code

 int BluetoothData;
 int ledpin=13;
 void setup()
 {
 Serial.begin(9600);
 Serial.println("Bluetooth On please press 1 or 0 blink LED ..");
 pinMode(ledpin,OUTPUT);
 }
 void  loop()
 {
 if (Serial.available())
 {
 BluetoothData=Serial.read();
 Serial.println(BluetoothData);
 if(BluetoothData=='0')
 {
 digitalWrite(ledpin,HIGH);
 Serial.print("high");
 }
 if (BluetoothData=='1')
 {
 digitalWrite(ledpin,LOW);
 Serial.print("low");
 }
 }
 delay(100);
 }

1 comment on “Interface Bluetooth With Arduino Uno

Leave a Reply

Your email address will not be published. Required fields are marked *