Lesson 89: How to control 360 Continuous Servo with Arduino

Поділитися
Вставка
  • Опубліковано 29 лис 2024

КОМЕНТАРІ • 137

  • @robojax
    @robojax  4 роки тому +31

    360 servo is NOT a servo. it is product modified for fun to make it work that way. use stepper motor for real application. this will never work as expected. do not waste your time.

    • @SaarNatanzon
      @SaarNatanzon 3 роки тому

      and if u use a driver

    • @mkiratul
      @mkiratul 3 роки тому

      it works perfectly if we use this as time dependent servo motor

    • @SaarNatanzon
      @SaarNatanzon 3 роки тому

      @@mkiratul what u mean can u show a little preview

    • @delbandung4801
      @delbandung4801 3 роки тому

      Dear Mr. Samsiri, how about servo 320 degree, it will control as per expected?

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

      i bought 2 360 "servos", thinking that i would be able to control its position in a 360 degree range, i was so wrong, these servos are pretty useless without feedback

  • @davidaustin6962
    @davidaustin6962 4 роки тому +2

    Great info, thanks! One thing becomes quite obvious here: for slow full-rotation motion it seems that cheap little stepper motors are superior to cheap little servos. I did not know that before. Thanks! Now am off to learn how to control a bipolar stepper with arduino.

    • @robojax
      @robojax  4 роки тому

      You are welcome. Here my video on simple stepper: ua-cam.com/video/cYTICj4DWYc/v-deo.html
      or all stepper related tutorials ua-cam.com/users/robojaxTVsearch?query=stepper

  • @mrcoragem
    @mrcoragem 3 роки тому +2

    great video!!!!!!!!!!!!!!!!

  • @flatisland
    @flatisland 4 роки тому +1

    nice video. I have gotten one of those today. Mine stops between 86 and 96. I think you could make it move in smaller steps by using it like that: servo.write(100);delay(100);servo.write(90); for example to make it move slowly for 100ms. Mine moves fastest at about 47. By lowering the value further more it stays the same speed. I had originally thought it would work like the SG90 servo (thanks to your video I now know it was not a malfunction). So unfortunately I have no application for it ... yet :D

    • @robojax
      @robojax  4 роки тому

      thanks. I've mentioned in the comments, that this (360 servo) is NOT a real or proper product. Use stepper motor

    • @flatisland
      @flatisland 4 роки тому

      @@robojax yes :-) I have also some Nema 17 stepper motors and have already used them for example for panning a camera on a 14m tripod.

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

    Hi robojax . i was on my project. I was gonna use this servo to make automatc curtain . but when i used this on if else . the logic if else . repeated continuesly . like . when i was gonna rotate for 2 second . it really rotate 2 second and stop . but it rotate again . did you have any solution? I use raindrop sensor to get data and control if else condition .

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

      Hi, please read the description. If not don’t just it. This is just a joke. Use stepper motor.

  • @robojax
    @robojax  3 роки тому

    Please subscribe 🛎 and thumb up 👍. Thanks. I appreciate it.

  • @alanvillela736
    @alanvillela736 3 роки тому

    i need to build a crane, i want to use this servo for the up down motion, and the rotation of the crane, should i use this or a stepper motor for the up down part

    • @robojax
      @robojax  3 роки тому

      This is just joke product not real. Use stepper motor

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

    Could be possible using this system for control 6 DC motors with encoder?????

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

      This "360" servo is a joke. Yes use Stepper motor or DC motor with encoder.

  • @unglaubichuberlieber8048
    @unglaubichuberlieber8048 6 років тому

    well, done, bravo, brao bravo...just DON'T STOP NOW !!!

  • @seungkihong9731
    @seungkihong9731 5 років тому +1

    what kind of servo motor are you using? I am using MG996R model. I followed your steps exactly but i couldn't rotate the motor to other way. and It keeps telling me that incomingByte is 10. any suggestions?

    • @robojax
      @robojax  5 років тому

      I will reply to all subscriber's 🔔 questions. So make sure to subscribe.😊

    • @sarapalmameireles
      @sarapalmameireles 4 роки тому

      did you manage to put that working? Because I have exactly the same problem

    • @forgetititschinatown
      @forgetititschinatown 4 роки тому +1

      @@sarapalmameireles Hi, you're getting "10 moving Random" because of your arduino serial monitor settings - it appends by default line ending to every line you are sending, but you can disable it by choosing "No line ending" settings

  • @tematoscybersage5626
    @tematoscybersage5626 11 місяців тому

    Thank you. I was thinking thay they stop on 360/0 degrees, and when I started to spin it with my hands without connection and power, I figured out that they spin continuously, unlike 180 or 90 degree versions.
    But why it is bad idea to use it as step motor?

    • @robojax
      @robojax  11 місяців тому

      beca you can't position it and it will not work as expected. use stepepr motor or very expensive servo motor. So stepper is better and cost effective solution.

    • @tematoscybersage5626
      @tematoscybersage5626 11 місяців тому

      @@robojax thank you, you mean that you can't set exact angle because it has huge error range?

  • @maciejkozyra9968
    @maciejkozyra9968 3 роки тому +1

    Hello. Is it possible to software transform 360 degree continous servo to non-continous? I need full circle moovement but not more than one, controlling by two buttons. Thanks in advance.

    • @robojax
      @robojax  3 роки тому +1

      Hello, please read the first comment. This is NOT a servo. just fake device for fun. Use stepper motor to achieve the same tasks accurately. I can't remove this video because this junk product is still sold online.

  • @jp48922
    @jp48922 6 років тому +3

    Hi, great video
    For what purpose do we use 360 servo? Can these be used in place of normal servo (i.e. those rotating 180 deg)? If yes,how?

    • @robojax
      @robojax  6 років тому +1

      No they can't be used instead of normal 180 degree servo. You can read about their applications here: www.pololu.com/blog/24/continuous-rotation-servos-and-multi-turn-servos

  • @ServitorSkull
    @ServitorSkull 4 роки тому

    Nice video, as always. Thanks for your outstanding work creating great libraries and sharing code.

    • @robojax
      @robojax  4 роки тому

      Glad you like them!

  • @sharkboi5153
    @sharkboi5153 4 роки тому +1

    I use SG90 servo. My servo doesnt move continously. It only move slightly then stop.Each time i put a character it always say " 10 moving Random". After that it won't move even i put a another character.
    How to fix that problem?

    • @robojax
      @robojax  4 роки тому

      Please read the first comment(pinned comment) that this is NOT a real servo. this is just fake item to prove that the servo can be modified. get ether actual servo or get Stepper motor See my videos on that ua-cam.com/users/robojaxTVsearch?query=28BYJ-48

    • @forgetititschinatown
      @forgetititschinatown 4 роки тому +1

      Hi, you're getting "10 moving Random" because of your arduino serial monitor settings - it appends by default line ending to every line you are sending, but you can disable it by choosing "No line ending" settings

  • @jyotilahre7615
    @jyotilahre7615 3 роки тому

    sir can we use it for 45 degree rotation and after some time reposition it

    • @robojax
      @robojax  3 роки тому

      This is not real servo. For practical applications use stepper motor. Search my channel for good videos on that

  • @rad2038
    @rad2038 3 роки тому +1

    I've MG996R and work perfect with pca9685 and Arduino nano 3 .
    i didn't use any different configuration but my code is:"" pwm.setPWM(pinnumber,0,rotation); delay(500); pwm.setPWM(pinnumber,0,0); ""
    rotation for right turn between 99-365 high speed 99 low speed 365
    rotation for left turn between 385-640 high speed 640 low speed 385
    then delay time depend how many time want to spin and finally stop code;
    don't forget to set frequency its work at 60 but not in other frequency i'm not quite sure why.
    pwm.setPWMFreq(60);
    good luck;

    • @robojax
      @robojax  3 роки тому

      this video has nothing to do with pca9685

    • @rad2038
      @rad2038 3 роки тому

      @@robojax i know but that's how i control my 360 servo perfectly in any angle that i command it.

  • @fero___3005
    @fero___3005 3 роки тому

    Bro if we upload code can will it save that i mean wheni give power will rotoate 360° ? for my another Arduino project

    • @robojax
      @robojax  3 роки тому

      Hi, your can use the code with any Arduino and turn it on off it will work. When it come to powering servo, you should always connect your servo motor directly to the the power source and not to the Arduino board.

  • @Ko-Rail7382
    @Ko-Rail7382 4 роки тому +1

    hi there, can you use these servos to a certain angle like 540 degrees?

    • @robojax
      @robojax  4 роки тому +1

      Perhaps you haven't watch the video. If you watch the video you will get the answer because I demonstrated it. Please watch it without skipping.

    • @Ko-Rail7382
      @Ko-Rail7382 4 роки тому

      @@robojax Thanks for the reply. So basically you just control the Servo by using the Serial monitor?

  • @winstonkabaso6234
    @winstonkabaso6234 3 роки тому

    hey hi, how can i move a 360 continous servo motor and stop it any time in the loop function

    • @robojax
      @robojax  3 роки тому

      Please read the first comment I made at top

  • @maymunashaikh1179
    @maymunashaikh1179 3 роки тому

    Thanks

    • @robojax
      @robojax  3 роки тому +1

      You are welcome. Here is $200 Arduino course for free Arduino Step by Step Course (over 100 lectures) Starts here robojax.com/L/?id=338

  • @escobark4153
    @escobark4153 4 роки тому

    Is it possible to control this servo according to degrees?? Like 180 degrees to 270 degrees? Because i need to control a full 360 degrees rotation, an increment of 30 degrees.

    • @robojax
      @robojax  4 роки тому

      If you watched the video, this is not stable. This is NOT real servo motor. It has been modified to rotate like DC motor. Get actual servo or use Stepper Motor.

  • @dustinplee5067
    @dustinplee5067 3 роки тому

    I bought one of the the black ones for my Traxxas rustler and my Traxxas slash I don’t have them yet

    • @robojax
      @robojax  3 роки тому

      This is not a real servo. Do not buy them. This is just for demonstration

  • @squidwardonachair6894
    @squidwardonachair6894 6 років тому

    If you try to move the servo arm while it is stopped (not powered off/unplugged), will it move because it is a continuous rotation servo? I know with regular servos that have position control, you cannot move the servo arm when it is stopped because it stays at that position, but do continuous rotation servos do the same thing?

    • @robojax
      @robojax  6 років тому

      I have got metal servo and I I can rotate it when it is OFF.

    • @squidwardonachair6894
      @squidwardonachair6894 6 років тому

      @@robojax if it is ON but not moving, can you turn it by hand?

    • @robojax
      @robojax  6 років тому

      I have not tested that.

  • @mhsohan2769
    @mhsohan2769 3 роки тому

    How can i run servo continuously by esp8266 with blynk app?
    Please help me.

    • @robojax
      @robojax  3 роки тому

      see the first comment under this video. this is joke.

  • @ivaemply7475
    @ivaemply7475 4 роки тому

    I am using the MG90S-201, it rotates slightly then stops, not sure if this servo is continuous. please help.

    • @robojax
      @robojax  4 роки тому

      a servo motor usually goes from 0° to 180° unless you purchased 360 servo.

  • @patelmarvel7300
    @patelmarvel7300 4 роки тому

    Sir can we controll it's rounds?? I mean if i want 4 rounds nd stop?

    • @robojax
      @robojax  4 роки тому

      you mean the revolution? No you can't . I mentioned it. This is very bad choice for that purpose. you need to use Stepper motor here is one example ua-cam.com/video/cYTICj4DWYc/v-deo.html

  • @peakyblinder9409
    @peakyblinder9409 4 роки тому

    Sir can we control angle with 360 servo like 90 degree 180 degree

    • @robojax
      @robojax  4 роки тому

      If you need 90 to 180, then why using this servo? use regular servo Here are my videos on servo ua-cam.com/channels/kcBSig_Iu4ZnAIeCeG1TVg.htmlsearch?query=servo

  • @luthfichan2316
    @luthfichan2316 4 роки тому

    I used servo 360 and adafruit motor shield then it can't be rotate ccw, how to fix it?

    • @robojax
      @robojax  4 роки тому +1

      as I mentioned in the first comment under the video, this is NOT a real motor. This is just fake motor. you should use stepper if you want full control at 360 degrees. for 180, use normal servo. Here use this stepper ua-cam.com/video/cYTICj4DWYc/v-deo.html or smaller ua-cam.com/users/robojaxTVsearch?query=28BYJ-48

  • @janghagos13
    @janghagos13 4 роки тому

    Hi can u make a version of java code like that? continuous servo control via bluetooth

    • @robojax
      @robojax  4 роки тому

      Hi, interesting. it is doable but needs some work. it depends on your platform. you will need hardware. But Arduino and Bluetooth module make it very easy. To remind you this continous servo is NOT a real hardware and it won't work as expected. I've shown that it is not working. I made the video because there was demand. get Stepper motor like this ua-cam.com/video/cYTICj4DWYc/v-deo.html or DC motor with encoder. Do not build projects based on this. it is waste of time and and money.

  • @chasinelwood1977
    @chasinelwood1977 6 років тому

    Hey there. How do you get that command line manager window to open up? The window where you are changing the speed values? Please advise! Nixe video!

  • @TernaryTrout
    @TernaryTrout 5 років тому

    Thank you, very helpful....

    • @robojax
      @robojax  5 років тому

      You are welcome.

  • @voiceoftruth1O1
    @voiceoftruth1O1 6 років тому +2

    That's great project. How to control speed of 360 rotation. Thanks.

    • @robojax
      @robojax  6 років тому +1

      You are welcome. If you send values between greater than 0 and less than 180 you can slow it down. I have mentioned this at 14:55

  • @yogeshitaliya473
    @yogeshitaliya473 6 років тому

    Nice one again

  • @aldrininbaraj7730
    @aldrininbaraj7730 5 років тому

    Can we control the speed of a dc motor and the direction of rotation?

    • @robojax
      @robojax  5 років тому

      Not with this but yes you can here is my video on that ua-cam.com/video/akQoGNUzhHI/v-deo.html

    • @chsaidineshreddy5589
      @chsaidineshreddy5589 5 років тому

      Yes, using PWM we can control the speed and by using L293d motor driver IC we can control the direction

  • @hours-qg6me
    @hours-qg6me 6 років тому

    Hi, what's model of servo did you use in this video? great job!

    • @robojax
      @robojax  6 років тому

      no model is needed. you will find many models. just look for 360 servo.

    • @hours-qg6me
      @hours-qg6me 6 років тому

      Thank you, I just get DS04-NFC it is probably even the same model :)

  • @mohsenmohseni7266
    @mohsenmohseni7266 4 роки тому

    You said to delete the previous post and move it here, I did too, thank you for following up
    ************************************
    Hello Mr. Ahmad Shamshiri
    I ask you to put a healthy code for use in the 360 degree servo motor
    By pressing a button or command, the servo motor spins a full speed and stops in its place.
    And each time you press the button, this operation is done once again
    Unfortunately, no code or tutorial can be found on the web
    Your previous two tutorials on 360 degree servo do not apply to me either.
    I always wish you health and success
    Thank you
    servo MG 996R
    سلام آقای احمد شمشیری
    لطفا یک آموزش و کد مرتبط برای سروو موتور 360 درجه را منتشر کنید
    به این شکل باشد که با زدن یک دکمه یا دستور این موتور 1 دور کامل بچرخد و در محل شروع متوقف گردد
    متاسفانه دو اموزش سروو موتور 360 درجه شما برای فکر من کاربرد ندارد
    از شما خواهش می کنم این مورد را در اولویت قرار دهید.
    قطعا افراد زیادی در دنیا هستند که این مشکل را دارند و هنوز پاسخ مناسبی پیدا نکرده اند.
    همیشه سلامتی و موفقیت شما را خواستارم
    از شما پیشاپیش متشکرم

    • @robojax
      @robojax  4 роки тому

      In practice, we don't have 360 servo. you can't sent it to specific angle. this is just modified version of actual servo which goes from 0 to 180. For actual project or application, please either use stepper motor or DC motor with encoder. You won't be able to achieve desired results with this.
      وعلیکم السلام
      خلاصه مطلب اینکه این سرو فقط به منظور نمایش است و کابرد عنملی نداد.
      سلامت باشید

  • @jonathansmitter
    @jonathansmitter 6 років тому

    hello, im having problems with the Serial.read process, for some reason when i insert a value, a few seconds later the value turns to 0 which is NULL, which automatically switches the orientation of spin. please help

    • @robojax
      @robojax  6 років тому

      Hi, Before doing this project, try Examples->Communications->Serial Even and see this image snag.gy/jCZ25F.jpg

    • @andrewnitch
      @andrewnitch 4 роки тому

      @@robojax OMG thank you

  • @vedantdaramwar6065
    @vedantdaramwar6065 5 років тому

    hey!! It's a great project. But i am facing some problems. After typing the character the serial monitor shows the corresponding dec but after each line there's a line saying" received: 10 moving Random" and there is no change in the rotation of the motor.. Please help me here!!

    • @robojax
      @robojax  5 років тому

      You must be done something wrong. Please copy the code and use it without any changes. Also watch the video without escaping. Again.

    • @Nayandin77
      @Nayandin77 5 років тому

      @@robojax I'm getting the same issue, I checked Serial Output Example and that's producing correct results. I tried testing w/ println() statements and it somehow takes random input when not provided. Getting that same "received: 10". I copied over your exact code, maybe its the version of Arduino IDE? I'm using v1.8.9

    • @robojax
      @robojax  5 років тому

      did you set the serial monitor with 9600 baud?

    • @yuvrajkalra2645
      @yuvrajkalra2645 5 років тому

      Yes! Same issue here as well. If a change the default to reverse condition then I can only hear the sound of the gears but no output reverse rotation can be seen .

    • @storm_fpv9342
      @storm_fpv9342 5 років тому +2

      got the fix!
      in the serial monitor next to where you set it to 9600 baud there is a dropdown menu wich says "new line". Set it to the first option (something like "no end of line")

  • @ayesha798
    @ayesha798 5 років тому

    the position it stops is the center? right?

    • @robojax
      @robojax  5 років тому +1

      There is no center. It is free to rotate. Unless you save the initial location, then rotate it and accurately count the rotation.,

    • @ayesha798
      @ayesha798 5 років тому

      means i can use it as it is without any position configuration for my robotic arm?

    • @robojax
      @robojax  5 років тому

      I assume for robotic arm you will need precise angle and position. with this you can't do it as it is now. Unless you add other supported stuff. But if you want to rotate something without knowing at what angle it is located, yes you can use it.

  • @peakyblinder9409
    @peakyblinder9409 4 роки тому

    Hello sir tell me any project with help of these I do not have any idea

    • @robojax
      @robojax  4 роки тому

      ua-cam.com/channels/kcBSig_Iu4ZnAIeCeG1TVg.htmlsearch?query=servo

  • @alperyasin710
    @alperyasin710 5 років тому

    Hello we are trying to make a solar tracker project. We found codes from internet and they used sg90 (180°) but I have mg996 (360°)
    It doesn't work properly
    What should we change to work it with mg996?

    • @robojax
      @robojax  5 років тому

      You can't use the 360 servo for precise control. You should use a DC or stepper motor or actuator.

    • @themarceloloo
      @themarceloloo 5 років тому

      hello Alper, I am trying this project in my graduation here in Brazil, i want to ask to you if you had success in your project, and if you can tell me some hints to finish this. Thank you. Send me an email if you can: mah.henriquee@gmail.com

  • @pacocable
    @pacocable 5 років тому

    model of servomotor please, thanks

    • @robojax
      @robojax  5 років тому

      model for what? if you need the fritzing model? then it is available. just do simple google search.

  • @karrarmaher
    @karrarmaher 5 років тому

    Thank you, but how i can control the speed of it . for examle : that it complet one cycle in 1 min

    • @robojax
      @robojax  5 років тому

      You are welcome. Watch the video. I have explained it you can control the speed or not.

  • @malikfikrii
    @malikfikrii 4 роки тому

    i can't open your link (code)

    • @robojax
      @robojax  4 роки тому

      just checked it and it works. I made the link shorter.

  • @farhanriazlive1726
    @farhanriazlive1726 4 роки тому

    what if i want to have a 360 degree rotation
    ?

    • @robojax
      @robojax  4 роки тому

      then use regulator DC motor. Or use it without interruption.

  • @mugpc8502
    @mugpc8502 5 років тому

    How can I make it into 2 servos

    • @robojax
      @robojax  5 років тому

      Watch this video and you should be able to learn from it ua-cam.com/video/WQ3oFyF5qeY/v-deo.html

  • @more_u-listen_more_u_love9543
    @more_u-listen_more_u_love9543 6 років тому

    I am not able to control 360 degree servo , whenever I am sending any command like r or l ...it would not work accordingly

    • @robojax
      @robojax  6 років тому

      check the wiring or the servo is bad. it should work.

  • @ayesha798
    @ayesha798 5 років тому

    how can we center this servo?

    • @robojax
      @robojax  5 років тому +1

      Watch the video. I have explained it.

    • @ayesha798
      @ayesha798 5 років тому

      Robojax thanks alot. Amazing video

    • @robojax
      @robojax  5 років тому

      You are welcome.

  • @rajuraula2260
    @rajuraula2260 6 років тому

    This motar Voltage A/c. Dc

    • @robojax
      @robojax  6 років тому

      Servo motor is always DC. Also + and - wire exits on DC power. AC does not have + and -.

    • @rajuraula2260
      @rajuraula2260 6 років тому

      How many voltage

    • @robojax
      @robojax  6 років тому +1

      click here-> 09:04

  • @thanoshusk1962
    @thanoshusk1962 4 роки тому

    It just does not work. Everything about this code is wrong

    • @robojax
      @robojax  4 роки тому

      then you have different servo. Please read the first comment.

  • @brandonbarr2784
    @brandonbarr2784 3 роки тому

    never use 11 words when 7 will do.

  • @adamsvette
    @adamsvette 3 роки тому

    Why bother using ascii at all? Just enter the numbers directly. So confusing and unnecessary when watching along

    • @robojax
      @robojax  3 роки тому

      just try entering for example A and see what you get. Print it on screen and compare it.

  • @reeb8587
    @reeb8587 4 роки тому

    long and terrible with an ad every 2 mins

    • @robojax
      @robojax  4 роки тому

      I just check it . it is 3 minutes. This is for people who want to learn. otherwise get the code and god. if you want to not see the ads, here is my course on Udemy bit.ly/rj-udemy where you pay and don't see any ads. Be fair.