Bridging Bharat Pi and Android: a Comprehensive Guide

by bharatpi in Circuits > Arduino

107 Views, 0 Favorites, 0 Comments

Bridging Bharat Pi and Android: a Comprehensive Guide

dumbdisplay.png

Bharat Pi:

 Bharat Pi is an IoT prototyping board for students, innovators, startups, and developers. A simplified board with an all-in-one compute, network and storage on a single board to build rapid prototypes. Bharat Pi bundles the power of ESP32, 4G/LTE module in an Arduino form factor. This makes Bharat Pi compatible with all Arduino and ESP32 programs and shields. Wireless monitoring can be done using Wi-Fi or with a Sim based 4G/LTE connectivity. Bharat Pi is a rugged board with good quality and could be used even for production and live customer deployments!

DumbDisplay:

Dumbdisplay is a versatile app that allows users to create and display content in a visually appealing format. It's perfect for anyone looking to present information without the clutter and complexity often associated with traditional presentation tools. The app focuses on simplicity and ease of use, making it accessible to a wide range of users.

Supplies

download.png
WhatsApp Image 2024-04-18 at 23.32.18_bc910ee3.jpg

Bharat Pi Boards

https://bharatpi.net/

Dumbdisplay App

(Available in the playstore)

Connection of Board

WhatsApp Image 2024-04-18 at 23.44.13_41b3926f.jpg
  1. Connect the Bharat Pi USB cable to both the Bharat Pi and your laptop.
  2. Launch the Arduino IDE.
  3. In the Arduino IDE, navigate to -> Tools -> Port -> Choose the appropriate COM port.

DumbDisplay Connection

dumbdisplay.pnga.png
  1. Install DumbDisplay App.
  2. Open the DumbDisplay app and navigate to the option for "Establish Connection".
  3. Next, the app will prompt you to enable Bluetooth. Select 'Allow' to establish the connection.
  4. Click on the 'Scan' option to discover available Bluetooth device.
  5.  Choose your device from the list.
  6. It will take a few seconds to confirm the connection status as 'Connected'.

Code From Arduino Ide

Screenshot 2024-04-19 234137.png
#include <BluetoothSerial.h>


BluetoothSerial SerialBT;


void setup() {
  Serial.begin(115200);
  SerialBT.begin("bharatpi"); // Bluetooth device name
  Serial.println("The device started, now you can pair it with Bluetooth!");
}


void loop() {
  SerialBT.println("Hello Bharat Pi"); // Send the message over Bluetooth
  delay(1000); // Wait for 1 second before sending the message again
}

This code continuously sends "Hello Bharat Pi" over Bluetooth, allowing any paired device to receive the message. It's a simple example of how to use Bluetooth communication on the Bharat Pi with the Dumbdisplay app .