BNSS - IoT & Robotics Training

OBJECTIVE

The objective of using a Bluetooth module with Arduino is to create a system that can be controlled remotely using a smartphone or tablet

MODULES REQUIRED

SCHEMATIC DIAGRAM

Connect Bluetooth:
ARDUINO CODE
JavaScript
#include<Softwareserial.h>
/*Create object nasoftwareserial*/
SoftwareSerial bt(2,3);/*(Rx,Tx)*/
void setup() {
bt.begin(9600);/*Define baud rate for software serial communication*/
Serial.begin(9600);/* Define baud rate for serial communication*/
}
void loop() {
if (bt.available()) /* If data is available on serial port*/
{
Serial.write(bt.read());/* Print character received on to the serial monitor*/
}
}

INSTRUCTIONS

WORKING

IOT Projects

BLUETOOTH MODULE

/ /

BLUETOOTH MODULE

OBJECTIVE

The objective of using a Bluetooth module with Arduino is to create a system that can be controlled remotely using a smartphone or tablet

MODULES REQUIRED

SCHEMATIC DIAGRAM

Connect Bluetooth:
ARDUINO CODE
JavaScript
#include<Softwareserial.h>
/*Create object nasoftwareserial*/
SoftwareSerial bt(2,3);/*(Rx,Tx)*/
void setup() {
bt.begin(9600);/*Define baud rate for software serial communication*/
Serial.begin(9600);/* Define baud rate for serial communication*/
}
void loop() {
if (bt.available()) /* If data is available on serial port*/
{
Serial.write(bt.read());/* Print character received on to the serial monitor*/
}
}

INSTRUCTIONS

WORKING