Smallest ESC with Arduino - Circuit & Code

  Переглядів 31,570

Electronoobs

Electronoobs

День тому

High quality PCB prototypes: www.pcbway.com
Project and PCB: bit.ly/496j71T
🔥I've made yet another ESC based on Arduino. Works the same but is a lot smaller having a basic circuit. Is just a prototype so I can't promise nothing more...
🔀LINKS
-------------------------------------
Tutorial Page: electronoobs.com/eng_arduino_...
Thermal camera: s.click.aliexpress.com/e/_DFv...
Previous ESC Tutorial: electronoobs.com/eng_arduino_...
My tools: electronoobs.com/eng_afiliate...
False/True T-Shirt: teespring.com/it-s-funny-beca...
🤝SUPPORT
-------------------------------------
Join my Arduino Course (Spanish): bit.ly/2JY8icE
ELECTRONOOBS.io: electronoobs.io
Donate on PayPal: www.paypal.com/donate?hosted_...
Help my projects on Patreon : / electronoobs
my Q&A page: electronoobs.io/forum/index.php
Facebook page: / electronoobs
Canal en Español: / @electronoobsenespanol
00:00 Intro
08:51 Thank You
Like share and subscribe to motivate me. Thank you
#ESC
#Circuit
#arduino
#pcbway

