How to Wire and Control an AC Servo with Arduino: Step-by-Step Guide

Sdílet
Vložit
  • čas přidán 13. 07. 2024
  • In this tutorial, we dive deep into the steps required to wire an AC servo to an Arduino. From understanding the basics of servo operation to implementing Arduino code to control it.
    You will learn how to wire the arduino, how to wire the servo controller and what components to use for it all.
    Here is the link for the 24v powersupply: www.elfadistrelec.no/en/embed...
    Here is a link for the servo: www.aliexpress.com/item/10050...
    Here is a cheap source for arduinos: www.aliexpress.com/item/10050...

Komentáře • 17

  • @ymg200
    @ymg200 Před 7 měsíci +1

    Great job, man!

  • @omerfaruksimsek5302
    @omerfaruksimsek5302 Před 10 měsíci +1

    Thnx man, it's very helpfull :)

  • @user-sq2ch6ll2p
    @user-sq2ch6ll2p Před 6 měsíci

    it's very useful.

  • @peterk3068
    @peterk3068 Před 9 měsíci +3

    Wonderful job. Please share the code and the wiring diagram if possible.

  • @SuperSuperhacker
    @SuperSuperhacker Před 10 měsíci +2

    "Exactly what I was looking for! Thank you. I ordered a Lichuan servo a few months ago, thinking it would be as straightforward as any other stepper motor with step and direction pins connected to an Arduino. Could you please assist me in figuring out how to make it move? Is it possible to get your email? It would be very helpful."

    • @tarehjernetarehjerne4082
      @tarehjernetarehjerne4082  Před 6 měsíci

      I can try to assist, but i need to know what model you have.
      Have you tried what i did in the video? This should be universal for the lichuan servos

  • @TheBillybru
    @TheBillybru Před 3 měsíci

    Hello,
    In the video, the program 48 of the servo driver is set at 1000. When set with the tone function tone(pin13, 10*1000, 1000), the servo motor do complete turn in one second.
    Does it means that if the program 48 was set at 500, the servo motor would turn twice in one second?
    Thank you.

  • @hussainyunnaz431
    @hussainyunnaz431 Před 9 měsíci

    Could you please share the PDF of this drive

  • @user-bp8fg6cc7j
    @user-bp8fg6cc7j Před 6 měsíci

    Thanks for this tutorial. It was really useful. I bought the same servo motor and driver and in 15min, I was able to control it.
    Have you ever tried to control this servo motor by position? E.g. go to 20 degrees or go back to intial position. I guess you would need to get position feedback from the encoder. Do you thik this would be possible with an arduino?
    Thanks in advance.

    • @tarehjernetarehjerne4082
      @tarehjernetarehjerne4082  Před 6 měsíci

      Hello, You can indeed recieve position output through the arduino. The demonstration was done in a step/dir open loop connection. Note the arduino program needs a lot of checks to run a good closed loop system that would not self interfere.
      I have created closed loop systems with these servos but i have only done so using a PLC. If you wish to create your own system, i would do it with ladder logic and a PLC, micro chips are not fast enough if you wish to go faster.

  • @simonedallai48
    @simonedallai48 Před 3 měsíci

    Good job please can i have the code and diagram?

  • @-Khan-747
    @-Khan-747 Před 4 měsíci

    Hi , can you give us the Arduino code for test? Thank you ❤

  • @user-kp3wi7fk5v
    @user-kp3wi7fk5v Před 8 měsíci

    Hi,my name is Million Haile.can you show me a programm and wiring of arduino to servo to control for bar soap cutting machine with adding induction prox.sensor and encoder?Regards Million Haile

    • @tarehjernetarehjerne4082
      @tarehjernetarehjerne4082  Před 6 měsíci

      I can try to be of help.
      For a machine purpose I would not use an arduino. Please check out the Mesa store for linux cnc parts.

  • @KlemenVidmar
    @KlemenVidmar Před 4 měsíci

    this will probably sound stupid but why does the motor constantly spin if you wired it to position mode? Shouldnt that be speed mode?

    • @tarehjernetarehjerne4082
      @tarehjernetarehjerne4082  Před 4 měsíci

      That is not a stupid question.
      Here, we are sending a tone which changes the position, making it look like its spinning. In an industry setting you would send 5000 pulses in 0.1s to rotate 180 degrees.
      In speed mode, i believe it works off an analog voltage as a motor.