how to control 4 motors by remot control with a bluetooth device control

hi guys,

i would like to know this code.
i dont know how to do it but i have this code

const int switchPin = 2;
const int motorPin = 9;
int switchState =0;

void setup() {
pinMode(motorPin, OUTPUT);
pinMode(switchPin, INPUT);
}

void loop() {
switchState = digitalRead(switchPin);

if (switchState == HIGH) {
digitalWrite(motorPin, HIGH);
}
else {
digitalWrite(motorPin, LOW);
}

this one its for a motor but i want one which include the bluetooth component, and for four motors.
its for a car, which it have to have a motor for each wheel, andf it have to go back and on.

can you help me please?

if its not clear and you would like to help text me back and ill try to explan better

thanks guys

Think of your program as having at least two major parts.

  • Receiving data and storing it in variables.
  • Using the values in the variables to control your motors

Start by writing a short program to receive the Bluetooth data and display it on the Serial Monitor.

What is going to send the Bluetooth data?
What data is it going to send? Show us an example of the data.

The examples in Serial Input Basics may be useful. If you have the choice use the system in the 3rd example as it will be most reliable.

...R
Planning and Implementing a Program