Arduino Bluetooth Controlled Car
Arduino Bluetooth Controlled Car
//// Before uploading the code you have to install the necessary library//
#include <AFMotor.h>
AF_DCMotor motor1(1);
AF_DCMotor motor2(2);
AF_DCMotor motor3(3);
AF_DCMotor motor4(4);
char command;
void setup()
void loop(){
command = Serial.read();
//Serial.println(command);
switch(command){
case 'F':
forward();
break;
case 'B':
back();
break;
case 'L':
left();
break;
case 'R':
right();
break;
void forward()
void back()
void left()
void right()
void Stop()