BNSS - IoT & Robotics Training

OBJECTIVE

The aim of this project prototype is it to design an reverse parking system which will assist the driver to make parking easily.

MODULES REQUIRED

SCHEMATIC DIAGRAM

Connect LCD:
Connect Bluetooth:
Connect LED:

*Note: The negative pin (LED) connects to GND in the built-in circuit, no additional connection needed

ARDUINO CODE
JavaScript
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
#include <SoftwareSerial.h>
// Initialize the I2C LCD with the address 0x27
LiquidCrystal_I2C lcd(0x27, 16, 2);
// Create a SoftwareSerial port for the Bluetooth module
SoftwareSerial bluetooth(2, 3); // RX, TX
// LED pin
const int ledPin = 9;
void setup() {
// Initialize the LCD with 16 columns and 2 rows
lcd.begin(16, 2);
lcd.init();
lcd.backlight();
// Initialize Bluetooth communication at 9600 baud
bluetooth.begin(9600);
// Set LED pin as output
pinMode(ledPin, OUTPUT);
// Display a welcome message
lcd.setCursor(0, 0);
lcd.print("Bluetooth LED");
lcd.setCursor(0, 1);
lcd.print("Control Ready");
delay(2000);
lcd.clear();
}
void loop() {
// Check if data is available from the Bluetooth module
if (bluetooth.available()) {
char data = bluetooth.read(); // Read the incoming data
if (data == '1') {
digitalWrite(ledPin, LOW); // Turn the LED on
lcd.clear();
lcd.setCursor(0, 0);
lcd.print("LED Status:");
lcd.setCursor(0, 1);
lcd.print("ON");
}
else if (data == '0') {
digitalWrite(ledPin, HIGH); // Turn the LED off
lcd.clear();
lcd.setCursor(0, 0);
lcd.print("LED Status:");
lcd.setCursor(0, 1);
lcd.print("OFF");
} } }

INSTRUCTIONS

WORKING

IOT Projects

BLUETOOTH CONTROLLED LED WITH LCD DISPLAY USING ARDUINO NANO

/ /

BLUETOOTH CONTROLLED LED WITH LCD DISPLAY USING ARDUINO NANO

OBJECTIVE

The aim of this project prototype is it to design an reverse parking system which will assist the driver to make parking easily.

MODULES REQUIRED

SCHEMATIC DIAGRAM

Connect LCD:
Connect Bluetooth:
Connect LED:

*Note: The negative pin (LED) connects to GND in the built-in circuit, no additional connection needed

ARDUINO CODE
JavaScript
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
#include <SoftwareSerial.h>
// Initialize the I2C LCD with the address 0x27
LiquidCrystal_I2C lcd(0x27, 16, 2);
// Create a SoftwareSerial port for the Bluetooth module
SoftwareSerial bluetooth(2, 3); // RX, TX
// LED pin
const int ledPin = 9;
void setup() {
// Initialize the LCD with 16 columns and 2 rows
lcd.begin(16, 2);
lcd.init();
lcd.backlight();
// Initialize Bluetooth communication at 9600 baud
bluetooth.begin(9600);
// Set LED pin as output
pinMode(ledPin, OUTPUT);
// Display a welcome message
lcd.setCursor(0, 0);
lcd.print("Bluetooth LED");
lcd.setCursor(0, 1);
lcd.print("Control Ready");
delay(2000);
lcd.clear();
}
void loop() {
// Check if data is available from the Bluetooth module
if (bluetooth.available()) {
char data = bluetooth.read(); // Read the incoming data
if (data == '1') {
digitalWrite(ledPin, LOW); // Turn the LED on
lcd.clear();
lcd.setCursor(0, 0);
lcd.print("LED Status:");
lcd.setCursor(0, 1);
lcd.print("ON");
}
else if (data == '0') {
digitalWrite(ledPin, HIGH); // Turn the LED off
lcd.clear();
lcd.setCursor(0, 0);
lcd.print("LED Status:");
lcd.setCursor(0, 1);
lcd.print("OFF");
} } }

INSTRUCTIONS

WORKING