КОМЕНТАРІ: 101
@chrismayer8990
@chrismayer8990 Місяць тому
Thank you for also showing the failures. This shows how complex it can be to develop a proper layout.
@motherjoon
@motherjoon Місяць тому
A few tips, you can always solder one side using a mini hot plate and do the other side with hot air. Makes it alot easier.
@dekipet
@dekipet Місяць тому
Hot air + small component = component lost somewhere in the room Unfortunately, only soldering iron for the opposite side.
@KidCe.
@KidCe. Місяць тому
​@@dekipetnaah, you just need slow air, soo minimum air speed and big nozzle. i regularly solder 0402 and 0201 with hotair
@rallyfeind
@rallyfeind Місяць тому
​@@dekipetLearn what flow controls do or stop using blow dryers and heat guns. I haven't bought one from Temu to say All but even the old Weller knock offs have a leak valve on the air nozzle end. If you can do component soldering but can't make your station mind you then it is kinda a you problem really. Not trying to be negative but assure you the solution is within yourself and looking at your tools for blame is a cliche.
@dekipet
@dekipet Місяць тому
@@rallyfeindWho shaked your cage?
@rallyfeind
@rallyfeind Місяць тому
@@dekipet Unless you being snippy with me is fixing your airflow issues then you need to focus on that. I can talk differently but I doubt my eloquence alone will magically make you better at soldering or change the setting on your station for you. Hope that was both polite and informative enough that you actually do gain the reliable skill and can benefit. Now handle the problem instead of trying to be cute please.
@tookitogo
@tookitogo Місяць тому
8:12 The Atmega328P is NOT particularly sensitive to voltage fluctuations - it officially works down to 4.5V up to 20MHz, down to 2.7V at up to 10MHz, and down to 1.8V at up to 4MHz. But that’s just what is guaranteed. In practice, most of them will happily work at 16MHz on just 2.7V. (On Arduino, the bootloader is programmed to enable the brownout reset at 2.7V.) But what about the rest of your circuit? Does it malfunction below a certain voltage? You probably just need a) more local smoothing capacitance, both bulk electrolytic as well as ceramic for high frequency, but also thicker supply wires to enable the caps to charge quickly enough.
@panklovatina3329
@panklovatina3329 Місяць тому
You can try putting a diode between VCC and (atmega + capacitor). That way, high motor current spikes won't discharge the capacitor and the atmega will have power so it won't reset.
@rahulkushwaha9500
@rahulkushwaha9500 Місяць тому
i have used SIA519EDJ-T1-GE3 this mosfet pair in single package for a similar project. I have rechecked some basic parameters and this will be more than enough for your requirement. gate charge and capacitance is low enough that a MCU will be able to drive it without any problems. although i used gate drivers. package is little bit tricky to solder, but with a hot air and good fixture for pcb, it will be just a walk in the park. This will greatly reduce the space requirements. Also put couple of 10uf/16v caramic caps near the mosfet power rails and atleast one elec cap on the main power pads with short leads. looking forward to your final project. keep us updated.
@rodrigomartindelcampo9534
@rodrigomartindelcampo9534 Місяць тому
These videos that are more about the journey are great! The electronics and design files will speak for themselves 😃
@ImTheReal
@ImTheReal Місяць тому
It's a pleasure to see a successful project coming to alive. Thanks for sharing
@ivovass195
@ivovass195 Місяць тому
Cool stuff. Showing the evolution and various steps is the best for learning
@rashmikasharma9342
@rashmikasharma9342 Місяць тому
i was waiting for this project
@4115steve
@4115steve Місяць тому
great video bro, I like that it's kinda beginner friendly and using things that are affordable, but yet they offer a lot in a small package. Great job
@Hypoengg
@Hypoengg Місяць тому
Keep going man....... You are one of my favourite electronics content creator. Other are great scott, diy perks, electroboom, techiesms.
@basicelectronics6324
@basicelectronics6324 Місяць тому
Excited !!
@Derfboy
@Derfboy Місяць тому
Good stuff finding those swapped connections! I'd have been scratching my head for days on that lol.
@meeskees702
@meeskees702 Місяць тому
Amazing work! You inspire me to make some of my own PCBs.
@mikeseba7817
@mikeseba7817 Місяць тому
Small parts, great work!
@jmssun
@jmssun Місяць тому
0:04 Will Gram (from Hannibal): This is the smallest SSC for triple phase brushless motors.. this is my design
@MyrLin8
@MyrLin8 Місяць тому
Dude! My new hero :)
@giantbee9763
@giantbee9763 Місяць тому
Thanks for the awesome video!
@AndersNielsenAA
@AndersNielsenAA 19 днів тому
Having the board house do the assembly is great for stuff like this. It also makes it easier to catch things like the bad mosfet pinouts during BOM and placement specification :)
@KAMIPROJECTS
@KAMIPROJECTS Місяць тому
now that is a project
@dennisfahey2379
@dennisfahey2379 Місяць тому
Clever!
@tamask001
@tamask001 Місяць тому
It's an interesting project to have a minimalistic ESC, but it would be educational to compare it to a similarly sized commercial offerings, like the HAKRC 35A. I would be curious to learn how the commercial ESC achieves much higher currents, and how the much more complex 32 bit control algorithm behaves under changing load compared to your straightforward loop.
@daijoubu4529
@daijoubu4529 Місяць тому
They have a dedicated driver IC, you can look at the AM32 source code to give you an idea as BLHeli_32 is closed source
@itzblast7512
@itzblast7512 Місяць тому
Good project
@analoghardwaretops3976
@analoghardwaretops3976 Місяць тому
Over current causing repeated resetting of uC was a common hinderance...because this is a random/anytime event...so we got around it with a little additional hardware,so the uC is no longer interrupted randomly..... The over current comparator output was fed to the D i/p of a D ff and clocked on the FALLING edge of the pwm pulse..... The "Q" output of D ff now interrupted the uC. during faults.....Worked like a charm..😅😂
@georgelambev9114
@georgelambev9114 Місяць тому
Thank you! For the algo.
@ranganatennakoon
@ranganatennakoon Місяць тому
THANKS !!!!
@lutach
@lutach Місяць тому
Looking good. I know there are some components out in the wild that can make an even smaller brushless ESC without sacrificing power. I have 3 such components and the only missing item is the MCU which I thought I had found a solid company, but all they did was waste my time. Edit: Sent you an email with photos of 2 of the items.
@Johnny-es9xg
@Johnny-es9xg Місяць тому
I have fixed interference with brushed motors with a 100nf cap on the input of the motor. You could solder them between ground and the coil outputs. Solder a 10uf cap directly to the VCC and GND pins of the ATMEGA 328p.
@cnbproductions2784
@cnbproductions2784 Місяць тому
Thanks a lot..
@donaldhoudek2889
@donaldhoudek2889 Місяць тому
What software do you use for your schematic drawings. Curious. Great video, again!
@nicolaschampagne8988
@nicolaschampagne8988 Місяць тому
to solder a resistor or a cap this small i usually use solder on one side, i apply flux and solder one side of the resistor to the newly applied solder. Apply flux again and solder the second side free handed now. i hope it helps
@Willy_Tepes
@Willy_Tepes Місяць тому
You know what I miss in the RC hobby? A GPS with 20x20mm mounting holes. They never come in a easy to mount form factor. I can't really think of a GPS for the hobby that has any mounting holes. A RP2040 microcontroller with the same dimensions would also be nice.
@har2191
@har2191 Місяць тому
Hola amigo, gracias por compartir tus avances, eres genial!! Gracias de verdad. Tengo una consulta, es posible hacer un ESC con el micro ESP32???
@kayezero703
@kayezero703 Місяць тому
This is really awesome ❤ now use it in a drone
@yugalsharma13
@yugalsharma13 Місяць тому
Why not use STM32 which is cheaper and more powerful ? Nice work nonetheless 💯
@daijoubu4529
@daijoubu4529 Місяць тому
There are many that makes their own AM32 ESC already based on the standard ESC schematic
@inventorkr1
@inventorkr1 Місяць тому
i like 🎉
@bynaris3345
@bynaris3345 Місяць тому
Great video! If you want to further improve your ESC and perhaps make a version 4, you should take a look at the ATTiny861A microcontroller. It is specially designed for this kind of application. A single 64MHz timer (with the internal 8MHz CPU oscillator) manages 3 PWM signals with complementary output, with deadtime management. It's almost perfect for an ESC!
@tariqsingh3747
@tariqsingh3747 Місяць тому
Great work, very well made and explained. Have you considered dual-mosfet packages? E.g. PMCPB5530X - 2x2mm, 4A continuous, typical RDS 26mOhm. A smaller microcontroller will be the easiest way to save space though. ATtiny806 has a comparator and is just 3x3mm.
@artem56881
@artem56881 Місяць тому
Do you plan to finish your msla printer? Would love to see it working!❤
@chetasmaan
@chetasmaan Місяць тому
Cool
@hobbifysupport1778
@hobbifysupport1778 Місяць тому
Damn I really appreciate your patience and time , soldering such small components that too keeping it focused on the camera Programming it Not an easy task My 24 year old ass is still try to figure to make a automatic pet feeder using esp and a webpage Maybe( can you do a tutorial;)?) Btw for the controller I remember great scott showed a new micro controller from holtek The IC is cheap but programmer is expensive It will be cheaper if you plan to made produce these as programmer is 1 time investment But anyway awesome video as always And please probably a pet feeder ? 😁 I am trying i help animals on street during these harsh summer .
@aliawrang9503
@aliawrang9503 Місяць тому
Great video. Could you built an esc with DRV8323 IC and IRFS7530 MOSFET?
@4115steve
@4115steve Місяць тому
I highly recomend a fume extractor and glove, The fumes and and handling the metals can be toxic to the lungs , brain, and skin.
@learm67
@learm67 25 днів тому
@dennisfahey2379
@dennisfahey2379 23 дні тому
Wow that is tiny. You probably want to do something to isolate the FET power from the microcontroller rail. That inductive load is probably creating a back EMF that is coupling right into the chip.
@thirtythreeeyes8624
@thirtythreeeyes8624 Місяць тому
The smallest esc is the uESC it's 6x10mm and with flex pcb it weighs about 0.1 grams. I like indoor rc planes and it's about the best and open source. There is a smaller one from microflierradio that is 7x4mm and 0.08grams but, they're only 1 amp and 50 bucks, that's more than the entire cost of most my planes and I don't build small enough for hundredths of a gram to matter anyway. Also the uESC is only two layer.
@gilbertcrasto4608
@gilbertcrasto4608 Місяць тому
❤ wonderful bro. But comercial one has only 14 pin chip and how it drive the MOSFET.
@jameshancock
@jameshancock Місяць тому
Would be nice if it was possible to use all n channel mosfets with a 6 channel mosfet driver. Would make it significantly more efficient.
@rashidz97100
@rashidz97100 Місяць тому
Could u try controlling a HUB motor or ceiling fan motor with the previous esc? How would the code change? I tried to change the manual windup starting code but it cant reach a high speed for some reason and the motor jitters a lot 🥲
@user-dl6iq7ut1d
@user-dl6iq7ut1d Місяць тому
Show the next video about the soldering iron, please 🥺
@sanoops3555
@sanoops3555 18 днів тому
Make a beatflight flight controller using stm32f103 ,mpu6050 and bmp280 and as a next part add osd to that fc board so it would be cheap and also usabale ✅.
@chinhchinh6265
@chinhchinh6265 Місяць тому
Is posbile to make esc that doesnt make noise and running smooth like brushles motor driver?
@aizunomnom8556
@aizunomnom8556 Місяць тому
I don't know how to code them but BB2 chip is really small and I have an ESC that just as wide as my index finger that uses this chip. And it's "rated" at 30A. I'm still amazed by it. And how about firwmare like blheli etc?
@hamedtaran2102
@hamedtaran2102 Місяць тому
Wow
@JeromeDemers
@JeromeDemers Місяць тому
look at the MX-3A Micro Brushless ESC to inspire you to make a smaller one next time.
@Arek_R.
@Arek_R. Місяць тому
sot23 mosfets, uC with qfn package, massive crystal? Why not get something smaller? It probably would be better to switch to st and also use the popular firmware called blheli, it's advanced af and open source I believe, there's probably loads of OS simple ESC designs.
@JD-yv2ub
@JD-yv2ub Місяць тому
Can you make a video on how to make an esc for brushed motor using Arduino?
@JaimeSequeira-zr1rq
@JaimeSequeira-zr1rq Місяць тому
Had a quick view of the schematic aqnd noticed there are no trimming/tuning caps on the external 16MHz clock line. Is there a reason for this? I am not familiar with the ATMega product line. Some MCUs have built-in trimming caps. This would explain why the board works but resets after a while (stray capacitance on the crystal line from the PCB is just enough but not immune to noise in environment??)
@ELECTRONOOBS
@ELECTRONOOBS Місяць тому
Is not a Cristal, is a resonator so it already has the capacitors inside...
@petermuller608
@petermuller608 Місяць тому
Are you aware of a way to share pcbway settings (or any other of those services)? I want to share a link where to buy my pcbs, but having to tell users how to configure the pcb is quite a hurdle
@csai5763
@csai5763 Місяць тому
Can you make a tutorial on high power esc for foc control ? 😢 by not using L6234 driver
@SAI_LINGESH
@SAI_LINGESH Місяць тому
When ever I do soldering, my health is getting bad and I get sick, why it's happening to me? I use all the precautions like wearing gloves, mask, glass, and I will do soldering in a well ventilated place. Can anyone say me the remedy if it's happened to you?
@jeremiahbullfrog9288
@jeremiahbullfrog9288 Місяць тому
Those long leads and high ESR on the capacitor were probably reducing its usefulness
@rcbuildmaster6192
@rcbuildmaster6192 Місяць тому
Can we alter the code to act like a foc controller using same hardware ?
@csai5763
@csai5763 Місяць тому
What about FoC control ?
@TrebleWing
@TrebleWing Місяць тому
Why are you sticking with the 328P and not a smaller atmega or attiny?
@ELECTRONOOBS
@ELECTRONOOBS Місяць тому
I'm used to it and the most important, is the only one that has an internal comparator. Is a key fature for this project..
@redfoxgamerz
@redfoxgamerz Місяць тому
Hii i want a C- type charging module with 5v usb output to charge 4.2v 4000 mah litium polymer battery i want to make a power bank so please can you suggest me any module for this project
@akifozturk9492
@akifozturk9492 Місяць тому
Kraaaaaaaaaaaal . Its means king at my langue
@akifozturk9492
@akifozturk9492 Місяць тому
Write on deepL
@andrejladislavsmith
@andrejladislavsmith Місяць тому
neni kral
@superretro1798
@superretro1798 Місяць тому
Cool. But can it run doom?
@ANIXElectronics
@ANIXElectronics Місяць тому
You make nice videos but the thing is i dont see any improvment in video production quality. that's why the viewcount constatly drops. i wish you could improve
@Peter_A1466
@Peter_A1466 Місяць тому
Do those bldc motors sent inductive spikes back to the controller?
@Hypoengg
@Hypoengg Місяць тому
I think the do... And that are used as feedback for mcu
@Peter_A1466
@Peter_A1466 Місяць тому
@@Hypoengg and do you know by any chance if the simplification of the schematic got rid of protection/filtering of excessive (i.e. mcu resetting) spikes?
@Hypoengg
@Hypoengg Місяць тому
@@Peter_A1466 adding capacitors would help
@pontiacg445
@pontiacg445 Місяць тому
Decoupling capacitors are not optional, you just found out why.
@ELECTRONOOBS
@ELECTRONOOBS Місяць тому
I've placed an external ones and it still resets. The new design has more... Let's see if it helps...
@pontiacg445
@pontiacg445 Місяць тому
@@ELECTRONOOBS An external ones is kind of confusing language, it implies either a singular capacitor or multiple at the same time. You used more than just the electrolytic cap? Because that is not enough or in the right placement. Should be at least 3 ceramic caps, as close to VCC and ground pins as possible. Good luck with the new design, I hope it works for you.
@lalbabugupta8380
@lalbabugupta8380 Місяць тому
Try stm32f030
@KORUPTable
@KORUPTable Місяць тому
Hey guys look at this guys TINY ESC! Mine is WAY bigger!
@msanterre
@msanterre Місяць тому
There are some much smaller ESCs attached to computer fans.
@hi_beemo1808
@hi_beemo1808 Місяць тому
im so confused why the music is so quiet???
@TheLukemcdaniel
@TheLukemcdaniel Місяць тому
Almost only counts in 3 things. Horseshoes, hand grenades, and H-bombs.
@AMATISIG
@AMATISIG Місяць тому
Why mega328P? So big.
@Aston3003
@Aston3003 Місяць тому
I know there was a guy also making Small ESC's
@user-nd2cg1yq2w
@user-nd2cg1yq2w Місяць тому
Где скетч?
@fridolineckerd6135
@fridolineckerd6135 Місяць тому
first
@user-cw3vo8hv5u
@user-cw3vo8hv5u Місяць тому
interesting.
@axelrothc1164
@axelrothc1164 Місяць тому
Cool
@learm67
@learm67 25 днів тому
Forget WiFi! This Wireless Method is WAY Better?
12:14
GreatScott!
Переглядів 240 тис.
Make a TINY Arduino Drone with FPV Camera - Will It Fly?
20:26
Max Imagination
Переглядів 269 тис.
Эффект Карбонаро и пончики
01:01
История одного вокалиста
Переглядів 6 млн
Graviflyer Testing 9
20:14
Old Man builds
Переглядів 897
How far can I broadcast LoRa packets WITHOUT a radio? - LoLRa
37:58
building a pcb motor from scratch
5:21
365 Robots
Переглядів 10 тис.
Can you 3D Print with Hot Glue?
19:29
CNC Kitchen
Переглядів 838 тис.
I tried the Cheapest Arduino Alternative (that Nobody heard of)
13:31
GreatScott!
Переглядів 466 тис.
Magnetic rotary encoder vs stepper motor accuracy
5:41
Matthias random stuff
Переглядів 135 тис.
Self Assembling Wires? Levitating Motor? LATITY-005?!
15:34
ElectroBOOM
Переглядів 2,3 млн
Making a PCB Motor spin 30,000 RPM FASTER
13:41
Carl Bugeja
Переглядів 1,7 млн
This Component solves "All" Motor Problems?! (Motor Encoder) EB#58
11:34
M4 iPad Pro Impressions: Well This is Awkward
12:51
Marques Brownlee
Переглядів 3,7 млн
ИГРОВОЙ ПК от DEXP за 37 тысяч рублей из DNS
27:53
Ремонтяш
Переглядів 397 тис.
Портативная PS 5 🎮 #ps5 #expressly
0:22
ExpresSLY Shorts
Переглядів 138 тис.
#Shorts Good idea for testing to show.
0:17
RAIN Gadgets
Переглядів 760 тис.
Распаковал Xiaomi SU7
0:59
Wylsacom
Переглядів 504 тис.