DC Motor Speed Measurement Using Arduino and Simulink

Поділитися
Вставка
  • Опубліковано 8 сер 2024
  • in this tutorial 🔥 we will see how we can use an Arduino Uno and Simulink to measure dc motor velocity.
    the motor encoder will be used as a sensor to measure the velocity and then calculated using a simple Simulink model.
    💻 my services are available on Fiverr: www.fiverr.com/mouad2021
    ⏱️ TimeStamps :
    0:00 intro
    0:30 The Circuit
    1:52 The Simulink Model
    5:10 Test
    🏷️ HashTags: #electronics #encoder
  • Наука та технологія

КОМЕНТАРІ • 31

  • @hobby_coding
    @hobby_coding  2 роки тому +9

    liked it? , share with me your ideas in the comments.

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

      can you help me with the same thing but not this time of encoder, the lm393 one, please its urgent

  • @andrefrak
    @andrefrak 2 роки тому +2

    Super clear and easy explanation. Keep the good work!

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

    very good

  • @dakshkatkar6030
    @dakshkatkar6030 Рік тому

    please make more videos in this series

  • @bigcatdairy
    @bigcatdairy Рік тому

    Do u know how to detect time interval between two interrupt or 2other those of signals?

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

    Hello,
    Firstly thanks for video. I have a question about that. These results are not stable on my dc motor. I can read RPM but it was shown as 100 and suddenly it will be 150 altought there is an constant voltage source. Can you say your ideas about that and maybe you can give me a recommendations about that. Thanks :)

  • @MauricioHernandez-de8is
    @MauricioHernandez-de8is 2 роки тому +1

    Thanks for sharing, i hope your channel grew fast. What will be the the fastest reading Speed? Is not a better option use interrupts? Arduino uno is a little bit outdated un these days, anyway your videos are very cool.

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

      hi Mauricio, thanks for watching.
      yeah the Arduino Uno is a bit basic but the same method goes for all of them ( the ones supported by Simulink)

    • @MauricioHernandez-de8is
      @MauricioHernandez-de8is 2 роки тому +1

      @@hobby_coding thanks for reply, i really like the interface that you made with simulink, i made a servo with a industrial optical encoder but using the maple stm32 and interrupts. It is a shame that is not compatible with simulink, only with Arduino IDE.
      I will build an inverted pendulum and controlling it with simulink, this video will help me to do that, have a nice day friend.

  • @akmalzmalz
    @akmalzmalz 2 роки тому +2

    Hi. Can you give the picture if the circuit? Becuse it is not clear

  • @hamedshamsikhani3345
    @hamedshamsikhani3345 4 місяці тому

    Thank you very much dear sir. You teach excellent but please describe more about something like 100 signals or sample time!
    I exactly make your model . My motor turns about 3200 rpm but the result is not acceptable.

  • @mgbezechike23
    @mgbezechike23 5 місяців тому

    How can i get the circuit diagram for this please. And also what DC motor and encoder did you use

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

    I think it was amazing. But i propose that we start from the point where we are not doing all that advanced stuff. Just getting to learn how to do simulink and arduino at a basic level. Its because we dont have access to the hardware

    • @hobby_coding
      @hobby_coding  2 роки тому +2

      hi Male hakim, this video had to be done, because we need to know how we can measure a dc motor velocity before getting to other concepts like designing a control system.
      also, we will not be dealing with hardware all the time but I'm sure you can get your hands on an Arduino Uno.

  • @youssefmohammed6825
    @youssefmohammed6825 Рік тому +1

    Excuse me
    When I stop my motor the display still have a number to show (doesn't show zero)
    And at full speed of motor (250rpm) the display shows negative numbers
    What could be the problem?
    I have followed all your steps
    Thanks for the video.

  • @welidbenchouche
    @welidbenchouche 2 роки тому +2

    doesn't work for me, with the delay, the rmp is capped at some value, second issue is: the speed never goes down if i stop rotating the motor, it always starts from last value

    • @youssefmohammed6825
      @youssefmohammed6825 Рік тому

      I have the same problem
      Speed doesn't reach zero and sometimes tends to negative value

    • @welidbenchouche
      @welidbenchouche Рік тому +1

      @@youssefmohammed6825 honesyly. You need to buy some good motors with built in encoders. Otherwise you ll be drowned with problems and inaccuracies. Good luck

    • @youssefmohammed6825
      @youssefmohammed6825 Рік тому

      @@welidbenchouche thank you Mr Walid

  • @DANCEmaster7339
    @DANCEmaster7339 5 місяців тому

    I still didn't understand the purpose of adding delay blocks. Z-1 and Z-100

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

    I get this error "The following error occurred during deployment to your hardware board:
    The generated code exceeds the available memory on the processor. It uses 121.6% of available program memory and 54.1% of available Data memory."

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

    Hi, i need your help.. how can i reach you?

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

      currently i'm too busy with my phd, sorry.

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

    code Arduino please

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

      it doesn't need Arduino code, just run the Simulink model and the code will be sent to the Arduino board.

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

      @@hobby_coding thanks ❤️

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

    Hii...what is your username in fiverr??...I want to use your service

  • @bigcatdairy
    @bigcatdairy Рік тому

    Hi bro, got a question, why we need to multiply the 0.5 millisecond by 100 @3:56? thanks for sharing
    and I could not find u in fiver, could you pl PM ur username on fiver? thanks.

  • @amr.a-m8350
    @amr.a-m8350 Рік тому

    Super clear and easy explanation. Keep the good work!