millerman4487
Published © CC BY-NC-SA

View Serial Monitor Over Bluetooth

Use a Bluetooth module to replace a traditional wired connection for transmitting serial data.

IntermediateProtip1 hour68,504
View Serial Monitor Over Bluetooth

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
HC-05 Bluetooth Module
HC-05 Bluetooth Module
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Schematic

Code

Code

Arduino
/*
 ASCII table
 Prints out byte values in all possible formats:
 - as raw binary values
 - as ASCII-encoded decimal, hex, octal, and binary values
 For more on ASCII, see http://www.asciitable.com and http://en.wikipedia.org/wiki/ASCII
 The circuit: No external hardware needed.
 created 2006
 by Nicholas Zambetti <http://www.zambetti.com>
 modified 9 Apr 2012
 by Tom Igoe
 This example code is in the public domain.
 http://www.arduino.cc/en/Tutorial/ASCIITable
*/

void setup() {

 Serial.begin(9600);

while (!Serial) {
   ; // wait for serial port to connect. Needed for native USB port only
 }

 Serial.println("ASCII Table ~ Character Map");
}

int thisByte = 33;

void loop() {

 Serial.write(thisByte);

 Serial.print(", dec: ");
 Serial.print(thisByte);

 Serial.print(", hex: ");
 Serial.print(thisByte, HEX);

 Serial.print(", oct: ");
 Serial.print(thisByte, OCT);

 Serial.print(", bin: ");
 Serial.println(thisByte, BIN);

 if (thisByte == 126) {   
   while (true) {
     continue;
   }
 }
 thisByte++;

}

Credits

millerman4487

millerman4487

10 projects • 82 followers

Comments