Only produce wooden brushes since 2007

how to run a brushless motor esc with arduino

by:Boom Home     2020-03-21
This instructable will show you how to configure and run the brushless motor ESC using arduino, as well as running the brushless motor at different speeds.
It will go through material, hardware setup, and software coding.
It will explain what is done at every step of the code.
Don\'t get hurt, have fun!
Below is a video of the motor working.
You need to get: Arduino (
I will do it, I used Arduino Mega)
A computer with an Arduino encoding program on it.
Esc usb connector (
I will do it, I used the normal brand of 30 amps)
10 am p brushless motor with welding battery, connection wire soldering iron (
Any 12 volt battery is 2 or more and I used 3 battery 11. 1 volt battery)-
Insert the soldering iron to warm up, and then align the ESC with the motor wire (
ESC\'s wires should have three identical wires on one side and battery and Arduino on the other)-
After the soldering iron is heated, put the motor control line taken out of ESC with the wires taken out of the motor.
The wires in the middle must go together, but 2 side lines can be switched to reverse the direction of the motor.
Finally, you need to use a soldering iron for heating
On the wire, it should take about 5-
10 seconds, then melt the solder on the wire and glue them together. -
Take the input wire from esc (
Looks like the one on the servo line)
And connect the ground to the ground and the signal (white)to pin 9.
The positive line should only be connected to vin if the arduino is not connected to the computer.
If it is connected to a computer, do not connect the positive pole to anything, otherwise it will burn your computer --
The thick red and black wires coming out of the bottom should be attached to the battery. -
You need to first plug the arduino board into your computer using a USB connector.
You can then download the program below.
After downloading the program, press the reset button on the arduino before plugging the battery into ESC.
The motor will make a start noise and then it will wait.
After a few seconds, the motor will make 3 beeps and then gradually move to the programmed speed.
Then it will gradually fall back to zero speed.
You can edit the program of motor running speed and duration.
Do not set the motor to a speed above 85% power, otherwise ESC will burn out. Code)
This code can be used for any purpose.
Including servo ESC1; int pos = 0;
/Set the position variable arm (){setSpeed(0);
/Set variable speed delay (1000); }void setSpeed(int speed){
Int angle = map (
Speed, 0,100, 0,180);
/Set the servo position to different speeds. write(angle); }void setup(){ESC1. attach(9);
/Add ESC to a pin. arm(); }void loop(){int speed;
/(speed = 0; speed 0; speed -= 5){
/At the set speed of 1 second, the cycle speed is reduced to 0% power (speed); delay(1000); }setSpeed(0);
/Set the speed variable to zero no matter what delay (1000);
/Off 1 second}
Custom message
Chat Online 编辑模式下无法使用
Chat Online inputting...