Skip to main content

I have connected DRV8835 with 2 DC motors with 11 power supply. Arduino nano.

When I for loop like i from 0 to 1024 for analogWrite(i,Motor1) for the DC Motor1 it's accelerating from 0 to 200 and it's stopping. When I becomes 250 it's starting at higher speed. When it becomes 500 it's stopping again. And 550 we have our power again.

Now I tried to run analogWrite(1000, ***) but it's not working. When I change the value from 1000 to 1005 it's not working again. But at 1024 we have the maximum speed and it is working?

 #define LEFT_PWM 9
 #define RIGHT_PWM 10
 #define LEFT_DIR 5
 #define RIGHT_DIR 6
 
void setup() {
  pinMode(5, OUTPUT);
  pinMode(6, OUTPUT);
}
 
void loop() {
  digitalWrite(LEFT_DIR, HIGH);
  analogWrite(LEFT_PWM, 1000);
}

I have connected DRV8835 with 2 DC motors with 11 power supply. Arduino nano.

When I for loop like i from 0 to 1024 for analogWrite(i,Motor1) for the DC Motor1 it's accelerating from 0 to 200 and it's stopping. When I becomes 250 it's starting at higher speed. When it becomes 500 it's stopping again. And 550 we have our power again.

Now I tried to run analogWrite(1000, ***) but it's not working. When I change 1000 to 1005 it's not working again. But at 1024 we have the maximum speed and it is working?

#define LEFT_PWM 9
#define RIGHT_PWM 10
#define LEFT_DIR 5
#define RIGHT_DIR 6
 
void setup() {
  pinMode(5, OUTPUT);
  pinMode(6, OUTPUT);
}
 
void loop() {
  digitalWrite(LEFT_DIR, HIGH);
  analogWrite(LEFT_PWM, 1000);
}

I have connected DRV8835 with 2 DC motors with 11 power supply. Arduino nano.

When I for loop like i from 0 to 1024 for analogWrite(i,Motor1) for the DC Motor1 it's accelerating from 0 to 200 and it's stopping. When I becomes 250 it's starting at higher speed. When it becomes 500 it's stopping again. And 550 we have our power again.

Now I tried to run analogWrite(1000, ***) but it's not working. When I change the value from 1000 to 1005 it's not working again. But at 1024 we have the maximum speed and it is working?

 #define LEFT_PWM 9
 #define RIGHT_PWM 10
 #define LEFT_DIR 5
 #define RIGHT_DIR 6
 
void setup() {
  pinMode(5, OUTPUT);
  pinMode(6, OUTPUT);
}
 
void loop() {
  digitalWrite(LEFT_DIR, HIGH);
  analogWrite(LEFT_PWM, 1000);
}
Fixed grammar and code formatting.
Source Link
VE7JRO
  • 2.5k
  • 19
  • 28
  • 31

I have connected DRV8835 with 2 dcDC motors with 11 power supply. Arduino nano. When

When I for loop like i from 0 to 1024 for analogWrite(i,Motor1) for the dcDC Motor1 it's accelerating from 0 to 200 and it's stopingstopping. When iI becomes 250 it's starting at higher speed. When iit becomes 500 it's stopping again.. And 550 we have our power again..

Now I tried to run analogWrite(1000, ***) but it's not working. When I change 1000 to 1005 it's not working again. But at 1024 we have the maximum speed and it is working?

#define LEFT_PWM 9
#define RIGHT_PWM 10
#define LEFT_DIR 5
#define RIGHT_DIR 6
 
void setup() {
pinMode(5, OUTPUT);
pinMode(6, OUTPUT);
}
 
void loop() {
  digitalWrite(LEFT_DIR, HIGH);
  analogWrite(LEFT_PWM, 1000);
}
#define LEFT_PWM 9
#define RIGHT_PWM 10
#define LEFT_DIR 5
#define RIGHT_DIR 6
 
void setup() {
  pinMode(5, OUTPUT);
  pinMode(6, OUTPUT);
}
 
void loop() {
  digitalWrite(LEFT_DIR, HIGH);
  analogWrite(LEFT_PWM, 1000);
}

I have connected DRV8835 with 2 dc motors with 11 power supply. Arduino nano. When I for loop like i from 0 to 1024 for analogWrite(i,Motor1) for the dc Motor1 it's accelerating from 0 to 200 and it's stoping. When i becomes 250 it's starting at higher speed. When i becomes 500 it's stopping again.. And 550 we have our power again..

Now I tried to run analogWrite(1000, ***) but it's not working. When I change 1000 to 1005 it's not working again. But at 1024 we have the maximum speed and it is working?

#define LEFT_PWM 9
#define RIGHT_PWM 10
#define LEFT_DIR 5
#define RIGHT_DIR 6
 
void setup() {
pinMode(5, OUTPUT);
pinMode(6, OUTPUT);
}
 
void loop() {
  digitalWrite(LEFT_DIR, HIGH);
  analogWrite(LEFT_PWM, 1000);
}

I have connected DRV8835 with 2 DC motors with 11 power supply. Arduino nano.

When I for loop like i from 0 to 1024 for analogWrite(i,Motor1) for the DC Motor1 it's accelerating from 0 to 200 and it's stopping. When I becomes 250 it's starting at higher speed. When it becomes 500 it's stopping again. And 550 we have our power again.

Now I tried to run analogWrite(1000, ***) but it's not working. When I change 1000 to 1005 it's not working again. But at 1024 we have the maximum speed and it is working?

#define LEFT_PWM 9
#define RIGHT_PWM 10
#define LEFT_DIR 5
#define RIGHT_DIR 6
 
void setup() {
  pinMode(5, OUTPUT);
  pinMode(6, OUTPUT);
}
 
void loop() {
  digitalWrite(LEFT_DIR, HIGH);
  analogWrite(LEFT_PWM, 1000);
}
Source Link
Lary
  • 13
  • 2

AnalogWrite problem

I have connected DRV8835 with 2 dc motors with 11 power supply. Arduino nano. When I for loop like i from 0 to 1024 for analogWrite(i,Motor1) for the dc Motor1 it's accelerating from 0 to 200 and it's stoping. When i becomes 250 it's starting at higher speed. When i becomes 500 it's stopping again.. And 550 we have our power again..

Now I tried to run analogWrite(1000, ***) but it's not working. When I change 1000 to 1005 it's not working again. But at 1024 we have the maximum speed and it is working?

#define LEFT_PWM 9
#define RIGHT_PWM 10
#define LEFT_DIR 5
#define RIGHT_DIR 6
 
void setup() {
pinMode(5, OUTPUT);
pinMode(6, OUTPUT);
}
 
void loop() {
  digitalWrite(LEFT_DIR, HIGH);
  analogWrite(LEFT_PWM, 1000);
}