Smallest ESC with Arduino - Circuit & Code

Sdílet
Vložit
  • čas přidán 21. 05. 2024
  • 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: / electronoobs en español
    00:00 Intro
    08:51 Thank You
    Like share and subscribe to motivate me. Thank you
    #ESC
    #Circuit
    #arduino
    #pcbway
  • Věda a technologie

Komentáře • 101

  • @motherjoon
    @motherjoon Před měsícem +28

    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 Před měsícem +1

      Hot air + small component = component lost somewhere in the room
      Unfortunately, only soldering iron for the opposite side.

    • @KidCe.
      @KidCe. Před měsícem +3

      ​@@dekipetnaah, you just need slow air, soo minimum air speed and big nozzle. i regularly solder 0402 and 0201 with hotair

    • @rallyfeind
      @rallyfeind Před měsícem +1

      ​@@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 Před měsícem

      @@rallyfeindWho shaked your cage?

    • @rallyfeind
      @rallyfeind Před měsícem

      @@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.

  • @panklovatina3329
    @panklovatina3329 Před měsícem +6

    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.

  • @tookitogo
    @tookitogo Před měsícem +19

    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.

  • @chrismayer8990
    @chrismayer8990 Před měsícem +14

    Thank you for also showing the failures. This shows how complex it can be to develop a proper layout.

  • @rahulkushwaha9500
    @rahulkushwaha9500 Před měsícem +9

    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 Před měsícem

    These videos that are more about the journey are great! The electronics and design files will speak for themselves 😃

  • @ivovass195
    @ivovass195 Před měsícem +1

    Cool stuff. Showing the evolution and various steps is the best for learning

  • @AndersNielsenAA
    @AndersNielsenAA Před měsícem

    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 :)

  • @ImTheReal
    @ImTheReal Před měsícem

    It's a pleasure to see a successful project coming to alive.
    Thanks for sharing

  • @4115steve
    @4115steve Před měsícem

    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 Před měsícem +2

    Keep going man....... You are one of my favourite electronics content creator. Other are great scott, diy perks, electroboom, techiesms.

  • @meeskees702
    @meeskees702 Před měsícem

    Amazing work! You inspire me to make some of my own PCBs.

  • @rashmikasharma9342
    @rashmikasharma9342 Před měsícem

    i was waiting for this project

  • @Derfboy
    @Derfboy Před měsícem

    Good stuff finding those swapped connections! I'd have been scratching my head for days on that lol.

  • @jmssun
    @jmssun Před měsícem +5

    0:04
    Will Gram (from Hannibal): This is the smallest SSC for triple phase brushless motors..
    this is my design

  • @mikeseba7817
    @mikeseba7817 Před měsícem

    Small parts, great work!

  • @giantbee9763
    @giantbee9763 Před měsícem

    Thanks for the awesome video!

  • @tamask001
    @tamask001 Před měsícem +3

    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 Před měsícem

      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

  • @Johnny-es9xg
    @Johnny-es9xg Před měsícem

    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.

  • @basicelectronics6324
    @basicelectronics6324 Před měsícem

    Excited !!

  • @MyrLin8
    @MyrLin8 Před měsícem

    Dude! My new hero :)

  • @analoghardwaretops3976
    @analoghardwaretops3976 Před měsícem +1

    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..😅😂

  • @lutach
    @lutach Před měsícem

    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.

  • @har2191
    @har2191 Před měsícem

    Hola amigo, gracias por compartir tus avances, eres genial!! Gracias de verdad. Tengo una consulta, es posible hacer un ESC con el micro ESP32???

  • @nicolaschampagne8988
    @nicolaschampagne8988 Před měsícem

    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

  • @tariqsingh3747
    @tariqsingh3747 Před měsícem +1

    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.

  • @donaldhoudek2889
    @donaldhoudek2889 Před měsícem

    What software do you use for your schematic drawings. Curious. Great video, again!

  • @itzblast7512
    @itzblast7512 Před měsícem

    Good project

  • @KAMIPROJECTS
    @KAMIPROJECTS Před měsícem

    now that is a project

  • @georgelambev9114
    @georgelambev9114 Před měsícem

    Thank you! For the algo.

  • @dennisfahey2379
    @dennisfahey2379 Před měsícem

    Clever!

  • @cnbproductions2784
    @cnbproductions2784 Před měsícem

    Thanks a lot..

  • @aliawrang9503
    @aliawrang9503 Před měsícem +1

    Great video. Could you built an esc with DRV8323 IC and IRFS7530 MOSFET?

  • @ranganatennakoon
    @ranganatennakoon Před měsícem

    THANKS !!!!

  • @bynaris3345
    @bynaris3345 Před měsícem

    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!

  • @yugalsharma13
    @yugalsharma13 Před měsícem +6

    Why not use STM32 which is cheaper and more powerful ? Nice work nonetheless 💯

    • @daijoubu4529
      @daijoubu4529 Před měsícem

      There are many that makes their own AM32 ESC already based on the standard ESC schematic

  • @kayezero703
    @kayezero703 Před měsícem

    This is really awesome ❤ now use it in a drone

  • @rashidz97100
    @rashidz97100 Před měsícem

    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 🥲

  • @chinhchinh6265
    @chinhchinh6265 Před měsícem

    Is posbile to make esc that doesnt make noise and running smooth like brushles motor driver?

  • @artem56881
    @artem56881 Před měsícem

    Do you plan to finish your msla printer? Would love to see it working!❤

  • @Willy_Tepes
    @Willy_Tepes Před měsícem +1

    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.

  • @hobbifysupport1778
    @hobbifysupport1778 Před měsícem

    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 .

  • @jameshancock
    @jameshancock Před měsícem

    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.

  • @petermuller608
    @petermuller608 Před měsícem

    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

  • @JaimeSequeira-zr1rq
    @JaimeSequeira-zr1rq Před měsícem

    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  Před měsícem

      Is not a Cristal, is a resonator so it already has the capacitors inside...

  • @chetasmaan
    @chetasmaan Před měsícem

    Cool

  • @aizunomnom8556
    @aizunomnom8556 Před měsícem

    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?

  • @gilbertcrasto4608
    @gilbertcrasto4608 Před měsícem

    ❤ wonderful bro. But comercial one has only 14 pin chip and how it drive the MOSFET.

  • @dennisfahey2379
    @dennisfahey2379 Před měsícem

    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.

  • @inventorkr1
    @inventorkr1 Před měsícem

    i like 🎉

  • @rcbuildmaster6192
    @rcbuildmaster6192 Před měsícem

    Can we alter the code to act like a foc controller using same hardware ?

  • @4115steve
    @4115steve Před měsícem

    I highly recomend a fume extractor and glove, The fumes and and handling the metals can be toxic to the lungs , brain, and skin.

  • @JD-yv2ub
    @JD-yv2ub Před měsícem

    Can you make a video on how to make an esc for brushed motor using Arduino?

  • @user-dl6iq7ut1d
    @user-dl6iq7ut1d Před měsícem

    Show the next video about the soldering iron, please 🥺

  • @csai5763
    @csai5763 Před měsícem

    Can you make a tutorial on high power esc for foc control ? 😢 by not using L6234 driver

  • @JeromeDemers
    @JeromeDemers Před měsícem

    look at the MX-3A Micro Brushless ESC to inspire you to make a smaller one next time.

  • @redfoxgamerz
    @redfoxgamerz Před měsícem

    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

  • @csai5763
    @csai5763 Před měsícem

    What about FoC control ?

  • @thirtythreeeyes8624
    @thirtythreeeyes8624 Před měsícem

    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.

  • @sanoops3555
    @sanoops3555 Před měsícem +1

    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 ✅.

  • @TrebleWing
    @TrebleWing Před měsícem +1

    Why are you sticking with the 328P and not a smaller atmega or attiny?

    • @ELECTRONOOBS
      @ELECTRONOOBS  Před měsícem +2

      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..

  • @Arek_R.
    @Arek_R. Před měsícem +1

    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.

  • @hamedtaran2102
    @hamedtaran2102 Před měsícem

    Wow

  • @SAI_LINGESH
    @SAI_LINGESH Před měsícem +1

    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?

  • @Peter_A1466
    @Peter_A1466 Před měsícem

    Do those bldc motors sent inductive spikes back to the controller?

    • @Hypoengg
      @Hypoengg Před měsícem

      I think the do... And that are used as feedback for mcu

    • @Peter_A1466
      @Peter_A1466 Před měsícem

      @@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 Před měsícem

      @@Peter_A1466 adding capacitors would help

  • @superretro1798
    @superretro1798 Před měsícem

    Cool. But can it run doom?

  • @learm67
    @learm67 Před měsícem

  • @jeremiahbullfrog9288
    @jeremiahbullfrog9288 Před měsícem

    Those long leads and high ESR on the capacitor were probably reducing its usefulness

  • @akifozturk9492
    @akifozturk9492 Před měsícem

    Kraaaaaaaaaaaal . Its means king at my langue

  • @lalbabugupta8380
    @lalbabugupta8380 Před měsícem

    Try stm32f030

  • @ANIXElectronics
    @ANIXElectronics Před měsícem

    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

  • @hi_beemo1808
    @hi_beemo1808 Před měsícem

    im so confused why the music is so quiet???

  • @msanterre
    @msanterre Před měsícem

    There are some much smaller ESCs attached to computer fans.

  • @KORUPTable
    @KORUPTable Před měsícem

    Hey guys look at this guys TINY ESC! Mine is WAY bigger!

  • @AMATISIG
    @AMATISIG Před měsícem

    Why mega328P? So big.

  • @user-nd2cg1yq2w
    @user-nd2cg1yq2w Před měsícem

    Где скетч?

  • @TheLukemcdaniel
    @TheLukemcdaniel Před měsícem

    Almost only counts in 3 things. Horseshoes, hand grenades, and H-bombs.

  • @pontiacg445
    @pontiacg445 Před měsícem

    Decoupling capacitors are not optional, you just found out why.

    • @ELECTRONOOBS
      @ELECTRONOOBS  Před měsícem

      I've placed an external ones and it still resets. The new design has more... Let's see if it helps...

    • @pontiacg445
      @pontiacg445 Před měsícem

      @@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.

  • @Aston3003
    @Aston3003 Před měsícem

    I know there was a guy also making Small ESC's

  • @fridolineckerd6135
    @fridolineckerd6135 Před měsícem

    first

  • @user-cw3vo8hv5u
    @user-cw3vo8hv5u Před měsícem

    interesting.

  • @axelrothc1164
    @axelrothc1164 Před měsícem

    Cool

  • @learm67
    @learm67 Před měsícem