Arduino Bluetooth Car

Arduino Bluetooth Car

  • 최신 버전
  • Rupak Poddar

Arduino Bluetooth 자동차를위한 가장 간단하고 가벼운 리모컨!

이 앱 정보

*Arduino Micro-Controller를 사용하여 자신의 차를 만들어야합니다. 일반적인 RC 자동차와 함께 작동하지 않습니다.*

이것은 Arduino Bluetooth 자동차를 제어 할 수있는 매우 간단하고 쉬운 응용 프로그램입니다.

응용 프로그램을 설치하기 전에 비디오를 시청하십시오.

배선 설정-
모터 드라이브 입력 1 ---------- 디지털 핀 12 (Arduino)
모터 드라이브 입력 2 ---------- 디지털 핀 11 (Arduino)
모터 드라이브 입력 3 --------- 디지털 핀 10 (Arduino)
모터 드라이브 입력 4 ---------- 디지털 핀 9 (Arduino)
LED-DIGTAL -------------------- 핀 13 (Arduino)
Bluetooth 모듈 PIN RX ----- 디지털 핀 TX (Arduino)
Bluetooth 모듈 PIN TX ----- 디지털 핀 RX (Arduino)


Arduino 코드-
int m1 = 12;
int m2 = 11;
int b1 = 10;
int b2 = 9;
int light = 13;

문자열 읽기;

void setup () {
Serial.begin (9600);
PINMODE (M1, 출력);
PINMODE (M2, 출력);
PINMODE (B1, 출력);
PINMODE (B2, 출력);
PINMODE (빛, 출력);
}

void loop () {
while (serial.available ()) {
지연 (3);
char c = serial.read ();
readstring += c;
}
if (readstring.length () 및 gt; 0) {
serial.println (readstring);
if (readstring ==”F”)
{
DigitalWrite (M1, High);
DigitalWrite (M2, High);
}
if (readstring ==”b”)
{
DigitalWrite (B1, High);
DigitalWrite (B2, High);
}
if (readstring ==”l”)
{
DigitalWrite (M1, High);
DigitalWrite (B2, High);
}
if (readstring ==”r”)
{
DigitalWrite (M2, High);
DigitalWrite (B1, High);
}
if (readstring ==”s”)
{
DigitalWrite (M1, Low);
DigitalWrite (M2, Low);
DigitalWrite (B1, Low);
DigitalWrite (B2, Low);
}
if (readstring ==”ledon”)
{
DigitalWrite (Light, High);
}
if (readString ==”ledoff”)
{
DigitalWrite (Light, Low);
}

readstring =””;
}
}

// 다른 비디오를 https://www.youtube.com/channel/ucvr-ssfhpxo2xo1a9jfzxya를 시청하십시오

버전 Arduino Bluetooth Car