Writing software for BLDC speed controller - Vlog Series 3

Поділитися
Вставка
  • Опубліковано 1 сер 2024
  • In this video I talk about my progress in creating a BLDC speed controller from the grounds up. Here I show how I am programming the 6 step commutation sequence. I show the outputs on the logic analyzer scope.
    MCU Development Environment:
    ► NXP Microcontrollers- McuXpresso
    ► Microchip Microcontrollers including Arduino- Microchip Studio
    ► Linux + VI + ARM GCC
    Linux Environment:
    ► VirtualBox + Linux Mint
    ► Window Manager - Awesome WM
    Electronic Tools I use:
    ► Oscilloscope Siglent SDS1104X-E - amzn.to/3nRcziY
    ► Power source - Yihua YH-605D
    ► Preheater Hotplate - Youyue946c - amzn.to/356DhgS
    ► Soldering Station - Yihua 937D - amzn.to/33VXm9b
    ► Hot Air gun - Sparkfun 303d
    ► Logic Analyzer - Salae - amzn.to/3AoQ4qy
    ► Third hand - PCBite Kit - amzn.to/3JCYZbr
    ► Solder fume Extractor - amzn.to/3H2a0kE
    Software Tools I use:
    ► PCB Design - Altium
    ► Mechanical Part modelling - Solidworks
    ► 3d Modelling and design prototyping - 3ds Max
    ► Rendering Engine - VRay
    ► Mathematical Modelling and model based design - MATLAB and Simulink
    Links:
    ► Website: www.antshiv.com
    ► Blog: shivasnotes.com
    ► Patreon page: / antshiv_robotics
    DISCLAIMERS:
    We are a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for us to earn fees by linking to Amazon.com and affiliated sites.
    This video was not paid for by outside persons or manufacturers.
    No gear was supplied to me for this video.
    The content of this video and my opinions were not reviewed or paid for by any outside persons.
  • Наука та технологія

КОМЕНТАРІ • 12

  • @antshivrobotics
    @antshivrobotics  2 роки тому

    If you liked the video, please subscribe and turn notifications on to not miss any future videos, thank you!

  • @shahidanwar6239
    @shahidanwar6239 11 місяців тому +1

    Hello brother it's really informative videos.can we talk .

  • @boarques
    @boarques 3 місяці тому

    There is a software to use? Maybe for mac?

  • @AhmedAbdalla-ui6du
    @AhmedAbdalla-ui6du 2 роки тому

    If the minimum throttle of esc is 1000, how to map the software pwm of pi3 that have duty cycle from 0:100 only, I will be grateful for help

    • @antshivrobotics
      @antshivrobotics  2 роки тому +1

      Speed is directly proportionate to voltage input. If you use a battery of 7.4 volts, your motor will run at full speed of (1000 * 7.4) 7400 rpm for a 1000KV motor. For a 7.4V battery, this is the maximum speed your motor will be capable of rotating. This is also your 100% duty cycle. To slow it down all you need to do is reduce the voltage. One way to reduce voltage is using a linear regulator. But it will be extremely inefficient as you lose power through heat. Another way is through PWM. So to get a speed of 1000 rpm you need to reduce the duty cycle to (1000rpm * 100) / 7400 = 13.51% duty cycle. This amounts to an average of 1 volt.
      Keep note, hobby ESC generally only allows you to change PWM at very discrete values. Hence you may not be able to set it at 13.51% but perhaps 15% or 20%.
      Hope it helps!

    • @AhmedAbdalla-ui6du
      @AhmedAbdalla-ui6du 2 роки тому

      @@antshivrobotics
      I have a 1400 KV BLDC motor.Using raspberry pi to control its ESC. What the best frequency to control ?
      I have tried 50 HZ but the range of duty cycle to make the motor work was (min=6,max=11), if I increased the duty cycle the motor turns off!!

    • @antshivrobotics
      @antshivrobotics  2 роки тому +1

      @@AhmedAbdalla-ui6du Ah! for the hobby ESC, you need your frequency to be around 20ms (50Hz) and your duty cycle must be between 1ms to 2ms. 1ms is 0pwm and 2ms is 100% duty cycle.
      Hope it Helps!

    • @AhmedAbdalla-ui6du
      @AhmedAbdalla-ui6du 2 роки тому

      @@antshivrobotics in my case
      Theses duty cycle values are actually true when I set frequency to 10 HZ ?

    • @antshivrobotics
      @antshivrobotics  2 роки тому

      @@AhmedAbdalla-ui6du These hobby ESC normally have a lower and upper frequency range. I am not sure what it is. Were you able to get the motor spinning?