There is an error in the schematic circuit. 5v and GND should be connected to the potentiometer extremes and A0 to the potentiometer middle point in order to avoid a short circuit between 5v and gnd when the potentiometer is in the cero position. For those who ar asking for it, the potentiometer can be any value. 1K, 10K etc because it is being mapped.
Dont know what my escs ratings were but the code below worked perfectly: #include //Using servo library to control ESC int val=0; //Creating a variable val Servo esc1; //Creating a servo class with name as esc void setup() { esc1.attach(8);//Specify the esc signal pin,Here as D8 esc1.writeMicroseconds(1000); //initialize the signal to 1000 delay(5000); esc1.writeMicroseconds(2000); delay(100); esc1.writeMicroseconds(900); delay(100); esc1.writeMicroseconds(900); //delay(100); //esc.writeMicroseconds(900); Serial.begin(9600); } void loop() { esc1.writeMicroseconds(val); //using val as the signal to esc if(Serial.available()) val = Serial.parseInt(); // Parse an Integer from Serial } Required material: 1.Arduino board 2.Esc 3.BLDC motor 4.Power supply for Motors Steps: 1.Connect ESCs to battery. 2.connect escs pin to respective Arduino ports 3.Connect arduino to your computer and burn the code 5.wait for 5 to 6 seconds. When the esc makes a long beep and then stops making any sound, your esc is ready. 6.open serial monitor and enter the values ranging from 950 to 2000 (950 being min throttle and 2000 being max throttle) Hope it helps
is it really necessary to use a library for this? cannot you use a constant voltage to control the velocity? or the output of the potentiometer without an arduino?
I'd advise you to supply power via the VIN terminal as it's designed to power the arduino.. Powering the arduino via the 3.3v terminal will damage your board as it bypasses the regulator since it's designed to output power. Your welcome :)
I love you RZtronics!!! :D I was using some other tutorials that use esc.write() and they DO NOT WORK!!! Using the function esc.writeMiliseconds() worked finally :D
The motor only increases to the speed we entered momentarily, then turns slowly at a constant speed again. It repeats this in short periods. What would be the reason?
Thank you for your videos. Here, I can see the brushless motor turning in one way. What about driving a brushless motor in one way then in the other way ?
Thank you for sharing this video. Is there a way to have two inputs (potentiometers) and one sends a reverse signal if the ESC has reverse function? And how would you hook it up and what would be the command/script? Thank you in advance.
i had 2 nano's & a crashed drone with 4 orange bldc's & ecs's lying around and was searching for that blue box for the esc controller, just made my job a little easier.
hello my partner its a good video but i have a question and i hope that you will repond to it : why did you use 1000as a writemicroseconds ? and if this is working for all ESC or not
Very clean setup RZ. Question: Is it possible to configure system where the brushless motor can be switched ON and motor resumes whatever speed was set by POT the last time the motor was ON?
Worked on my skywalker 50a. Just need to figure out how to make it startup about medium speed on it's own. Trying to make a cooling fan that just turns on without user control.
I just got mine working right now. Using a 20 Amp AFRO ESC with no BEC(battery eliminator circuit), i noticed the heat shrink said input freq 1kHz directly on it. The most common value I've seen as low inputs is 180 and 200.
Great Video RZtronics I have some questions and would love if you can help me ? would it be possible to control the motor using Arduino without ESC!! ? and is it possible to program the Arduino to be come an ESC? this to eliminating the use of ESC and reduce components in any project involving a brushless motor ? is that possible ? Thank you very much love your videos
you can build your own board for this with 6 mosfet. that way you can use the arduino as the controller which also allow you to change direction and speed.
SUPERB BRO. 1. CAN I use arduino NANO or pro MINI TO Control BEC. 2. Can i use 10k ,5k ,100k potentiometer.and also tell what change in progran in order to use 5k 10k or 100k potentiometer. 3.i have 30A BEC so need to change any value in code . 4 how many VOLTS AND AMP WE input in BEC . 5.THANKS YOU KEEP IT UP .
So... Could that pot be replaced with a 0-5v pressure transducer? (Fuel pressure sensor) looking to get signal to an ESC for PWM fuel pump control, analog input obviously
Thank you for this very nice video. It helped me make sure that my DIY drone was working. But, as I was verifying my motors and ESC's, something happened. I had connected everything as you had said, and when I turned my potentiometer, my ESC caught on fire and began burning. I have a hypothesis that my potentiometer was set to the highest value. Is that the case? Please advise.
Hi, I'm wondering if I could connect an Arduino with a Naze32 via I2C on a quad copter and send data between them. I managed to did some coding for my transmitter to work with the arduino,. However, i am lost on how to link it with Naze32 followed by the 4 ESC + motor.
When I try this my motor will only stop when the pot is in the middle position. When the pot is turned left it turns backwards and when the pot is turned all the way to the right is turns forwards. Do you have any input on how why this is happening? Thanks for the video!
RZtronics cool video it helped me a lot. But i was wondering if you could help me. I'd like to implement a button into the code, so i can first set the speed through the potentiometer and then when i push the button the motor starts spinning. I am not very good at programming so it would be very cool if you could help me. kind regards from Germany :D
the link doesnt work for me... so here is the code: #include Servo esc; void setup () { esc.attach(8) ; esc.writeMicroseconds(1000) ; Serial.begin(9600); } void loop() { int val; val= analogRead(A0) ; val= map(val, 0, 1023,1000,2000); esc.writeMicroseconds(val); }
what is your library setting at. I could not verify mine it gave me sketch:27:1: error: 'esc' was not declared in this scope esc.writeMicroseconds(val); //using val as the signal to esc ^ exit status 1 'include' does not name a type
I need to controll the speed in a robot car with a potentiometer but I need a really high torque (7kg cm) and low speed brushless motor. Max speed should be 0.4 m/sec. Can you please tell me what to change in code ? also is this ESC suitable for my project ? 12V battery
yeap... i have a geared 12v dc motor and I also need the proper ESC. Is this one (on the video) suitable ? or perhaps one with 10A ? ... (max speed after gear is 100rpm)
May I ask you something ? I found a brushless motor with 2 wires (not 3). Is it possible ? or it isn' a brushless motor ? but if it is, how to connect it. The 2 wire brushless is this : www.aliexpress.com/item/Wholesale-Jgb37-3650-12V-Gear-Motor-8-1040-Rpm-Motor-Dc-6V-Brushless-Dc-Motor-D/32373792278.html?spm=2114.01010208.0.0.LNWjgG
Yeah, but you just used the arduino as a bridge between the ESC and the pot. It would've been cooler the show how to write some code to switch the motor on an off.
hey thank you the video is grate I wanna build an electric longboard board do you think it could be a problem if the electric motor move during a ride(like a generator). I don't want to destroy the battery. (sry my English skills are not that good :} )
now let’s say i had a sensor instead of the potentiometer, instead of reading its lowest point of throttle could i show the farthest distance of the sensor, then the closest distance of the sensor to calibrate it to get faster as something moves closer to the sensor
Kale Oyun seems like the ESC calibrates itself, checks the presence of the motor, and won't do that on active throttle. Or it does, but then you don't have range to throttle. Deduction from this video.
Kale Oyun seems like the ESC calibrates itself, checks the presence of the motor, and won't do that on active throttle. Or it does, but then you don't have range to throttle. Deduction from this video.
Kale Oyun I've just fiddled with my own Phantom 1 ESCs with "server tester" (servo signal generator) to feel the vibrations. I didn't find any restrictions on the action, it always follows the generated signal. I admit I didn't try sending signal on power-up, I had the battery connected at first, then hooked up the signal cable (startup-melody), then adjusted the signal from zero to motor on. In practise, as a safety measure, it's good to avoid instant full throttle on, especially if the motor is not attached to anything. It may move and hit something when speeding up quickly. Anyway, I still don't know the real facts behind this particular setup.
Can I control this servo motor and ESC like a steering gear servo? In other words, Can I control this brushless servo motor to a specific angle or certain number of rounds? such as 1800° or 5 rounds. And then I turn off the Arduino, the servo and ESC, reboot the whole things, and it "knows" where it is at "1800°" or "5 rounds"...When I want set it to position zero, it goes back to 0°. Does it work? Thanks in advance.
classicleon I've read about brushless motors in gimbal use, and what you are asking is somewhat possible, given that the ESC (should be talking about servo drive/controller combination in this case) supports positioning. Naturally, gimbal servos can drive very fine angles, so positioning is possible. The problem is that there is no absolute position feedback, no memory. External force can cause skipping. Potentiometer attached to the motor is one way of obtaining feedback on the actual angle. Industrial servos use digital encoding, for example by the means of optical disk.
You would need an incremental encoder mounted on the motor to do that and implement a position control loop with a PID controller (Arduino software)......as the tiny (quad-copter) motor has no encoder you cannot do it. Nevertheless if the motor is driving e.g. a conveyor belt you may mount a position encoder externally and then implement (closed loop) position control.
we did the all connections between ardunio potentiometer as you but when we turned our potetiometer ıt was not like your's one time we found the scale that starts the engine but it was too hard to find the scale by the the code was complety same as yours could you please help us
Ihave connected all like in the description but the motor only do beep without moving, i have tried do change min /max but still doesn't working, help me please
hello, just because im abit of a dummy, could this be done with a raspberry pi or strictly the arduino ? your using Pwm, i think witht the correct library i can but i just wanted to check with someone how has more knowledge.
Hi, thank you for the video, just wondering if I can measure the RPM of brushless motor from the serial monitor? please help. How to modify the code? really looking forward to your reply.
Bro need your help my motor just keep -beep , -beep with interval of 2 seconds. It's not detecting the throttle i guess. What should i do next. Thanks in advance.I'm using Jr Radios 30A ESC and 2200mAh 35C 3S battery with A2212/3T 1800KV.
I have the same esc. I did everything as you shown on the video, but when i slowly turn the potentiometer knob my esc burned out ;( Why it could happen?
I had the exact same problem as you did. The only difference is that I bought different ESC's. I think that your potentiometer was turned up to the highest value instead of the lowest. Did you find any other solution. Pkease advise.
The esc needs a pulse width modulated signal (PWM) and not variable voltage (which the potentiometer provides) . So, a arduino is connected to convert the variable voltage to a PWM signal.
hi, I am working on a Quadcopter safety feature for my college project, I need to power four motors for propellers + an extra motor for the safety system. Can I do that using Arduino Uno? please help
i used a 10k trimpot potentiometer and a 1000kv bldc motor with 30A esc RESULT:my motor trying to rotate with some kind of sound (which is not beep) but its not rotating even when i try to totate the trimpot , any solution to this ? thanks
HELLO, I have a problem with my esc, when i connect my esc motor battery there is no think done but when i deconect the midle wire about the esc i heard some beep then no think doing, this problem made when i make a mistake connecting the wires, the bec is good it s make 5v, please should you give me some advice to resolve this probleme, thanks
Googled from here howtomechatronics.com/tutorials/arduino/arduino-brushless-motor-control-tutorial-esc-bldc/: Every ESC has its own high and low points, and they might slightly vary. For example, the low point might be 1.2 milliseconds and the high point might be 1.9 milliseconds. In such a case, our throttle won’t do anything in the first 20% until it reaches that low point value of 1.2 milliseconds. To solve this issue, we can calibrate the ESC or set the high and low points as we want. For that purpose, before powering the ESC, first we need to throttle up our potentiometer to maximum or a value at least greater then the current middle point. Then we can power up the ESC, and we will hear few beeps from the motor which actually confirms that we have set the new high point. Then after 2 seconds, we should move our potentiometer to the position where we what the new low point to be. We will again hear the confirmation beeps and with that we are done with the ESC calibration. Now our throttle will respond right away and we can control the motor within these new two points.
Hi, im new in this but i have problem i can't controll speed of motor, if i give value it's start spin and slowly stop and doesn't spin anymore plz help.
finally, a straight forward video for dummies like me to follow ;)
yes. thiss
This video was awesome and translated perfect well for my project (Arduino Uno and an E-Flite motor). Thanks so much for posting!
There is an error in the schematic circuit. 5v and GND should be connected to the potentiometer extremes and A0 to the potentiometer middle point in order to avoid a short circuit between 5v and gnd when the potentiometer is in the cero position. For those who ar asking for it, the potentiometer can be any value. 1K, 10K etc because it is being mapped.
After cranking the volume up to level 11 out of 10, finally manage to hear come fiddling sound, hey, that's some achievement! =)
Dont know what my escs ratings were but the code below worked perfectly:
#include //Using servo library to control ESC
int val=0; //Creating a variable val
Servo esc1; //Creating a servo class with name as esc
void setup()
{
esc1.attach(8);//Specify the esc signal pin,Here as D8
esc1.writeMicroseconds(1000); //initialize the signal to 1000
delay(5000);
esc1.writeMicroseconds(2000);
delay(100);
esc1.writeMicroseconds(900);
delay(100);
esc1.writeMicroseconds(900);
//delay(100);
//esc.writeMicroseconds(900);
Serial.begin(9600);
}
void loop()
{
esc1.writeMicroseconds(val); //using val as the signal to esc
if(Serial.available())
val = Serial.parseInt(); // Parse an Integer from Serial
}
Required material:
1.Arduino board
2.Esc
3.BLDC motor
4.Power supply for Motors
Steps:
1.Connect ESCs to battery.
2.connect escs pin to respective Arduino ports
3.Connect arduino to your computer and burn the code
5.wait for 5 to 6 seconds. When the esc makes a long beep and then stops making any sound, your esc is ready.
6.open serial monitor and enter the values ranging from 950 to 2000 (950 being min throttle and 2000 being max throttle)
Hope it helps
is it really necessary to use a library for this? cannot you use a constant voltage to control the velocity? or the output of the potentiometer without an arduino?
Just what I was looking for. Thank you for posting this vid!
I'd advise you to supply power via the VIN terminal as it's designed to power the arduino.. Powering the arduino via the 3.3v terminal will damage your board as it bypasses the regulator since it's designed to output power.
Your welcome :)
adam123456789022
Hey what value of battery would you suggest for the same value of ESC
Amazing clip! Thanks for showing everything step by step and with the diagram! keep up the good work!
I love you RZtronics!!! :D I was using some other tutorials that use esc.write() and they DO NOT WORK!!! Using the function esc.writeMiliseconds() worked finally :D
Thank you! :D
It's works very well brother!😊
I tried with arduino nano
And 50k regalutar
I can get maximum Rpm.
Finally table fan is ready!😉
The motor only increases to the speed we entered momentarily, then turns slowly at a constant speed again. It repeats this in short periods. What would be the reason?
How do you reverse the direction of rotation without swapping phase wires in the motor?
You don't
@@tobiask5131 😂
Simple and easy, thank you! How would this look like using 4 motors?
Thank you for your videos.
Here, I can see the brushless motor turning in one way.
What about driving a brushless motor in one way then in the other way ?
Hi, oracid1, look up "H-Bridge" circuits. You need to reverse the polarity, which I don't think this circuit can do.
Have you found a solution?
@@OoohhhGeeeee No, sorry, but have a look here, ruclips.net/video/fpjGNBfuP5o/видео.html
Thank you for sharing this video. Is there a way to have two inputs (potentiometers) and one sends a reverse signal if the ESC has reverse function? And how would you hook it up and what would be the command/script? Thank you in advance.
nice vid I was wondering what the power supply was?
Super good video, I gave it a like
Simple, inexpensive, and it really works.
i had 2 nano's & a crashed drone with 4 orange bldc's & ecs's lying around and was searching for that blue box for the esc controller, just made my job a little easier.
You was able to connect potentiomentr directly to controller. Why did you need to use Arduino???
Because ESC Requires PWM Input.
Great first-step tutorial, thanks a lot! :)
hello my partner its a good video but i have a question and i hope that you will repond to it :
why did you use 1000as a writemicroseconds ? and if this is working for all ESC or not
Great video. Don't seem to have much of a speed setting when watching looked like it was just on and off
Very clean setup RZ. Question: Is it possible to configure system where the brushless motor can be switched ON and motor resumes whatever speed was set by POT the last time the motor was ON?
For the ESC power supply, did you connect it directly to the battery too? Thanks!
Worked on my skywalker 50a. Just need to figure out how to make it startup about medium speed on it's own. Trying to make a cooling fan that just turns on without user control.
How looks the digital signal for the ESC? Is it pwm or what? Thanks for your video it helps me.
I think ESC have different PWM frequency, haven't they?
How do you specify the frequency?
moumi Lelion! Good question!
I just got mine working right now. Using a 20 Amp AFRO ESC with no BEC(battery eliminator circuit), i noticed the heat shrink said input freq 1kHz directly on it. The most common value I've seen as low inputs is 180 and 200.
Exactly what I was looking for. THANK YOU !!!!!
Damn Baki want to do wiring stuff
@@deadyanothaikiropool1chait713 you damn right
Are you running power for the arduino into the 5c port. That is not safe.
I have 12V but 2 amps power supply which an't sufficient can you suggest any kind of power supply BESIDES Lipo battery
Great Video RZtronics
I have some questions and would love if you can help me ?
would it be possible to control the motor using Arduino without ESC!! ?
and is it possible to program the Arduino to be come an ESC? this to eliminating the use of ESC and reduce components in any project involving a brushless motor ? is that possible ?
Thank you very much
love your videos
you can build your own board for this with 6 mosfet. that way you can use the arduino as the controller which also allow you to change direction and speed.
SUPERB
BRO.
1. CAN I use arduino NANO or pro MINI TO Control BEC.
2. Can i use 10k ,5k ,100k potentiometer.and also tell what change in progran in order to use 5k 10k or 100k potentiometer.
3.i have 30A BEC so need to change any value in code .
4 how many VOLTS AND AMP WE input in BEC .
5.THANKS YOU KEEP IT UP .
What if the starting point beep beep beep is not show when we configure this..?
Is video me aapne kitne KV ki BLDC motor ..aour kitne volt ki battery use kiya hai aapne??
So... Could that pot be replaced with a 0-5v pressure transducer? (Fuel pressure sensor) looking to get signal to an ESC for PWM fuel pump control, analog input obviously
Thank you for this very nice video. It helped me make sure that my DIY drone was working. But, as I was verifying my motors and ESC's, something happened. I had connected everything as you had said, and when I turned my potentiometer, my ESC caught on fire and began burning. I have a hypothesis that my potentiometer was set to the highest value. Is that the case? Please advise.
Setting the Potentiometer to high won't Burn your ESC. Maybe you connected the Power wires of ESC in reverse.
Exactly what I needed, thanks :)
Hi, I'm wondering if I could connect an Arduino with a Naze32 via I2C on a quad copter and send data between them.
I managed to did some coding for my transmitter to work with the arduino,. However, i am lost on how to link it with Naze32 followed by the 4 ESC + motor.
To change the direction of the motor you switch two of the plugs on the ESC right ?
Yes, invert 2 wires between esc and motor :)
When I try this my motor will only stop when the pot is in the middle position. When the pot is turned left it turns backwards and when the pot is turned all the way to the right is turns forwards. Do you have any input on how why this is happening? Thanks for the video!
Nevermind, I fixed this by changing the max/min values of my ESC.
austiwawa what did you change the values to?
@@mightymouse03111 Good question
@@mightymouse03111 For some ESCs, ESC.write(0) indicates full reverse, ESC.write(90) is still, and ESC.write(180) is full forward.
RZtronics cool video it helped me a lot. But i was wondering if you could help me. I'd like to implement a button into the code, so i can first set the speed through the potentiometer and then when i push the button the motor starts spinning. I am not very good at programming so it would be very cool if you could help me. kind regards from Germany :D
Great video. A crude schematic would have been very useful. I didn’t find any in the link.
It is working now !
What is the highest and lowest value for "writeMicroseconds" for brushless motors? Which value makes it stop and which value makes it go to max speed?
Is there any way to reverse direction without having to swap the cables?
Yes! By programming the ESC using a Programming Card or compatible PC Software.
Not all ESC's Have this option available.
my ESC's do not have any pins for programming....I'm using a simon series...someone sugested to directly go for it....what should i do?
But aren't you keeping the 0 of the pot mapping to 1000?then it should have some movement right even if it is at 0?
is it possible to replace the potentiometer with a limit switch or button that just changes the speed in 3 variants
in: power supply for arduino !!!
the 3.3v port is output voltage.
Why does 3.3v port work as input voltage?
The Vin port works the same as 3.3v ?
Can this setup be used to control torque on the motor?
Thanks
Why did he called the motor "ESC"? Is it random?
the link doesnt work for me... so here is the code:
#include
Servo esc;
void setup ()
{
esc.attach(8) ;
esc.writeMicroseconds(1000) ;
Serial.begin(9600);
}
void loop()
{
int val;
val= analogRead(A0) ;
val= map(val, 0, 1023,1000,2000);
esc.writeMicroseconds(val);
}
I don't understand how you connect D8 as it's not PWM signal, should the ESC work with PWM?
Thank You, Your video helped me a lot !!
what is your library setting at. I could not verify mine it gave me sketch:27:1: error: 'esc' was not declared in this scope
esc.writeMicroseconds(val); //using val as the signal to esc
^
exit status 1
'include' does not name a type
If I do not have battery, can I use regular 12V power adapter for my power source?
What about reverse?
hai ,,, can u specify the resistance of the potentiometer .................???
@@ChazmillsADLT it won't matter as you'll be mapping it
10k
Doesent matter, google voltage divider basics.
I need to controll the speed in a robot car with a potentiometer but I need a really high torque (7kg cm) and low speed brushless motor. Max speed should be 0.4 m/sec. Can you please tell me what to change in code ? also is this ESC suitable for my project ? 12V battery
I suggest you use Geared DC Motor with a Brushed ESC for your application.
yeap... i have a geared 12v dc motor and I also need the proper ESC. Is this one (on the video) suitable ? or perhaps one with 10A ? ... (max speed after gear is 100rpm)
Check the specifications of your Motor for its current Draw and buy an ESC with a higher current value.Search for Brushed ESC.
May I ask you something ? I found a brushless motor with 2 wires (not 3). Is it possible ? or it isn' a brushless motor ? but if it is, how to connect it. The 2 wire brushless is this : www.aliexpress.com/item/Wholesale-Jgb37-3650-12V-Gear-Motor-8-1040-Rpm-Motor-Dc-6V-Brushless-Dc-Motor-D/32373792278.html?spm=2114.01010208.0.0.LNWjgG
Yeah, but you just used the arduino as a bridge between the ESC and the pot. It would've been cooler the show how to write some code to switch the motor on an off.
hey thank you the video is grate I wanna build an electric longboard board do you think it could be a problem if the electric motor move during a ride(like a generator).
I don't want to destroy the battery. (sry my English skills are not that good :} )
Sis Lok as long as you buy a good quality motor you will be fine. I'm working on the same project!
use diode so the current will not go to your battery
Does this code have the same effect for driving a CD ROM and/or HD Engine? Thanks
now let’s say i had a sensor instead of the potentiometer, instead of reading its lowest point of throttle could i show the farthest distance of the sensor, then the closest distance of the sensor to calibrate it to get faster as something moves closer to the sensor
Hey what if we have to rotate multiple motors at same speed using a single unit
Anyone know the easiest way to control a brushless motor? Like just a simple turn on turn off kind of thing??
first of all what happens if we give full power just right away ? and also OMG thanks at last found how to use ESC's searching for long time...
Kale Oyun seems like the ESC calibrates itself, checks the presence of the motor, and won't do that on active throttle. Or it does, but then you don't have range to throttle. Deduction from this video.
Kale Oyun seems like the ESC calibrates itself, checks the presence of the motor, and won't do that on active throttle. Or it does, but then you don't have range to throttle. Deduction from this video.
Sami P.2 Jumppanen Thx bro!
Kale Oyun I've just fiddled with my own Phantom 1 ESCs with "server tester" (servo signal generator) to feel the vibrations. I didn't find any restrictions on the action, it always follows the generated signal. I admit I didn't try sending signal on power-up, I had the battery connected at first, then hooked up the signal cable (startup-melody), then adjusted the signal from zero to motor on. In practise, as a safety measure, it's good to avoid instant full throttle on, especially if the motor is not attached to anything. It may move and hit something when speeding up quickly. Anyway, I still don't know the real facts behind this particular setup.
Vay be
Why not use a plain bldc drive? They only cost $20 and they’re already enclosed like a stepper drive but for BLDC motors.
Can I control this servo motor and ESC like a steering gear servo? In other words, Can I control this brushless servo motor to a specific angle or certain number of rounds? such as 1800° or 5 rounds. And then I turn off the Arduino, the servo and ESC, reboot the whole things, and it "knows" where it is at "1800°" or "5 rounds"...When I want set it to position zero, it goes back to 0°. Does it work? Thanks in advance.
classicleon I've read about brushless motors in gimbal use, and what you are asking is somewhat possible, given that the ESC (should be talking about servo drive/controller combination in this case) supports positioning. Naturally, gimbal servos can drive very fine angles, so positioning is possible. The problem is that there is no absolute position feedback, no memory. External force can cause skipping. Potentiometer attached to the motor is one way of obtaining feedback on the actual angle. Industrial servos use digital encoding, for example by the means of optical disk.
no it wont do that
You would need an incremental encoder mounted on the motor to do that and implement a position control loop with a PID controller (Arduino software)......as the tiny (quad-copter) motor has no encoder you cannot do it. Nevertheless if the motor is driving e.g. a conveyor belt you may mount a position encoder externally and then implement (closed loop) position control.
Hey, the video is good and clear..but I just got confused what's power input that's given to the ESC, anyone knows or have tried it please reply.
Sir this is only work with 5v because arduino dissent support more than 5v.
we did the all connections between ardunio potentiometer as you but when we turned our potetiometer ıt was not like your's one time we found the scale that starts the engine but it was too hard to find the scale by the the code was complety same as yours could you please help us
this video is great and very help full but
how do I count for 30A ESC
Ihave connected all like in the description but the motor only do beep without moving, i have tried do change min /max but still doesn't working, help me please
Has anyone tried upgrading the moters for the DROMIDIA XL,Not empressed with unreliable stock motors???
My Brushless motor does not work, it does not have that sound that indicates that it turns on, what can I do?
Hi!, is it possible to change the motor rotation direction from the code?(using a suitable ESC) Thanks!
hello, just because im abit of a dummy, could this be done with a raspberry pi or strictly the arduino ? your using Pwm, i think witht the correct library i can but i just wanted to check with someone how has more knowledge.
Hi, thank you for the video, just wondering if I can measure the RPM of brushless motor from the serial monitor? please help. How to modify the code? really looking forward to your reply.
How much is the cost of ESC & brush less motor from where you find it
How do you hook up potentiometer that has four pins/wires?
Bro need your help my motor just keep -beep , -beep with interval of 2 seconds. It's not detecting the throttle i guess. What should i do next. Thanks in advance.I'm using Jr Radios 30A ESC and 2200mAh 35C 3S battery with A2212/3T 1800KV.
I have the same esc.
I did everything as you shown on the video, but when i slowly turn the potentiometer knob my esc burned out ;(
Why it could happen?
I had the exact same problem as you did. The only difference is that I bought different ESC's. I think that your potentiometer was turned up to the highest value instead of the lowest. Did you find any other solution. Pkease advise.
why can you just connect the potentiometer directly to the esc 3 pin? why does it need to go through the arduino first?
The esc needs a pulse width modulated signal (PWM) and not variable voltage (which the potentiometer provides) . So, a arduino is connected to convert the variable voltage to a PWM signal.
hi, I am working on a Quadcopter safety feature for my college project, I need to power four motors for propellers + an extra motor for the safety system. Can I do that using Arduino Uno? please help
abdullah al mahmud its not wireless. this is only meant for testing without a transmitter/receiver.
i used a 10k trimpot potentiometer and a 1000kv bldc motor with 30A esc RESULT:my motor trying to rotate with some kind of sound (which is not beep) but its not rotating even when i try to totate the trimpot , any solution to this ? thanks
para controlar este motor usas la libreria de servo ? interezante pero debe haber otra manera si la sabes me puedes decir por favor, saludos
what library download do you have. i tried to compile the code, but it is stopped by #include
Can use use this setup to control the maximum speed of the motor?
Hi! Iam using bldc motor for my project. Can i connect 12V 5ah battery to 30 amps ESC?
My bldc motor is 1800kv.kindly help me.
Im not sure, arduino Uno using 1ampere voltage maximal & Arduino Nano using 0,5 a
Hello sir can you please tell me how to stop motor instantly but not instantly like BRAKE...
does it only work on simonk/blheli? or can i use this to work with any esc i get?
It just uses servo control, that is the same as a receiver output so, yes it will work with any esc
HELLO, I have a problem with my esc, when i connect my esc motor battery there is no think done but when i deconect the midle wire about the esc i heard some beep then no think doing, this problem made when i make a mistake connecting the wires, the bec is good it s make 5v, please should you give me some advice to resolve this probleme, thanks
Can I do this with any rc brushless motor? Mines 3700kv
can u pls instruct me how to controll aesc with rc tx interfacing with arduino .....reading the signal and then delivering them to the esc.
can you use Tx? read signal from Tx controler motor
Xuân Xuân you can use any pin for input as you like
Mine just beeps and doesn't rotate. I've everything exactly as you said.
What could be the problem?
Googled from here howtomechatronics.com/tutorials/arduino/arduino-brushless-motor-control-tutorial-esc-bldc/:
Every ESC has its own high and low points, and they might slightly vary. For example, the low point might be 1.2 milliseconds and the high point might be 1.9 milliseconds. In such a case, our throttle won’t do anything in the first 20% until it reaches that low point value of 1.2 milliseconds.
To solve this issue, we can calibrate the ESC or set the high and low points as we want. For that purpose, before powering the ESC, first we need to throttle up our potentiometer to maximum or a value at least greater then the current middle point. Then we can power up the ESC, and we will hear few beeps from the motor which actually confirms that we have set the new high point.
Then after 2 seconds, we should move our potentiometer to the position where we what the new low point to be. We will again hear the confirmation beeps and with that we are done with the ESC calibration. Now our throttle will respond right away and we can control the motor within these new two points.
Hi, im new in this but i have problem i can't controll speed of motor, if i give value it's start spin and slowly stop and doesn't spin anymore plz help.
And which motor Controll did you used?
how can I make it spin the other way as well... trying to make a winch..
why did you call servo library for BLDC?