HI GUYS
I NEED YOUR HELP
I WANT TO PROGRAM 4 BRUSHLESS MOTORS USING ESC WITH ARDUINO UNO AND I AM NEW WITH THIS PLEASE I WANT SOMEONE HELP ME WITH CODE THAT CAN USE TO PROGRAM THE AND THE TIME IS RUNNING OUT FROM ME !!!!!
When is our homework due?
Why are you screaming?
PLEASE IF YOU COULD HELP ME WITH IT PLEASE
PLEASE IF YOU COULD HELP ME WITH IT PLEASE
Just this once. See the third key up, on the left side? The one labeled Caps Lock? Give it a good whack. It seems to be stuck on.
could you help me with code please ...
This is the programming section.
Here you can get help with your program.
Where is your program?
i used this program to run 2 motors only but when i run 4 only 2 is run ??
the code is :
#include <Servo.h>
Servo myservo;
void arm(){
// arm the speed controller, modify as necessary for your ESC
setSpeed(0);
delay(1000); //delay 1 second, some speed controllers may need longer
}
void setSpeed(int speed){
// speed is from 0 to 100 where 0 is off and 100 is maximum speed
//the following maps speed values of 0-100 to angles from 0-180,
// some speed controllers may need different values, see the ESC instructions
int angle = map(speed, 0, 100, 0, 180);
myservo.write(angle);
}
void setup()
{
myservo.attach(9);
arm();
}
void loop()
{
int speed;
// sweep up from 0 to to maximum speed in 20 seconds
for(speed = 0; speed <= 100; speed += 5) {
setSpeed(speed);
delay(1000);
}
}
i used this program to run 2 motors only but when i run 4 only 2 is run ??
How are these motors connected to the Arduino?
How are these motors powered?
i used brushless motors with esc
and i connect the esc to motors and the esc is powered by battery
Is there an ESC arming sequence you're missing?
no ...
Maybe starting them all up together causes the voltage to dip too much.
Try a delay between starting each motor.