Prajjwal Nag
Published © CC BY-NC-SA

Turn your RC Car to Bluetooth RC car

How to turn your RC Car into a Bluetooth controlled RC Car.

IntermediateFull instructions provided3 hours34,774
Turn your RC Car to Bluetooth RC car

Things used in this project

Story

Read more

Schematics

Schematics

Code

Code snippet #1

Plain text
void setup() {
  Serial.begin(9600);
  pinMode(8, OUTPUT);
  pinMode(7, OUTPUT);
  pinMode(9, OUTPUT);
  pinMode(6, OUTPUT);
    pinMode(5, OUTPUT);
    pinMode(4, OUTPUT);
    digitalWrite(4,LOW);

    digitalWrite(5,LOW);

}

// the loop function runs over and over again forever
void loop() {
  var=Serial.read();
  if(var=='F')
  {
  digitalWrite(6,LOW);
digitalWrite(7,HIGH);
digitalWrite(8,LOW);
digitalWrite(9,HIGH);
  

  } if(var=='H')
  {    digitalWrite(frled1,HIGH);
  }
  if(var=='B')
  {    
    analogWrite(speeden,150);

   digitalWrite(6,HIGH);
digitalWrite(7,LOW);
digitalWrite(8,HIGH);
digitalWrite(9,LOW);
    digitalWrite(bcled1,HIGH);

  }
  if(var=='X')
  {digitalWrite(9,LOW);
  digitalWrite(8,LOW);
  digitalWrite(7,LOW);
  digitalWrite(6,LOW);
      digitalWrite(frled1,LOW);
      digitalWrite(bcled1,LOW
      
      );

  }
  if(var=='L')
  {digitalWrite(6,LOW);
digitalWrite(7,LOW);
digitalWrite(8,HIGH);
digitalWrite(9,LOW);
  }
  if(var=='R')
  {digitalWrite(6,HIGH);
digitalWrite(7,LOW);
digitalWrite(8,LOW);
digitalWrite(9,LOW);;
  }
}

Credits

Prajjwal Nag

Prajjwal Nag

8 projects • 31 followers
So basically i am a crazy person, who loves to think the most odd way ever possible,who makes what he thinks and also let other also make those .

Comments