DIY Sensored ESC - full tutorial

Sdílet
Vložit
  • čas přidán 17. 03. 2018
  • Best & Fast Prototype ($2 for 10 PCBs): www.jlcpcb.com
    Thanks to JLCPCB for supporting this video.
    ⚠ WARNNING!!! In the video the diodes for the N-Channel MOSFETs are reversed. Check the schematics below for the correct circuit.
    Build an ESC (Electronic Speed Controller) for sensored brushless motors. It is not the best prototype but I hope the tutorial will help you learn a bit more about this kind of control.
    We amplify the Hall sensors, read the inputs, build the 3 phase bridge, create the feedback code and control the rotation speed. Also read the PWM input as any commercial ESC. Enjoy.
    my Q&A page: electronoobs.com/eng_preguntas...
    Help me on Patreon : www.patreon.com/user?u=4854866
    Canal en Español: / electronoobs en español
    GET NEW PCB HERE: electronoobs.io/shop/index.ph...
    COUPONS
    ________________________________________________________
    TS50 50A Brushless Sensored: ESC www.gearbest.com/multi-rotor-...
    FuriBee 30A: www.gearbest.com/esc/pp_10940...
    Coupon 3$: "FBLB30A"
    Surpass 3650 3900KV Motor + 60A ESC: www.gearbest.com/rc-car-parts...
    PRINTERS
    Anet A8 (19% discount): www.gearbest.com/3d-printers-...
    Creality CR10 mini: www.gearbest.com/3d-printers-...
    Coupon: "cr10mini3d"
    TEVO Tornado (US): www.gearbest.com/3d-printers-...
    Coupon: "Tornadous1"
    Creality CR10 (EU): www.gearbest.com/3d-printers-...
    Coupon: "cr10jk1"
    LINKS
    ________________________________________________________
    Tutorial webpage: www.electronoobs.com/eng_circu...
    Part list: www.electronoobs.com/eng_circu...
    Schematic (hall sensors OPAMP): www.electronoobs.com/eng_circu...
    Schematic (ATmega328p PU): www.electronoobs.com/eng_circu...
    Scheamtic (Arduino NANO): www.electronoobs.com/eng_circu...
    Code (potentiometer): www.electronoobs.com/eng_circu...
    Code (PWM input): www.electronoobs.com/eng_circu...
    Please, like, share and subscribe in order to motivate me for moe videos like this one. Thank you!
  • Věda a technologie

