사용자 환경을 개선하기 위해 이 웹 사이트의 쿠키 및 기타 기술을 사용합니다.
이 페이지의 링크를 클릭하면 당사의 개인 정보 보호 정책쿠키 정책에 동의하는 것입니다.
동의함 더 알아보기
Arduino Bluetooth Remote Lite 아이콘

1.0 by Wonder Cloud Apps LLC


Mar 7, 2018

Arduino Bluetooth Remote Lite 정보

A simple basic bluetooth controller for arduino based DC Motor devices

This sample sketch is for Arduino based bluetooth tank with the following components, feel free to modify the code to suit your DIY project. Happy building!

1) Arduino UNO R3

2) Motor Driver (2A Dual L298N H-Bridge)

3) HC06 Bluetooth Module

Note: Disable bluetooth power when uploading sketch

Data sent while pressing button:

Up = w

Down = x

Left = a

Right = d

Cannon left = q

Cannon right = e

While release button will sent out = s

Download

Arduino Code = https://dl.dropboxusercontent.com/u/17916918/BluetoothTankBasicCode.ino

Arduino Code

// Define Motor Driver Pins

int ENA=9;

int IN1=7;

int IN2=8;

int IN3=2;

int IN4=4;

int ENB=10;

// Define Motor Speed Value

int motorSpeed=80; // Normal Speed

int motorTurnSpeed=110; // Speed When Turning Left or Right

char val; // Define val To Store The Serial Input

void setup() // Run once, when the sketch starts

{

Serial.begin(9600); // Set the baud rate to match with bluetooth

pinMode(ENA,OUTPUT); // Sets the pin as output

pinMode(IN1,OUTPUT);

pinMode(IN2,OUTPUT);

pinMode(ENB,OUTPUT);

pinMode(IN3,OUTPUT);

pinMode(IN4,OUTPUT);

}

void forward()

{

digitalWrite(IN1,HIGH);

digitalWrite(IN2,LOW);

analogWrite(ENA,motorSpeed); // Enable Motor & Set the Speed

digitalWrite(IN3,HIGH);

digitalWrite(IN4,LOW);

analogWrite(ENB,motorSpeed);

}

void backward()

{

digitalWrite(IN1,LOW); // Motor drivers may have difference setting, change it accordingly

digitalWrite(IN2,HIGH);

analogWrite(ENA,motorSpeed);

digitalWrite(IN3,LOW);

digitalWrite(IN4,HIGH);

analogWrite(ENB,motorSpeed);

}

void left()

{

digitalWrite(IN1,LOW);

digitalWrite(IN2,HIGH);

analogWrite(ENA,motorTurnSpeed);

digitalWrite(IN3,HIGH);

digitalWrite(IN4,LOW);

analogWrite(ENB,motorTurnSpeed);

}

void right()

{

analogWrite(ENA,motorTurnSpeed);

digitalWrite(IN1,HIGH);

digitalWrite(IN2,LOW);

analogWrite(ENB,motorTurnSpeed);

digitalWrite(IN3,LOW);

digitalWrite(IN4,HIGH);

}

void motorStop()

{

analogWrite(ENA,0);

analogWrite(ENB,0);

}

void loop() // Run continuously until powered down

{

val = Serial.read(); // Read & store information from the serial port to val

if (val != -1) {

if (val == 'w' || val == '8')

forward();

else if (val == 'x' || val == '2')

backward();

else if (val == 'a' || val == '4')

left();

else if (val == 'd' || val == '6')

right();

else if (val == 's')

motorStop();

}

}

최신 버전 1.0의 새로운 기능

Last updated on Mar 7, 2018

Minor bug fixes and improvements. Install or update to the newest version to check it out!

번역 로드 중...

추가 앱 정보

최신 버전

Arduino Bluetooth Remote Lite 업데이트 요청 1.0

필요한 Android 버전

4.0 and up

더 보기

Arduino Bluetooth Remote Lite 스크린 샷

APKPure를 구독하십시오
최고의 Android 게임 및 앱의 초기 릴리스, 뉴스 및 가이드에 액세스하는 첫 번째 사람이 되십시오.
고맙지 만 사양 할게
가입하기
성공적으로 구독!
당신은 이제 APKPure에 가입되었습니다.
APKPure를 구독하십시오
최고의 Android 게임 및 앱의 초기 릴리스, 뉴스 및 가이드에 액세스하는 첫 번째 사람이 되십시오.
고맙지 만 사양 할게
가입하기
성공!
당신은 이제 우리의 뉴스 레터를 구독하고 있습니다.