Тёмный

Arduino Controlled ESC (Easy+ No Potentiometer!) 

Black Falcon Electronics
Подписаться 767
Просмотров 31 тыс.
50% 1

An ESC is an electronic speed controller & is used in remote controlled airplanes, boats, & cars to manipulate the amount of electricity flowing from the battery to the motor.
In this tutorial I will show you how to control such as ESC with the arduino micro-controller via its serial monitor. This project will serve us well as we progress toward project AURA, or the Automated Unmanned Reconnaissance Airplane, the fully automated arduino controlled airplane.
We now sell arduino programming kits to teach you how to code!
www.amazon.com...
Follow Our Social Media!
Website: blackfalconele...
Patreon- / blackfalconelectronics
Instagram- / blackfalcon. .
Facebook- / blackfalcone. .

Опубликовано:

 

1 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 75   
@Stambo59
@Stambo59 3 года назад
So much misinformation here, the battery does NOT determine the current flow, the motor ESC combo does. The battery will only supply what it is asked to supply, the specs on the battery are it's potential. You can run a 10 amp esc on a 400 amp battery safely, as long as the voltage is right and the motor matches the ESC. A motor that draws anything less than 10 amps will work fine. It is the voltage (IE cell count) that is critical, you cant hook an ESC designed for a 2 cell 7.4v system up to a 3 cell or more battery. That is when you are more likely to get smoke. (Or when you hook it up backwards.) I test 30A RC speed controllers on car batteries without any problems.
@space5422
@space5422 3 года назад
I'm new to ESC. This short video was perfect, clean, efficient , not too long, good sound. Congratulation.
@rajaboy2293
@rajaboy2293 3 года назад
question if I have 45C 4500mah 11.1V lipo battery and a C2204 1200kv motor that draws 11 amps would it damage 30A Simonk ESC?
@Stambo59
@Stambo59 3 года назад
@@rajaboy2293 No, as long as the ESC is rated for 3 cell and you hook it up the right way you will be fine. That battery is capable of supplying over 200 amps, (45c x 4.5AH) but it is the ESC/motor combo that determines how much will actually be drawn. As I said, hook it up right and it will be fine.
@bambarhan
@bambarhan 4 года назад
Hello thanks for sharing and teaching others. I tried this code and my motor working not fine then i pushed my motor is working good. but stopped after 5 seconds automatically. How can i find the mistake i made. why motor is intermittent starting? thanks
@jackwody7774
@jackwody7774 5 лет назад
the esc provides 5V power to the servo connector- you can use this to power the Arduino (it's 5V I'm guessing?) and not need an external supply.
@BlackFalconElectronics
@BlackFalconElectronics 5 лет назад
The ESC only provides power to the battery itself. An external power supply is required for the arduino & all auxillary systems.
@jackwody7774
@jackwody7774 5 лет назад
Unless I'm misunderstanding things; the LiPo battery powers the ESC which has a 3 phase brushless motor driver, and usually a 5V linear regulator to power the receiver and servos. The suggestion is to use that 5V to power the arduino and save a battery.
@gabrieljulioarmandosiagian1921
@gabrieljulioarmandosiagian1921 3 года назад
@@jackwody7774 ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-S8TSkGQ2EWY.html
@dmglakewood
@dmglakewood 2 года назад
I'm not an expert...but I don't think the ESC amperage has anything to do with the battery itself, but the motors you use. If the motor you use has a max draw of 2 amps your ESC should support at least 2 amps (greater than 2 would be ideal though).
@arduinomaquinas
@arduinomaquinas Год назад
Subscribed + like full ❤ 👏👏👏👏👏
@Slushee
@Slushee 3 года назад
Thank you. I watched another tutorial but it didn't mention that the GND pin also had to be connected, so it didn't work.
@strongme80
@strongme80 Год назад
I can confirm this works with the Arduino Uno R3 with the Castle Creations MAMBA XLX2 with the 2028 800KV Motor - 4/1/2023. I've got a project I'm working on that it isn't going into any RC.
@shuttyskenzin9237
@shuttyskenzin9237 2 года назад
can he give us the schematics ?
@jakeberry4238
@jakeberry4238 4 года назад
#ghettoConnection lol. Thanks for the useful information!
@karatugba
@karatugba 3 года назад
Actualy I have a question for the adjusting 59 and 180 degrees for the speed of the BLDC ,how did you define them in the code,there is not any code about it.
@coolcat1938
@coolcat1938 Год назад
idk why but its keep typing its self 0 0 0 0 0 on the port screen
@philjackson8205
@philjackson8205 4 года назад
My set up is basically the same as yours except I'm using a variable power supply as my power source and I'm using a 60 Amp ESC with a 770 Kv motor. I tried using your same code but whenever I don't enter anything into the serial monitor my PWM value automatically reverts to 0 which is not what I want. I want the thottle to stay constant as yours does, any ideas?
@BlackFalconElectronics
@BlackFalconElectronics 4 года назад
Post your code
@philjackson8205
@philjackson8205 4 года назад
@@BlackFalconElectronics Actually just got it to do what I wanted. I used this code: #include Servo ESC; int val; int globalval; void setup() { Serial.begin(9600); ESC.attach(9,1000,2000); //PWM Pin Connection Port on Arduino delay(1); ESC.write(0); //Activates ESC delay(1000); //Wait time before commanding throttle values } void loop() { while(Serial.available()) / { val = Serial.parseInt(); //reads integer vals from serial monitor input Serial.println(val); //Print throttle value ESC.write(val); //Write throttle value to ESC if (val > 0){ globalval = val; //Store throttle value } } if(!Serial.available()) { Serial.println(globalval); //Print stored throttle value ESC.write(globalval); //Assign previously stored throttle value to ESC } }
@regaltyrones5676
@regaltyrones5676 2 года назад
@@philjackson8205 I hope you found the answer. For anyone who might need it, one way you could do is to put the "myservo.write(val);" command in a for time loop, and the motor will run for that long.
@modernpower6285
@modernpower6285 Год назад
@@philjackson8205 thanks for posting the code it got my project up and running for the first time!
@felipekaisera7452
@felipekaisera7452 10 месяцев назад
Hi everyone! I have a big question, the Arduino Library-GUI have the functionality of RPM in opposite direction? This mean, CCW 58 rpm, and CW 58 rpm for the same motor? Thanks!
@coolcraftpe5368
@coolcraftpe5368 3 года назад
i saw this viedeo to late i fried myn toasty
@mayurrana5200
@mayurrana5200 4 года назад
Make video to control bldc by smartphone
@marekbosco9176
@marekbosco9176 2 года назад
hi i just saw your video, could you help me with a project i am making this is a water scooter, i wanted the brushless motor to turn on and off with a release button, can you help me with the code for arduino nano
@__rajesh-vq3nm
@__rajesh-vq3nm 8 месяцев назад
which software?
@makeandbreak127
@makeandbreak127 2 года назад
How did Rowan work out? I'm making an ROV this year and looking to use an esc like this.
@adamfather2
@adamfather2 Год назад
please can you help me with control the esc with remotexy with two directions please 😢
@yogeshlokhande2613
@yogeshlokhande2613 Год назад
Can I do same thing with ESP 32 board
@irondan357
@irondan357 2 года назад
currently in the process of making a nerf gun with brushless motors, this was very helpful
@brsrc759
@brsrc759 2 года назад
Is there a way to wire a potentiometer to a regular ESC in order to use it as a servo controller? I'm trying to build a large scale steering servo but don't know how to get the ESC to respond to potentiometer feedback
@offensivebias3965
@offensivebias3965 Год назад
Can you demo this using port registry manipulation?
@mehmetumitack5594
@mehmetumitack5594 Год назад
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?
@strongme80
@strongme80 Год назад
This might be a late reply but open up the serial plotter and set it to "No Line Ending" so it holds the rpm you set.
@N.g.Chanal
@N.g.Chanal 2 года назад
why not input 10 ? Lessthan 50?
@cameleerstechnicallab245
@cameleerstechnicallab245 2 года назад
copied exactly your code but the motor is not even giving me a signal, i am using 11.1V 30C battery A2212/6T 2200kv brushles motor 30A esc please tell me whats the problem
@teklisbenzi
@teklisbenzi 2 года назад
He has a different esc from majority.
@ENTmath_
@ENTmath_ Год назад
your starting point is 1500, you need to initialize the esc at 1500
@hmbiii9974
@hmbiii9974 2 года назад
I managed to connect the 5V to Vin to power arduino nano. Seems to work fine.
@nelsondarwinpaktech3954
@nelsondarwinpaktech3954 4 года назад
good
@nicklego2379
@nicklego2379 3 года назад
every time I have trouble with my esc I look at this video lol Very Helpful!
@freytube1
@freytube1 Год назад
good job , please post more ..
@aaliabuccellato366
@aaliabuccellato366 2 года назад
what kind of connector did you use between the battery and esc?
@zynsk
@zynsk 4 года назад
Hello. I got it to work but the motor only powers on for one second before stopping. I don't have enough experience with Arduino coding to see if there is something wrong. This it the code I copied from your screen: #include Servo myservo; void setup() { Serial.begin(9600); myservo.attach(9); delay(1); myservo.write(10); delay(5000); } void loop() { while (Serial.available() > 0) { int val = Serial.parseInt(); Serial.println(val); myservo.write(val); } } Have I missed anything?
@musleh711
@musleh711 3 года назад
@gokhan yilmaz myservo.write(val); delay(5000); you need to add delay value after servo.write
@gabrieljulioarmandosiagian1921
@gabrieljulioarmandosiagian1921 3 года назад
@@musleh711 thanks dude, it's worked
@supersummermario
@supersummermario 2 года назад
@@musleh711 this worked for me also, but the motor then just runs for 5 seconds. Do you know how you can have it continue to run until a different value is input?
@Hunefsus
@Hunefsus Год назад
thank you so much
@nguyenbrandon12
@nguyenbrandon12 5 лет назад
Hey! I have a flame 60A esc and I'm trying to run a 149Kv Turnigy Outrunner Motor. I followed all your steps and the esc becomes armed and ready to go but the motor doesn't run when I input any number on the serial monitor. Any suggestion?
@BlackFalconElectronics
@BlackFalconElectronics 4 года назад
Could you post the code you're using?
@adamfather2
@adamfather2 Год назад
thats was so cool ...❤
@cheezeboyz2549
@cheezeboyz2549 2 года назад
Where can I find code
@garygracias4229
@garygracias4229 4 года назад
Can i use a 60v battery?
@BlackFalconElectronics
@BlackFalconElectronics 4 года назад
I don't believe you would be able to, but that would depend on the battery rating compared to the ESC's. Thanks for commenting!!!
@garygracias4229
@garygracias4229 4 года назад
@@BlackFalconElectronics what if i use a relay...
@BlackFalconElectronics
@BlackFalconElectronics 4 года назад
@@garygracias4229 a relay would be good to use, but it would still depend on the battery & esc ratings. Otherwise you risk electrocution &/or frying all connected electronics.
@garygracias4229
@garygracias4229 4 года назад
@@BlackFalconElectronics ill be using a 160kv motor and a 50 - 80a esc..
@BlackFalconElectronics
@BlackFalconElectronics 4 года назад
@@garygracias4229 what is the battery rating?
@PixelZYX
@PixelZYX 2 года назад
Finnaly its exactly what i needed
@XG4bro17TM
@XG4bro17TM 3 года назад
why it doesn't work it doesn't even arm
@fivepointeightnate
@fivepointeightnate 3 года назад
Same here. Some ESC work differently
@teklisbenzi
@teklisbenzi 2 года назад
Bros, He has a programmable esc. The thing is most of the escs require a pulse between 1000 to 2000 us. This guy's esc works from 10 to (IDK) us. and you got yourself in problem....
@sgpaterno9117
@sgpaterno9117 2 года назад
@@teklisbenzi why do I got myself in problem?
@teklisbenzi
@teklisbenzi 2 года назад
@@sgpaterno9117 Umm.... Just Skip this tutorial as it will not work for majority.
@mike0rr
@mike0rr Год назад
Important to note that a lot of ESCs initialize with a PMW micro second of 1500, not 10. And a lot of speed control happens between 1000 and 2000. It all depends on what range your ESC is using. I've seen other numbers too. Have to check those data sheets... ESCs are a headache.
@stickylabhome7568
@stickylabhome7568 Год назад
and how?
@kirilneonov152
@kirilneonov152 4 года назад
Revers?
@DogukanElbasan
@DogukanElbasan 4 года назад
Can u solve it
@kartechindustries3069
@kartechindustries3069 3 года назад
Change the position first yellow and last yellow to vice versa
@5tonsbastard
@5tonsbastard 3 года назад
very helpful info, thankee
Далее
Дикий Бармалей разозлил всех!
01:00
Open Source ESC based on Arduino - High Speeds
16:58
Просмотров 178 тыс.
Beginners Guide To Using Large Stepper Motors: #087
19:49
Why Are Guillotine Blades Angled? (tested)
18:40
Просмотров 570 тыс.
What's inside: ESCs
7:01
Просмотров 305 тыс.
My open source Arduino ESC - BEMF zero-cross
15:20
Просмотров 144 тыс.
I Made a Tool for DIY Electronics
12:44
Просмотров 41 тыс.
Brushless Motor - How they work BLDC ESC PWM
16:12
Просмотров 4,5 млн