Define PWM Pins

Hello,

First of all, let me tell you the problem that I encounter in Arduino Uno R3. Actually I used 4 DC worm gear motor for my project and I used the digital pin(3,5,6,9,10,11) which has the (~) symbol in the Arduino Uno R3 for the first 3 motor,but for the 4th motor I used pin 7 and pin 8. However, when I define the pwm signal for the first 3 motor is fine but for the motor that connected with pin 7& pin 8 it couldn't read the pwm signal. It always run in full speed(255 pwm even though I define 128).for example: I write the coding like this-
'Void setup() {
}
Void loop() {
motor1.SetSpeed(128);
motor2.SetSpeed(128):
motor3.SetSpeed(128);
motor4.SetSpeed(128);
}'
So anyone could help me to solve on how to define the pwm signal by using the analog pin?

Please post all your code in code tags. It is unlear how your are driving the motor.

7&8 aren't PWM pins on the Uno R3

says:

3, 5, 6, 9, 10, 11

The DIO pins are 2, 4, 7, 8, 12, 13, 14, 15, 16, 17, 18, 19

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.