Arduino Remote Control using Phone Bluetooth.

Arduino Remote Control using Phone Bluetooth.

ampower
Nov 29, 2018
  • 2.3 MB

    파일 크기

  • Android 4.0+

    Android OS

Arduino Remote Control using Phone Bluetooth. 정보

Arduino와 채팅하고 Smartphone Bluetooth를 사용하여 원격으로 테스트하십시오.

To see how to use this App click here. It is tutorial with a sample project. You can use the App for your own projects.

For this App to work you need to put a Arduino sketch in your Arduino device. To download the Arduino Sketch click here.

Learn various Arduino Commands by Chatting with Arduino. Program and set Arduino Pin functions by sending commands remotely without downloading code.

App is used to program (change pin settings) of Arduino remotely using Bluetooth. You do not need to download programs to change pin settings like pin mode. You can do it remotely using this app.

Its a great tool to learn Arduino in the most fun way by chatting with Arduino.

You can use the sample sketch given here. This sketch can be customized/changed to suit your needs, language and enhance your experience.

[Arduino Sketch]

/******Sketch for App*******/

#include <SoftwareSerial.h> // import the serial library

SoftwareSerial chat(10, 11); // RX, TX

void setup() {

chat.begin(9600);

}

void loop() {

if (chat.available()){

String readStr = "";

readStr=chat.readString();

//pinMode

if(readStr.startsWith("pinMode")){

String pin=readStr.substring(readStr.indexOf("(")+1,readStr.indexOf(","));

int pinNo=pin.toInt();

String mode=readStr.substring(readStr.indexOf(", ")+2,readStr.indexOf(")"));

if(mode=="INPUT"){

pinMode(pinNo, INPUT);}

if(mode=="OUTPUT"){

pinMode(pinNo, OUTPUT);}

if(mode=="INPUT_PULLUP"){

pinMode(pinNo, INPUT_PULLUP);}

chat.println("done");

}

//digitalWrite

if(readStr.startsWith("digitalWrite")){

String pin=readStr.substring(readStr.indexOf("(")+1,readStr.indexOf(","));

int pinNo=pin.toInt();

String value=readStr.substring(readStr.indexOf(", ")+2,readStr.indexOf(")"));

if(value=="HIGH"){

digitalWrite(pinNo, HIGH);}

if(value=="LOW"){

digitalWrite(pinNo, LOW);}

chat.println("done");

}

//digitalRead

if(readStr.startsWith("digitalRead")){

String pin=readStr.substring(readStr.indexOf("(")+1,readStr.indexOf(","));

int pinNo=pin.toInt();

int val=digitalRead(pinNo);

if(val==1){

chat.println("it's HIGH");}

if(val==0){

chat.println("it's LOW");}

}

//analogWrite

if(readStr.startsWith("analogWrite")){

String pin=readStr.substring(readStr.indexOf("(")+1,readStr.indexOf(","));

int pinNo=pin.toInt();

String val=readStr.substring(readStr.indexOf(", ")+2,readStr.indexOf(")"));

int value=val.toInt();

if(pinNo==10 || pinNo==11){

chat.println("You were trying to write on pins which are used by bluetooth RX/TX");// analog write/PWM on pins used by bluetooth can interrupt communication.

}else{

analogWrite(pinNo, value);

chat.println("done");

}

}

//tone

if(readStr.startsWith("tone")){

String pin=readStr.substring(readStr.indexOf("(")+1,readStr.indexOf(","));

int pinNo=pin.toInt();

String frq=readStr.substring(readStr.indexOf(", ")+2,readStr.indexOf(")"));

int frequency=frq.toInt();

String dur=readStr.substring(readStr.lastIndexOf(", ")+2,readStr.indexOf(")"));

int temp=dur.toInt();

long duration=temp*1000;

if(pinNo==10 || pinNo==11){

chat.println("You were trying to write on pins which are used by bluetooth RX/TX");// analog write/PWM on pins used by bluetooth can interrupt communication.

}else{

tone(pinNo, frequency, duration);

chat.println("done");

}

}

//analogRead

if(readStr.startsWith("analogRead")){

String pin=readStr.substring(readStr.indexOf("(")+1,readStr.indexOf(","));

int pinNo=pin.toInt();

int val=analogRead(pinNo);

chat.println("it's " + String(val));

}

}

}

/********end of sketch**********/

더 보기

What's new in the latest 7

Last updated on 2018-11-29
*Added Advanced I/O function 'tone' used to generate different tones.
*Added 'Share' button to share chat history using whatsapp, email, SMS, Bluetooth etc. It also gives option to store on Google Drive or other Storage apps.
더 보기

비디오 및 스크린 샷

  • Arduino Remote Control using Phone Bluetooth.의 안드로이드 공식 트레일러
  • Arduino Remote Control using Phone Bluetooth. 스크린샷 1
  • Arduino Remote Control using Phone Bluetooth. 스크린샷 2
  • Arduino Remote Control using Phone Bluetooth. 스크린샷 3
  • Arduino Remote Control using Phone Bluetooth. 스크린샷 4
  • Arduino Remote Control using Phone Bluetooth. 스크린샷 5
  • Arduino Remote Control using Phone Bluetooth. 스크린샷 6
  • Arduino Remote Control using Phone Bluetooth. 스크린샷 7
APKPure 아이콘

APKPure 앱을통한매우빠르고안전한다운로드

한번의클릭으로 Android에 XAPK/APK 파일을설치할수있습니다!

다운로드 APKPure
thank icon
사용자 환경을 개선하기 위해 이 웹 사이트의 쿠키 및 기타 기술을 사용합니다.
이 페이지의 링크를 클릭하면 당사의 개인 정보 보호 정책쿠키 정책에 동의하는 것입니다.
더 알아보기