Это видео недоступно.
Сожалеем об этом.

Smallest ESC with Arduino - Circuit & Code

Поделиться
HTML-код
  • Опубликовано: 16 авг 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.c...
    Thermal camera: s.click.aliexp...
    Previous ESC Tutorial: electronoobs.c...
    My tools: electronoobs.c...
    Mars T-Shirt: electronoobs-m...
    🤝SUPPORT
    -------------------------------------
    Join my Arduino Course (Spanish): bit.ly/2JY8icE
    ELECTRONOOBS.io: electronoobs.io
    Donate on PayPal: www.paypal.com...
    Help my projects on Patreon : / electronoobs
    my Q&A page: electronoobs.i...
    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

Комментарии • 104

  • @motherjoon
    @motherjoon 4 месяца назад +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 4 месяца назад +1

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

    • @KidCe.
      @KidCe. 4 месяца назад +3

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

    • @rallyfeind
      @rallyfeind 4 месяца назад +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 4 месяца назад

      @@rallyfeindWho shaked your cage?

    • @rallyfeind
      @rallyfeind 4 месяца назад

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

  • @chrismayer8990
    @chrismayer8990 4 месяца назад +15

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

  • @panklovatina3329
    @panklovatina3329 4 месяца назад +7

    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 4 месяца назад +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.

  • @rahulkushwaha9500
    @rahulkushwaha9500 4 месяца назад +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.

  • @AndersNielsenAA
    @AndersNielsenAA 3 месяца назад

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

  • @tamask001
    @tamask001 4 месяца назад +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 4 месяца назад

      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

  • @Hypoengg
    @Hypoengg 4 месяца назад +2

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

  • @rodrigomartindelcampo9534
    @rodrigomartindelcampo9534 4 месяца назад

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

  • @jmssun
    @jmssun 4 месяца назад +5

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

  • @analoghardwaretops3976
    @analoghardwaretops3976 4 месяца назад +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..😅😂

  • @ivovass195
    @ivovass195 4 месяца назад +1

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

  • @yugalsharma13
    @yugalsharma13 4 месяца назад +6

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

    • @daijoubu4529
      @daijoubu4529 4 месяца назад

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

  • @nicolaschampagne8988
    @nicolaschampagne8988 4 месяца назад

    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

  • @4115steve
    @4115steve 4 месяца назад

    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

  • @ImTheReal
    @ImTheReal 4 месяца назад

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

  • @Willy_Tepes
    @Willy_Tepes 4 месяца назад +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.

  • @Johnny-es9xg
    @Johnny-es9xg 4 месяца назад

    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.

  • @tariqsingh3747
    @tariqsingh3747 4 месяца назад +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.

  • @PinkeySuavo
    @PinkeySuavo 2 месяца назад

    it seems like a nice thing to know electronics and just make your own stuff

  • @bynaris3345
    @bynaris3345 4 месяца назад

    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!

  • @Derfboy
    @Derfboy 4 месяца назад

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

  • @lutach
    @lutach 4 месяца назад

    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.

  • @aliawrang9503
    @aliawrang9503 4 месяца назад +1

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

  • @meeskees702
    @meeskees702 4 месяца назад

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

  • @thirtythreeeyes8624
    @thirtythreeeyes8624 4 месяца назад

    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.

  • @SAI_LINGESH
    @SAI_LINGESH 4 месяца назад +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?

  • @dennisfahey2379
    @dennisfahey2379 4 месяца назад

    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.

  • @TrebleWing
    @TrebleWing 4 месяца назад +1

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

    • @ELECTRONOOBS
      @ELECTRONOOBS  4 месяца назад +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..

  • @rashmikasharma9342
    @rashmikasharma9342 4 месяца назад

    i was waiting for this project

  • @har2191
    @har2191 4 месяца назад

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

  • @rashmikasharma9342
    @rashmikasharma9342 3 дня назад

    Hi Sir, I liked your video very much but there is a small problem in it which you told that it is auto resetting itself. Have you found its solution?

  • @Arek_R.
    @Arek_R. 4 месяца назад +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.

  • @sanoops3555
    @sanoops3555 3 месяца назад +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 ✅.

  • @redfoxgamerz
    @redfoxgamerz 4 месяца назад

    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

  • @JD-yv2ub
    @JD-yv2ub 4 месяца назад

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

  • @JeromeDemers
    @JeromeDemers 4 месяца назад

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

  • @mikeseba7817
    @mikeseba7817 4 месяца назад

    Small parts, great work!

  • @4115steve
    @4115steve 4 месяца назад

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

  • @chinhchinh6265
    @chinhchinh6265 4 месяца назад

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

  • @rashidz97100
    @rashidz97100 4 месяца назад

    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 🥲

  • @gilbertcrasto4608
    @gilbertcrasto4608 4 месяца назад

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

  • @hobbifysupport1778
    @hobbifysupport1778 4 месяца назад

    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 .

  • @aizunomnom8556
    @aizunomnom8556 4 месяца назад

    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?

  • @artem56881
    @artem56881 4 месяца назад

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

  • @PinkeySuavo
    @PinkeySuavo 2 месяца назад

    nice video, do you fly fpv drones by any chance? :D

  • @jameshancock
    @jameshancock 4 месяца назад

    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.

  • @JaimeSequeira-zr1rq
    @JaimeSequeira-zr1rq 4 месяца назад

    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  4 месяца назад

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

  • @petermuller608
    @petermuller608 4 месяца назад

    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

  • @rcbuildmaster6192
    @rcbuildmaster6192 4 месяца назад

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

  • @giantbee9763
    @giantbee9763 4 месяца назад

    Thanks for the awesome video!

  • @kayezero703
    @kayezero703 4 месяца назад

    This is really awesome ❤ now use it in a drone

  • @donaldhoudek2889
    @donaldhoudek2889 4 месяца назад

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

  • @jeremiahbullfrog9288
    @jeremiahbullfrog9288 4 месяца назад

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

  • @MyrLin8
    @MyrLin8 4 месяца назад

    Dude! My new hero :)

  • @basicelectronics6324
    @basicelectronics6324 4 месяца назад

    Excited !!

  • @dennisfahey2379
    @dennisfahey2379 4 месяца назад

    Clever!

  • @csai5763
    @csai5763 4 месяца назад

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

  • @csai5763
    @csai5763 4 месяца назад

    What about FoC control ?

  • @user-dl6iq7ut1d
    @user-dl6iq7ut1d 4 месяца назад

    Show the next video about the soldering iron, please 🥺

  • @KAMIPROJECTS
    @KAMIPROJECTS 4 месяца назад

    now that is a project

  • @inventorkr1
    @inventorkr1 4 месяца назад

    i like 🎉

  • @hi_beemo1808
    @hi_beemo1808 4 месяца назад

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

  • @ANIXElectronics
    @ANIXElectronics 4 месяца назад

    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

  • @georgelambev9114
    @georgelambev9114 4 месяца назад

    Thank you! For the algo.

  • @_Sooryansh
    @_Sooryansh 4 месяца назад

    Good project

  • @AMATISIG
    @AMATISIG 4 месяца назад

    Why mega328P? So big.

  • @msanterre
    @msanterre 4 месяца назад

    There are some much smaller ESCs attached to computer fans.

  • @BamaRenaissance
    @BamaRenaissance 4 месяца назад

    Cool. But can it run doom?

  • @ranganatennakoon
    @ranganatennakoon 4 месяца назад

    THANKS !!!!

  • @cnbproductions2784
    @cnbproductions2784 4 месяца назад

    Thanks a lot..

  • @KORUPTable
    @KORUPTable 4 месяца назад

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

  • @DenisUsvh
    @DenisUsvh 4 месяца назад

    Где скетч?

  • @Peter_A1466
    @Peter_A1466 4 месяца назад

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

    • @Hypoengg
      @Hypoengg 4 месяца назад

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

    • @Peter_A1466
      @Peter_A1466 4 месяца назад

      @@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 4 месяца назад

      @@Peter_A1466 adding capacitors would help

  • @TheLukemcdaniel
    @TheLukemcdaniel 4 месяца назад

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

  • @pontiacg445
    @pontiacg445 4 месяца назад

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

    • @ELECTRONOOBS
      @ELECTRONOOBS  4 месяца назад

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

    • @pontiacg445
      @pontiacg445 4 месяца назад

      @@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 4 месяца назад

    Try stm32f030

  • @chetasmaan
    @chetasmaan 4 месяца назад

    Cool

  • @Aston3003
    @Aston3003 4 месяца назад

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

  • @hamedtaran2102
    @hamedtaran2102 4 месяца назад

    Wow

  • @akifozturk9492
    @akifozturk9492 4 месяца назад

    Kraaaaaaaaaaaal . Its means king at my langue

  • @learm67
    @learm67 4 месяца назад

  • @fridolineckerd6135
    @fridolineckerd6135 4 месяца назад

    first

  • @user-cw3vo8hv5u
    @user-cw3vo8hv5u 4 месяца назад

    interesting.

  • @axelrothc1164
    @axelrothc1164 4 месяца назад

    Cool

  • @learm67
    @learm67 4 месяца назад