I have an arduino uno with its USB cable, 2x16 LCD screen and an HCI-05 bluetoot
ID: 3588266 • Letter: I
Question
I have an arduino uno with its USB cable, 2x16 LCD screen and an HCI-05 bluetooth module. I also have a lot of wires to connect the LCD screen and the bluetooth module to my arduino uno.
The task in this project is to do an andrid application using the android studio project which can send a string from the android application to the connected LCD screen with the arduino by using the bluetooth module. Can someone please do the android studio project and upload the files so that I can download it as winrar file. Please don't give me any android applications that can do this task, I know there are a lot of android applications in the google play store that can do this task, but my task here is to build my own application using android studio project not using the available applications. Thanks in advance.
Explanation / Answer
int counter =0;
void setup() {
Serial.begin(9600);
delay(50);
}
void loop() {
counter++;
Serial.print("Arduino counter: ");
Serial.println(counter);
delay(500); // wait half a sec
}
// REMIXED BY: TECHBITAR (HAZIM BITAR)
// LICENSE: PUBLIC DOMAIN
// DATE: MAY 2, 2012
char INBYTE;
int LED = 13; // LED on pin 13
void setup() {
Serial.begin(9600);
pinMode(LED, OUTPUT);
}
void loop() {
Serial.println("Press 1 to turn Arduino pin 13 LED ON or 0 to turn it OFF:");
while (!Serial.available()); // stay here so long as COM port is empty
INBYTE = Serial.read(); // read next available byte
if( INBYTE == '0' ) digitalWrite(LED, LOW); // if it's a 0 (zero) tun LED off
if( INBYTE == '1' ) digitalWrite(LED, HIGH); // if it's a 1 (one) turn LED on
delay(50);
}
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.