Close Menu
Circuit of Things
  • Home
  • Projects
    • Raspberry Pi Projects
    • Arduino Projects
    • ESP8266 Projects
    • ESP32 Projects
    • IoT Tutorials
    • Sensors & Modules
    • IoT Basics
  • About Us
  • Get In Touch
  • 3D Print
  • Shop Now !
  • Electro Calc

Stay in the Loop!

Subscribe to get the latest IoT tutorials, Arduino projects, and electronics guides delivered straight to your inbox.

Instagram WhatsApp
  • Terms and Conditions
  • Disclaimer
  • Privacy Policy
Circuit of Things Circuit of Things
  • Home
  • Projects
    • Raspberry Pi Projects
    • Arduino Projects
    • ESP8266 Projects
    • ESP32 Projects
    • IoT Tutorials
    • Sensors & Modules
    • IoT Basics
  • About Us
  • Get In Touch
  • 3D Print
  • Shop Now !
  • Electro Calc
Hire us
Circuit of Things
Home»ESP32 Projects»ESP32 Bluetooth Tutorial: Wireless Serial Communication with Arduino IDE
ESP32 Projects

ESP32 Bluetooth Tutorial: Wireless Serial Communication with Arduino IDE

Sai Preetham KoyyalaBy Sai Preetham KoyyalaMay 4, 2026No Comments2 Mins Read
Share Facebook Twitter Pinterest LinkedIn Tumblr Reddit Telegram Email
Share
Facebook Twitter LinkedIn Pinterest Email
Contents
  • Introduction
  • What We Will Build
  • No Extra Hardware Needed
  • The Code
  • How to Connect
  • Conclusion

Introduction

The ESP32 has built-in Classic Bluetooth and Bluetooth Low Energy (BLE), making it incredibly versatile for wireless communication. In this tutorial, we use Bluetooth Serial to create a wireless terminal — allowing you to send commands from your phone to control GPIO pins.

What We Will Build

A Bluetooth-controlled LED system. Using a free Android app (Serial Bluetooth Terminal), you will type commands on your phone and the ESP32 will respond by toggling an LED.

No Extra Hardware Needed

Unlike the older HC-05/HC-06 Bluetooth modules, the ESP32 has Bluetooth built directly into the chip — saving you money and simplifying your circuit.

The Code

#include "BluetoothSerial.h"
BluetoothSerial SerialBT;
#define LED_PIN 2
void setup() {
  Serial.begin(115200);
  pinMode(LED_PIN, OUTPUT);
  SerialBT.begin("ESP32_BT"); // Bluetooth device name
  Serial.println("Bluetooth started! Pair with 'ESP32_BT'");
}
void loop() {
  if (SerialBT.available()) {
    String cmd = SerialBT.readStringUntil('\n');
    cmd.trim();
    if (cmd == "ON") {
      digitalWrite(LED_PIN, HIGH);
      SerialBT.println("LED is ON");
    } else if (cmd == "OFF") {
      digitalWrite(LED_PIN, LOW);
      SerialBT.println("LED is OFF");
    } else {
      SerialBT.println("Unknown command. Send ON or OFF.");
    }
  }
}

How to Connect

  1. Upload the code to your ESP32.
  2. On your Android phone, go to Settings > Bluetooth and pair with “ESP32_BT”.
  3. Download Serial Bluetooth Terminal from the Play Store.
  4. Connect to ESP32_BT in the app and type ON or OFF.

Conclusion

Bluetooth Serial on the ESP32 is a powerful and cable-free way to control your projects. It is perfect for robotics, smart home gadgets, and any project where you need a quick wireless debugging terminal.

Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
Previous ArticleArduino I2C LCD Display Tutorial: Show Sensor Data on Screen
Next Article LDR Light Sensor with Arduino: Auto Night Light Project
Sai Preetham Koyyala
  • Website
  • Facebook
  • X (Twitter)
  • Instagram
  • LinkedIn

Hello, I am Sai Preetham Koyyala. I'm an electronics engineer by profession, a DIY enthusiast by passion. ESP32 and Arduino are the main topics of my work.

Related Posts

ESP32 Projects

ESP32 Firebase Realtime Database: Send and Receive Data from the Cloud

May 4, 2026
ESP32 Projects

ESP32 OTA Updates: Program Your Board Over Wi-Fi with Arduino IDE

May 4, 2026
ESP32 Projects

ESP32 Deep Sleep Mode: Extend Battery Life in IoT Projects

May 4, 2026
Add A Comment
Leave A Reply Cancel Reply


KSP Electronics
✓ Trusted Store
Everything for Your
Next IoT Build
Boards, sensors, modules & kits delivered fast across India.
ESP32 Arduino Sensors Modules DIY Kits
500+
Products
Fast
Delivery
★★★★★
Rated
🛒 Shop Now →
kspelectronics.in
💻
● Available for Projects
Hire Me for
IoT Projects
ESP32, LoRaWAN, cloud dashboards & custom hardware — end-to-end IoT solutions for your needs.
ESP32 LoRaWAN MQTT Arduino Cloud PCB Design
3+
Yrs Exp
20+
Projects
★★★★★
Rated
💬 Chat on WhatsApp
View services →
Top Posts

Raspberry Pi: How to Control a DC Motor with L298N and PWN on a Web Server

July 14, 2023

Relay Module with Arduino: Control High Voltage Appliances Safely

May 4, 2026

Esp8266 / NodeMCU Pinout: A Comprehensive Guide for Beginners

June 25, 2023
Follow Us
  • Telegram

Stay in the Loop!

Subscribe to get the latest IoT tutorials, Arduino projects, and electronics guides delivered straight to your inbox.

Most Popular

Raspberry Pi: How to Control a DC Motor with L298N and PWN on a Web Server

July 14, 2023

Relay Module with Arduino: Control High Voltage Appliances Safely

May 4, 2026

Esp8266 / NodeMCU Pinout: A Comprehensive Guide for Beginners

June 25, 2023
Our Picks

Relay Module with Arduino: Control High Voltage Appliances Safely

May 4, 2026

NodeMCU ESP8266 Sensor Data to ThingSpeak IoT Platform

May 4, 2026

ESP32 Firebase Realtime Database: Send and Receive Data from the Cloud

May 4, 2026

Stay in the Loop!

Subscribe to get the latest IoT tutorials, Arduino projects, and electronics guides delivered straight to your inbox.

© 2026 Circuit of Things. All Rights Reserved. Built with ❤️ for the Maker Community.

  • About
  • Privacy
X (Twitter) Instagram YouTube WhatsApp
  • Book an Appointment
  • My Bookings
  • Support Us
© 2026 Circuit of Things. Designed by Sai Preetham Koyyala.

Type above and press Enter to search. Press Esc to cancel.