Advik Singhania
Published © GPL3+

Text Teleporter

Using Arduino, I show you how to copy text from one device and paste it in another device via Bluetooth, be it a smartphone or a laptop.

IntermediateFull instructions provided1 hour5,236
Text Teleporter

Things used in this project

Hardware components

Arduino Micro
Arduino Micro
Any Arduino compatible board with ATMega 32u4 IC will do. (like Leonardo/Pro Micro)
×1
HC-05 Bluetooth Module
HC-05 Bluetooth Module
×1
Breadboard (generic)
Breadboard (generic)
×1
Jumper wires (generic)
Jumper wires (generic)
×1
USB-A to Micro-USB Cable
USB-A to Micro-USB Cable
×1
Android device
Android device
×1

Software apps and online services

Arduino IDE
Arduino IDE
Or you can use Arduio Web Editor with Arduino Create Agent
Arduino Bluetooth Controller
Application can be downloaded from Google Play Store or App Store.

Story

Read more

Schematics

Schematic for the Project

Code

Text Teleporter Code

Arduino
Copy the code in Arduino IDE. Check if you've selected the right board and port from the Tools menu and click on Upload.
/* Project Name : Text Teleporter
 * Receives some text in String format via bluetooth from one device and types (pastes) it into another device.
 * For : Arduino Micro/Leonardo/Due/Pro Micro (ATMega 32U4)
 * Author : Advik Singhania
 * Created On : 11th October, 2020; 11:23 AM IST
 */

//Keyboard header file for Arduino to take
//control of the keyboard and paste the string
#include "Keyboard.h"

void setup() {
  // Open the serial port for bluetooth:
  Serial1.begin(9600);
  // Initialize control for the keyboard:
  Keyboard.begin();
}

void loop() {
  // Check for incoming serial data:
  if (Serial1.available() > 0) {
    // Read incoming serial data:
    String a = Serial1.readString();
    // Type the text:
    Keyboard.print(a);
  }
  delay(10); // Delay of 10 milliseconds
}

Credits

Advik Singhania

Advik Singhania

3 projects • 6 followers
A student pursuing Computer Sciences. Learning Python, C and C++ and like to tinker with Arduino, CircuitPython and Raspberry Pi.

Comments