Komentáře • 239

  • @ELECTRONOOBS
    @ELECTRONOOBS  Před 6 lety +18

    FIRST. LOL. I hope that you will enjoy this video.
    Want to help my projects: www.patreon.com/ELECTRONOOBS
    Any question: www.electronoobs.com/eng_preguntas.php

    • @WalidIssa
      @WalidIssa Před 6 lety

      How do you produce these images and animations?

    • @GRBtutorials
      @GRBtutorials Před 6 lety

      Probably Adobe After Effects. Apple Motion works better (and it's cheaper) if you have a Mac.

    • @Kyle-ye4nj
      @Kyle-ye4nj Před 5 lety

      is that an italery model kit back there at 0:35? It looks awesome! :D

    • @mayibongwedube2790
      @mayibongwedube2790 Před 4 lety

      hello, how to extend on this project by implementing regenerative braking

    • @user-ke5jc1gb8f
      @user-ke5jc1gb8f Před 3 lety

      Hi!
      I'm trying to figure out which thermistor is used in 540 sensored motors. Made brief research but didn't found anything, so I tried to measure it, and it looks like 10k-2 thermistor.
      Maybe you know which thermistor is it?
      I asking here because the link to the questions page isn't working.

  • @francoisguyot9770
    @francoisguyot9770 Před 4 lety

    You're an incredible teacher. The animations are invaluable. Your attention to detail is top notch in schematic presentation, explanation of main and backing concepts, selection of components, prototyping and testing...All is done professionally... You're my preferred noob out here on you tube. Gracias y feliz ano nuevo amigo mio!

  • @marcus_w0
    @marcus_w0 Před 6 lety +3

    I love, that you made this video! this was exactly what I was missing in the previous projects. btw, your pßresenting gets better and better - thumbs up.

  • @tomreijtenbach7154
    @tomreijtenbach7154 Před 3 lety

    Wow that was some of the best explaining I've seen in a while man! Not dumbed down while also being not too technical and complicated, thanks.

  • @AtomsLab
    @AtomsLab Před 6 lety

    Awesome project! Thanks for all of the information. I have a whole box full of those old CD motors, but never knew what I could do with them. Now i have a million ideas!

  • @LydellAaron
    @LydellAaron Před 6 lety

    This was a wonderful tutorial. Fantastic breakdown for the elements of adding ESC capability to a sensored brushless DC motor.

  • @alejandronan607
    @alejandronan607 Před 6 lety +5

    Excelente video! You are really bringing amazing content to all electronics enthousiasts of all levels!

  • @Joyplanes
    @Joyplanes Před 6 lety +1

    I love these ESC videos, thanks for taking the time to do this.

  • @UmbraAtrox_
    @UmbraAtrox_ Před 6 lety +1

    This channel has improved so much since i subbed last year. Great job man

  • @WaltonPete
    @WaltonPete Před 6 lety +1

    Detailed explanation, as always. Great video!

  • @ProjectPhysX
    @ProjectPhysX Před 6 lety +4

    Amazing video! Thanks for sharing your experience!

  • @sisco6943
    @sisco6943 Před 6 lety +2

    When you have the gates of multiple mosfets connected together, you should put a small value resistor (

  • @GingerNingerGames
    @GingerNingerGames Před 4 lety +1

    This is good, I'm trying to build a drone and I'm thinking it'll be best if I make my own esc for it, I also learned you can do port manipulation on an Arduino, makes sense really

  • @poptartmcjelly7054
    @poptartmcjelly7054 Před 6 lety +11

    8:03 the way you connected your low side fly-back diodes effectively shorts out the N-CH low side drivers. Had to point that out or else and unsuspecting electronics hobbyist would make the circuit and wouldn't know why it's not working, or rather why there's smoke coming out.

    • @ELECTRONOOBS
      @ELECTRONOOBS  Před 6 lety +1

      Wow. Thank you so much for your comment. I must have been in a hurry. I've reversed the diodes now www.electronoobs.com/images/Circuitos/tut_19/sch_2_2.png You might have to refresh the picture to see the changes. I'll place a WARNNING massage in the description.
      Thanks again!

  • @bastiaanvandenabeele8645
    @bastiaanvandenabeele8645 Před 6 lety +1

    This is very good explained ! THANKS

  • @karanshah4276
    @karanshah4276 Před 4 lety

    Amazing,this video cleared many of my doubts

  • @MCsCreations
    @MCsCreations Před 6 lety

    Awesome work, man. Huge work!

  • @kaumohlamonyane272
    @kaumohlamonyane272 Před 6 lety +5

    I rate you, Greatscott and Dave as my favourite engineers on youtube👌❤

  • @adrianorozco2695
    @adrianorozco2695 Před 3 lety +2

    Man I just want to say thank you this design was incredibly helpful for a project that's worth 30% of my grade in power electronics

    • @tomreijtenbach7154
      @tomreijtenbach7154 Před 3 lety

      Always such a great feeling when you find that perfect video about something you need for school, right? haha

    • @nomiahmad5268
      @nomiahmad5268 Před 2 lety

      I have use the same design circuit for hub motor 350watt and i just burn two Arduino uno. I dont know why it get burn ..

  • @theautodan7095
    @theautodan7095 Před 4 lety

    Simple and precise, thank you.

  • @rafaelcabelo6616
    @rafaelcabelo6616 Před 6 lety

    Amazing video! Please be the first one to make an tutorial building the circuit that detects the motors phases without hall sensors like an off the shelf ESC.

    • @ELECTRONOOBS
      @ELECTRONOOBS  Před 6 lety

      Rafael Cabelo already have a tutorial about that. Check my channel! Keep up!

  • @localbroadcast
    @localbroadcast Před 5 lety +2

    low side diodes in backwards.. if installed like the diagram in the video, shoot thru will occur on all 3 legs causing your high side fets to burn up big time. Considering those are the P channel type, it would be an expensive mistake to make! Also.. The HIGH side fets (p ch.) are turned ON with a HI signal, but the LOW side fets (n ch.) are turn ON with a LOW signal, according to your schematic. Because of this, the signaling sequence mapped out at 7:10 won't work. I think everything works better using gate driver IC's so that ALL mosfets are controlled in the same way. High signal = ON, Low signal = OFF. Using gate drivers would also make N channel mosfets work for all 6 switches and get rid of the P ch. fets. P channel fets are generally much more expensive, have higher losses, and slower switching frequencies. N channel fets are the way to go, despite the small amount of added circuit complexity!

  • @jepetam
    @jepetam Před 5 lety

    Incrível, vou tentar fazer o mesmo projeto. Será que é possível controlar um carrinho com esse motor e o seu amplificador?

  • @robertl7522
    @robertl7522 Před 4 lety

    Great video tutorial can't wait to try it out

  • @DHTf92
    @DHTf92 Před 6 lety

    Hi! Mosfet burn probably because you have a shot through and you didn't provide a short delay gap between mosfet turn on/off. With little current this is not a big problem (only amount of heat dissipation on mosfet) but with a big motor the startup current are big due to high inductance of motor coils.

  • @DecimalZer0
    @DecimalZer0 Před 6 lety

    Great video! Thanks for sharing!! 👍

  • @juanpablocanguro
    @juanpablocanguro Před 6 lety

    This is an AWESOME video! I really liked it! so... what about position control? can you use an AS5048 sensor to detect the position of the rotor and read that with the arduino to drive the motor so that position is controlled? would you need to use PWM to graduate the 6 steps into a finer mesh so that the resolution is improved? would that turn this into a FOC? great videos!

  • @worldoflard
    @worldoflard Před 2 lety

    Really great series of videos - thank you for taking the time to make these.
    I have a question - if I wanted to apply a braking action, my first thought is that at each hall sensor change, you simply reverse the action, eg instead of driving phase A high and B low, you drive A low and B high, so the motor resists moving to the next step?

  • @TheDarknights1
    @TheDarknights1 Před 6 lety

    Really a great tutorial!
    thankyou really for you hardwork in this tutorial!!
    if i may ask, you are using the cd player bldc motor right? cause the other 1 need a big Amps to make it work.
    if you use the other circuit, which you already made, that can hold up, up to 60amps, will the motor work?
    (for the motor which doesn't work on this video)
    thankyou for your time !!

  • @ghostxop2101
    @ghostxop2101 Před 6 lety +1

    This guy and great scott are just crossed dimensions.

  • @narinoguerra7656
    @narinoguerra7656 Před 6 lety +1

    Great Man, Thanks for Sharing

  • @NNNILabs
    @NNNILabs Před 6 lety +3

    A wall full of circuit boards! Do you salvage parts from those?

  • @cyrilantony7911
    @cyrilantony7911 Před 5 lety

    I'm planning this to my project,do you've the designs for the capacitors and resistors used in the circuit

  • @ELECTROBUFF
    @ELECTROBUFF Před 6 lety

    amazing video just as always

  • @19janiboy96
    @19janiboy96 Před 6 lety +1

    Very informative thank you :)

  • @vishalkohli7353
    @vishalkohli7353 Před 3 lety

    Knowledge for all! Thank you

  • @josearistidesbail2690
    @josearistidesbail2690 Před 6 lety

    Hello! I was wondering on the advantages of using N-fet mosfets only, considering is harder to use them in high-side configuration, compared with P-fet for high side?

  • @eonang9751
    @eonang9751 Před 5 lety

    Thanks for making good esc explained videos.
    I am looking for some brushless motor control to make balancing robot. But what I known of ESC is usually for speed control. Do you have any suggestion of motor driver that can control BLDC motor like stepper motor?

  • @andrewferg8737
    @andrewferg8737 Před 3 lety

    Question: Writing directly to the port lets you turn on/off both pins for each half bridge simultaneously. Is it possible then to shorten the 6 step sequence to 3 steps or would this loose contact with ground for too long during the switch?

  • @eyenosenuttin
    @eyenosenuttin Před 2 lety +1

    at 3:53 on the wiring diagram... is it correct that the hall effects output on one sensor go to the same comparator (op-amp), yet on the other two sensors, they are split between the other two comparators(op-amps)?

  • @barnabasnomo7047
    @barnabasnomo7047 Před 2 lety

    Great Video, thanks for sharing. Wondering whether this is capable of driving a 36V motor with about 40A current as well.

  • @flaviocosta5767
    @flaviocosta5767 Před 6 lety

    Hi, I have been following your videos and would you like to suggest that there is a possibility of upgrading to an ESC by replacing MOSFETs for larger and more powerful motors? I await an answer!

  • @elosa
    @elosa Před 3 lety

    bravo- also AE skills A+

  • @btg5975
    @btg5975 Před 2 lety

    Very good. Regards, Engineer from India.

  • @vidhatrisamadhiya4599
    @vidhatrisamadhiya4599 Před 6 lety +27

    You and greatscoot always upload video same time

  • @ridewithserhat
    @ridewithserhat Před 6 lety

    Awesome Project :)
    But ı don't understand one thing in the previous BLDC sensorless Controller You didn't use the schottky diodes. Because in the mosfet you have diodes but in this sensored controller why you use them?
    Thank you...

  • @amitpatelpatel144
    @amitpatelpatel144 Před 6 lety

    Amazing solder technique . 03:18

  • @Virani_Shorts
    @Virani_Shorts Před 5 lety +1

    If i am used a 6 n channel mosfet insted of 3 p channle masfet than what type of modification is required in the code.??? And how to convert the hall effect sensor Analog output into digital output.???

  • @rusty_junk
    @rusty_junk Před 5 lety

    In the schematic A+ and A- go to same op-amp but B and C each have one of going into a different op-amp. So I think it is B+ and C- go into one and B- and C+ go into the last one. Is that a mistake or necessary for proper detection?

  • @fedimakni1200
    @fedimakni1200 Před 6 lety

    Hello Is there any way to make the BLDC turn CW and CCW??? in this tuto it turns only in one direction !
    Another question: Could we combine both the sensorless and sensored method together??? Thx

  • @somaodeunier7586
    @somaodeunier7586 Před 4 lety

    Great video, would it be possible to build a 72v 80A version? If yes, do you know how?

  • @clevison100silva
    @clevison100silva Před 3 lety

    Parabéns excelente trabalho.

  • @sandrolaerciopiltz8240
    @sandrolaerciopiltz8240 Před 2 měsíci

    I have a question and no exact answer. I have a washing machine motor and dryer, and I need an answer so you can help me, I want to install a hall sensor to monitor the magnetic fields. The question I'm wondering is where should I install the 3 hall sensors on the stator? Thank you in advance, congratulations on the classes, very good and very didactic.

  • @CSparzo
    @CSparzo Před 5 lety

    what all would need to be done to adapt this to a larger 400 watt sensored motor? It would probably be about the same rpm as what your cd driver was at. Bigger mosfets and drivers?

  • @yogatrinastyapermana4986
    @yogatrinastyapermana4986 Před 6 lety +1

    You have amazing brain bro 🤣

  • @fedimakni1200
    @fedimakni1200 Před 6 lety

    Great video. But how can you inverse the direction of spinning for this motor??

  • @hafizuddinmohdlowhim8426

    What is the imperfections did you still have? It just perfect actually

  • @christophh2031
    @christophh2031 Před 4 lety

    Great Video! Could you do one where you explain sine control(commutation) for BLDC?

  • @emolatur
    @emolatur Před 3 lety +1

    The schematic at 3:57... is that correct? Or are the - signals from sensors B and C connected to the wrong op amps?

  • @mr.amp0076
    @mr.amp0076 Před 6 lety +4

    Intro audio a bit low volume.... Awesome project & explanation...

  • @user-fm5fg7yh5h
    @user-fm5fg7yh5h Před rokem

    Nice work

  • @ELMO7TARAMQ8
    @ELMO7TARAMQ8 Před 6 lety

    Can you please make a video on how to control an "AC 115V motor" using arduino. Thank you for the awesome videos. Keep up the hard work. Your channel deserve 4 million subscribers. Your are very helpful and I learn alot from watching your videos. Thank you :)

  • @mancio92M
    @mancio92M Před 6 lety

    beautiful tutorial, can you also control the position of motor?

  • @anlpereira
    @anlpereira Před 6 lety +2

    Hi, great video. I only have one question, how to locate the hall sensor in the boards? I see you have 40° between then, but how to locate them if you have different number of poles? Thanks

    • @ELECTRONOOBS
      @ELECTRONOOBS  Před 6 lety +1

      40 degrees is because a full rotation is 360 deg so with 9 poles you have 360/9. If you have 12 poles just divide 360/12 and get 30 deg between each sensor.

    • @anlpereira
      @anlpereira Před 6 lety

      Electronoobs but it does depends on the number of poles in the rotor? If you have only two magnets on the rotor, for example? Thanks

  • @bitsurfer0101
    @bitsurfer0101 Před 5 lety

    do you have a link to the hobby king motor used? much appreciated.

  • @two_number_nines
    @two_number_nines Před 6 lety +1

    the best way to drive brushless motors is use half bridge (3 n channels), connect the center tap to + and drive the 3 mosfets by directly using hall effect signals. this will run the motor as if it was brushed, so if you want speed control add 555 pwm signal to the opamp input (or the sensors themselves if you add 3rd party sensors with integrated opamp) and my cheesy way of adding overcurrent protection is 3 555 monostable timers for each phase to make sure the pulse isn't too long therefore reaching too high currents

    • @two_number_nines
      @two_number_nines Před 6 lety

      full bridge drivers with 6 mosfets migh be a bit more energy efficient, but makes things so much more complicated that its easier to just rewind the motor with thicker coils

  • @acidadulcefran
    @acidadulcefran Před 3 lety

    love u jajaja, best tutorials ever

  • @wowfail6835
    @wowfail6835 Před 5 lety

    I know this is an older video, but can you please tell me why using N_Channel MOSFETs for both high and low side is not recommended, or if any of you commenters know can you please explain? Thanks

  • @swapnilmankame
    @swapnilmankame Před 5 lety

    Thank you For making this video, its Great, What needs to be changed for a higher power motor? say a 72 volt 200A motor? please help

  • @nuwanedirisinghe4267
    @nuwanedirisinghe4267 Před 3 lety

    Great video and informative. As a project it’s easy to understand. But Down the road we have lot of equipment thrown away BLCD type with many different ic controller. Can’t find pcb or not repairable. So can you make video how to hack those PCB. As example ceiling fan pcb. So that can make it use back the equipment. Thanks.

  • @Virani_Shorts
    @Virani_Shorts Před 5 lety

    it is realy intresting and nice job is done... i also want to work on this project because of you... tnk you so much.. but firt of all i want to simulate this circuit in proteus... so please help me how i can simulate this circuit in proteus???

  • @ivanbilev7590
    @ivanbilev7590 Před 4 lety

    Hi, i'm looking for speed control, DIY solution of a hover board bldc, that will keep the torque at lower speed. Any ideas? Thanks!

  • @shreyaskumar5366
    @shreyaskumar5366 Před 3 lety

    Sir I have a bldc motor which draws about 50Amps of current........
    Can I replace the MOSFETs of ESC with a suitable high current MOSFET for my purpose?

  • @oguzhanfak2224
    @oguzhanfak2224 Před 4 lety

    there is a problem bro. We using HIGH output for driving mosfets but low side of the circuit runs with LOW output.
    and also i am wondering are diodes necessary ?

  • @YoDay
    @YoDay Před 6 lety

    Can you make a basics video on Schematic Diagrams and Continuty testing? I mean what you did at 2:58

  • @nostamine2567
    @nostamine2567 Před 4 lety

    misto , chiar m-a ajutat

  • @rakhibamboli7032
    @rakhibamboli7032 Před 6 lety

    What is its max voltage and amps??
    Anyhow what an amazing project...

  • @dangoneau
    @dangoneau Před 6 lety

    I can't believe you only have 31k subscribers, insanity

    • @ELECTRONOOBS
      @ELECTRONOOBS  Před 6 lety +2

      Dan Goneau don't worry. I'm not preoccupied for the subscribers amount. Thanks and keep up!

  • @user-tf2qb6ke4o
    @user-tf2qb6ke4o Před 11 měsíci

    Excellent video! Did you, or somebody measured the max rpm with this motor?

  • @AYUBchannel
    @AYUBchannel Před 3 lety +1

    hi friend can you help me the problem of the drone gimbal motor is not working there is a mosfet esc code 4501n has a problem and i don't know to replace the equation

  • @Demirci91
    @Demirci91 Před 6 lety

    Very helpful tanks bro

  • @aneesmohammed7135
    @aneesmohammed7135 Před rokem

    Sir, Is the Arduino code same for a sensored control of my 24V 60W bldc motor...I know the gate driver requirements and switch selection should be altered depending on the current ratings....is the pwm generation code is same?

  • @two_number_nines
    @two_number_nines Před 6 lety

    4:28 100 ohms is a bit low. i've burned a hall sensor using 1k resistor. 5-10k resistor is perfect-the sensors will feel ok and the opamp will have no problem detecting the signal

  • @DevineIshaq107
    @DevineIshaq107 Před 5 lety

    can you build a 400 amperes 24 volts DC motor controller for Us , it has to be robust
    and will be used to run a 6Kv dc motor . if you have time let me know we will need many of those for our projects.

  • @ballaratebikes287
    @ballaratebikes287 Před 6 lety

    Awesome. Shared to the endless Sphere Facebook group. Possible to modify the code for sine wave?

  • @Moro8903
    @Moro8903 Před rokem

    Electro noob jest tylko jeden!!!!

  • @atom2319
    @atom2319 Před 6 lety +1

    sir, here in India , there are many BLDC motors of Electric scooter not working anymore because their controllers were all China made and now that controllers are not available in Indian market, so what to do to use motors again in electric scooter??

  • @rgmotors244
    @rgmotors244 Před 2 lety

    Amazing explain thanks

  • @abhishekprasad2935
    @abhishekprasad2935 Před 6 lety

    Thank you sir, i have a request for you, please make a video where you show the use of Bluetooth module as reciever, and smartphone as transmitter, there are many videos on this, but all those are shit and you explain very nicely. Thank you

  • @un2mensch
    @un2mensch Před 11 měsíci

    3:55 - why are the +/- outputs of Hall sensors B & C connected to different op-amps?

  • @dcslab
    @dcslab Před 6 lety

    Like your project bro . . .

  • @chintanjagtap3262
    @chintanjagtap3262 Před 6 lety

    please modify program for 120° hall sensor position. I am using this tutorial to make my final year project. help me

  • @shahzad377
    @shahzad377 Před 6 lety

    Hi friend did you make a project about rotary encoder with 7sagment led display thanks

  • @ScienceLab760
    @ScienceLab760 Před 6 lety

    Hi very nice controller for brushless motor, congratulations, but is better is you using voltage level shifter or gate driver because the voltage in the gate of mosfet is very low and the current flow in the coils low too.

    • @ELECTRONOOBS
      @ELECTRONOOBS  Před 6 lety

      You can use a MOSFET driver, but as I say in the video I've made my own driver with a simple NPN and a pullup. Thanks and keep up!

  • @fiderosado
    @fiderosado Před 4 lety

    hola estoy haciendo un proyecto de controlador de motor para mi moto electrica y me encuentro con el problema del comparador del sensor hall, mi motor solo trae 5 cables, negativo - positivo - a -b -c estos sensores como los puedo comnparar para que me de las lecturas que se muestran en el video, porque no veo forma de poderlos comparar con una 324

  • @nuzhatnawshin8297
    @nuzhatnawshin8297 Před 6 lety

    Hello very helpful video,
    Do i need 3 pwm signals or 6pwm signals to drive my mosfets?

    • @ELECTRONOOBS
      @ELECTRONOOBS  Před 6 lety

      In this project, one signal for each MOSFET. A total of 6 signals but not PWM. If you want to use PWM you haev to create a interruption to create that and create 3PWM, each for a pair of MOSFETs. Keep up!

  • @thanho6654
    @thanho6654 Před 5 lety

    i need a pin reveser direct motor in mod POT or Set value PWM 1000 -1500ms IS cw , 15000 -2000MS is CCW . How to change code ?

  • @oranggabut3197
    @oranggabut3197 Před rokem

    If i change the hall sensor with comparator, would the code still works ?

  • @nomiahmad5268
    @nomiahmad5268 Před 2 lety

    Will it work with 350 watt hub motor?? I mean same driver circuit with same specifications??

  • @soumitratewari483
    @soumitratewari483 Před 6 lety +4

    Sir can you please make a video on VFD of a three phase induction motor.

    • @emilianochomnalez637
      @emilianochomnalez637 Před 6 lety +2

      Please!!! im also really interested, also do you accept ethereum donations?