case 'f': Serial.write("forwards"); //To move the motor forward: IN1=H, IN2=L, ENA=H digitalWrite(iEnableMotorA, HIGH); digitalWrite(iInOneMotorA, HIGH); digitalWrite(iInTwoMotorA, LOW); analogWrite(iEnableMotorA, 75); //PWM Speed Control delay(1000); // waits for a second digitalWrite(iEnableMotorA, LOW); digitalWrite(iInOneMotorA, LOW); break;
int iEnableMotorA = 3; //Enable Motor A int iInOneMotorA = 11; //IN1 for motor A int iInTwoMotorA = 6; //IN2 for motor A int iEnableMotorB = 5; //Enable Motor B int iInThreeMotorB = 10; //IN1 for motor B int iInFourMotorB = 9; //IN2 for motor B
With the current code it just makes a beeping noise. Any idea what that means?
I got it to move once but for it to move more I would need to re-flash the Arduino.
The logical part of the operating current range: 0 ~ 36mA
the sound comes from the controller
According to the spec:QuoteThe logical part of the operating current range: 0 ~ 36mA
By re-flash, I mean I need to put the sketch back onto the Arduino.
I think the HW part is right as I have got it to move
Or what is that for?
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16