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