Servo Motor with Potentiometer and LCD with Arduino

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 มิ.ย. 2024
  • In this video we learn how to control the angle of servo motor using a potentiometer (variable resistor) and display the angle on LCD1602 or LCD2004 with I2C module that has 4 wires. Link to download the code is below.
    **** Free Course ***
    Arduino Step by Step Course (over 100 lectures) Starts here • Lesson 00 What is Ardu...
    The best thank you for me is to not to skip ads and Subscribe 🔔 to my channel, like 👍 the video It is greatly appreciated. 🔔 😊.
    I will reply to all Subscriber's 🔔 questions. So make sure to Subscribe.😊 .
    Download Arduino code for this video: robojax.com/L/?id=289
    ******Purchase this LCD1602 I2C from:*****
    Amazon USA: amzn.to/3rBaFTw
    Amazon Europe (all countries): amzn.to/38ryLsk
    Amazon Canada: amzn.to/2N3B8tM
    Banggood: www.banggood.com/custlink/GKD...
    ***** Purchase Authentic Arduino Uno from ***
    Amazon USA: amzn.to/2KApAwK
    Amazon Canada: amzn.to/37LZ8sW
    All Europe Amazon: amzn.to/36YDSzn
    ** Buy Servo Motor from affiliated stores **
    Amazon USA: amzn.to/3m6Cmkr
    Amazon Canada: amzn.to/2JdM5GK
    All Europe Amazon: amzn.to/36YDSzn
    AliExpress (single servo): s.click.aliexpress.com/e/_ApIWoQ
    AliExpress (4/5/20pcs metal gear): s.click.aliexpress.com/e/_AFMrG
    **Buy Potentiometer **
    Amazon USA: amzn.to/2V1NOSj
    Amazon Canada: amzn.to/365HDTH
    **Buy Breadboard from **
    Amazon USA: amzn.to/2VfyG45
    Amazon Canada: amzn.to/33hJCma
    Jump to different section of video by clicking on the time:
    00:00 Start
    00:40 Introduction
    04:25 Wiring Explained
    08:14 Finding I2C Address
    09:14 Arduino Code explained
    19:35 Demonstration LCD1602 with Breadboard
    20:30 Demonstration LCD2004
    21:00 Demonstration Power from Digital pins
    22:15 Demonstration limiting angle
    Related videos:
    Introduction to Using LCD with Arduino: • How to use LCD LCD160...
    How to use breadboard: • How to use breadboard?...
    Servo with Arduino: • How to control Servo m...
    Potentiometer with Servo: • Lesson 85: Control Ser...
    Tutorial by Ahmad Shamshiri form Canada
    ****************************
    Arduino Step by Step Course (over 100 lectures) Starts here • Lesson 00 What is Ardu...
    Learn Arduino in 30 Minutes (video): robojax.com/L/?id=135
    ****************************
    If you found this tutorial helpful, please support me so I can continue creating contents like this. Here is PayPal link paypal.me/robojaxTV
    Follow me on Facebook robojaxTV
    Follow me on Twitter: / robojaxtv
    Follow me on Instagram: / robojax
    Tutorial by Robojax.com
    Get other projects code and learn Arduino
    robojax.com/learn/arduino
    #robojax #robojaxServo
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 97

  • @ernstgennial7064
    @ernstgennial7064 3 ปีที่แล้ว +8

    The multilingual subtitles are awesome!

    • @robojax
      @robojax  3 ปีที่แล้ว +2

      I am glad you like it.

  • @mpume.dzwane9213
    @mpume.dzwane9213 3 ปีที่แล้ว +5

    Thanks a trillion Ahmad for your dedication and commitment. I don't just learn arduino from you but kindness too. Godbless you.

    • @robojax
      @robojax  3 ปีที่แล้ว +2

      Upi are we;cp,e/ that is nice of you. Let's just try be good.

  • @hobbydemusik3543
    @hobbydemusik3543 2 ปีที่แล้ว +1

    This Is Video Tutorial Very Very VeryGood....... You Are My teacher... s

  • @manfromthemist1958
    @manfromthemist1958 3 ปีที่แล้ว +1

    learning from a master, thank you, stay safe

    • @robojax
      @robojax  3 ปีที่แล้ว

      Thanks, will do!

  • @2007xoxox
    @2007xoxox 3 ปีที่แล้ว

    Another great video, thank you!

    • @robojax
      @robojax  3 ปีที่แล้ว

      My pleasure!

  • @ElectroMentor
    @ElectroMentor 3 ปีที่แล้ว

    Wonderfully Explained thanks 👍🏿

    • @robojax
      @robojax  3 ปีที่แล้ว

      Glad you liked it

  • @scottditschun1146
    @scottditschun1146 ปีที่แล้ว

    Hello! Thanks for your video! It has been super helpful for my project. One question; if you compare the movement of the servo connected to the LCD versus the movement of the 2 servos in the clip at the end of your video (without the LCD), the servo connected with the LCD looks a bit jumpy or pulsing to get to the set position. I have this same issue when trying to add an LCD into my project but I need to maintain the smooth motion of the servo when LCD is not attached. Any suggestions to maintain smooth motion when adding a LCD into the servo project?

  • @forMakers
    @forMakers 3 ปีที่แล้ว +1

    Watching and learning very informative videos Thank you^^

    • @robojax
      @robojax  3 ปีที่แล้ว +1

      you are very welcome.

    • @forMakers
      @forMakers 3 ปีที่แล้ว +1

      @@robojax wow!

  • @saileshdesai4
    @saileshdesai4 ปีที่แล้ว

    Hello, Very informative video ! I would like to set angle on the LCD and move the servo by pressing a button. Angle would be variable as per requirement between 0 to 180. Thanks

  • @jfrras1065
    @jfrras1065 3 ปีที่แล้ว +1

    تشکر از استاد شمشیری . موفق باشید .

    • @robojax
      @robojax  3 ปีที่แล้ว +1

      خواهش میکنم. شما سلامت باشید.

    • @robojax
      @robojax  11 หลายเดือนก่อน

      سلام علیکم. مجرا (کانال) فارسی علم و فن را راه اندازی کردم: لطفا به دوستان تان خبردهید و حمایتم کنید.
      www.youtube.com/@ilmofan

  • @baan329
    @baan329 7 หลายเดือนก่อน

    Hello, first of all, thank you for sending good code for us to study and use. And after testing your code, the message "Angle :" was not found and displayed on the LCD screen. Help detect errors.

  • @GoogleAccount-rh2ls
    @GoogleAccount-rh2ls 3 ปีที่แล้ว

    Excellent video 👌

    • @robojax
      @robojax  3 ปีที่แล้ว

      Thanks for the visit

  • @Iosens
    @Iosens 3 ปีที่แล้ว

    Hi Ahmad, your channel is one of the best on You tube! Quick question:
    I cannot find how to create the playlist like chapters on the side of the video, Can you provide a link where this is taught?
    Thanks a lot!!!!

    • @robojax
      @robojax  3 ปีที่แล้ว

      Hello and thank you. just see the description of the video you will see time for each chapter of the video is mentioned: just mention the times starting with 00:00 and it will show chapters. Very simple.

  • @rasdavis8390
    @rasdavis8390 3 ปีที่แล้ว

    Big respect from £ngland ,💯⭐

    • @robojax
      @robojax  3 ปีที่แล้ว

      thank you @Ras Davis. Greetings from Canada. stay safe.

  • @electronic7979
    @electronic7979 3 ปีที่แล้ว +1

    Very helpful video

    • @robojax
      @robojax  3 ปีที่แล้ว +1

      Glad you think so!

  • @salazarreyesjoseadrian2699
    @salazarreyesjoseadrian2699 3 ปีที่แล้ว

    excelente video gracias

    • @robojax
      @robojax  3 ปีที่แล้ว

      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

  • @tanhnguyenchon1755
    @tanhnguyenchon1755 3 ปีที่แล้ว

    Thanks teacher 👍👍👍

    • @robojax
      @robojax  3 ปีที่แล้ว

      You are welcome

  • @kintulawrence.5468
    @kintulawrence.5468 3 ปีที่แล้ว

    Woooh, good videos, keep it up!!
    How can I get those components for my practice
    From Uganda

    • @robojax
      @robojax  3 ปีที่แล้ว

      The link is in description, get from AliExpress

  • @redsea3114
    @redsea3114 2 ปีที่แล้ว

    hi there, thanks a lotfor sharing this nice project. I just wanna say that when I checked the code , it is pointing on ( lcd.begin();
    ) and says that (
    no matching function for call to 'LiquidCrystal_I2C::begin()') what is the problem ?

    • @robojax
      @robojax  2 ปีที่แล้ว +1

      Hi
      Yes it is because you must have skipped the cheep and did not see when I showed how to install the library for the lcd. Never skip my videos if you want your projects to work. All videos and projects work without any issue

  • @daviddalton5851
    @daviddalton5851 3 ปีที่แล้ว +2

    Ahmad Shamshiri you are the man. Can i hire you for a couple small projects? If so please tell me how.
    👊

    • @robojax
      @robojax  3 ปีที่แล้ว

      Hi David, I don't know how to handle project with someone far from me. Also I am very busy. Thanks.

  • @jhandalubana6399
    @jhandalubana6399 9 หลายเดือนก่อน

    Great work Sir. A question! can we run like larger Ac servo like 2kw with this ?

    • @robojax
      @robojax  9 หลายเดือนก่อน

      This is DC servo. Send me the AC servo model or product page I will look at it to see if it works.

  • @Adamst97
    @Adamst97 3 ปีที่แล้ว

    Hi, I am using 2 servo with 2 potentiometers. May I know which part of the coding that needs to be changed so I can display both angles on the lcd.

    • @robojax
      @robojax  3 ปีที่แล้ว

      Hi, Please see this video th-cam.com/video/_uz7YcOzvjU/w-d-xo.html to learn how to use to servo and two pot. which you can learn to use it for as many as you like. the LCD should be simple to learn after than. Good luck. Always search my channel. you will be surprise. I just started publishing my $200 Udemy course for free on TH-cam Here is $200 Arduino course for free Arduino Step by Step Course (over 100 lectures) Starts here robojax.com/L/?id=338

  • @hokuto2552
    @hokuto2552 3 ปีที่แล้ว

    Hello, I tried to use two SPI modules "RFID-522" and "MicroSD Card Adapter" on the "Arduino" at the same time, but they didn't work properly, so I used two sets of "RFID- RFID-" on the same "Arduino" 522" according to other articles. Still unable to execute, would you like to ask if the teacher knows the reason?

    • @robojax
      @robojax  3 ปีที่แล้ว

      Hello, I have not worked on RFID-522 yet. it needs full video to be explained. God willing, I will make video in the future on that.

  • @harisharjun5310
    @harisharjun5310 2 ปีที่แล้ว

    Sir please upload a video of making led display PWM generator with 8channel output sir please

    • @robojax
      @robojax  2 ปีที่แล้ว

      Never hear of it

  • @imazuddinfurqaan3379
    @imazuddinfurqaan3379 5 หลายเดือนก่อน

    Hi, I am not able to upload the I2cScanner code, it's showing that it is having error in compiling with board Arduino Uno. Can you please help me with this

    • @robojax
      @robojax  5 หลายเดือนก่อน

      Hi, perhaps it is broken when you copied it. try it from Files->Examples->Wire->I2c Cannaer

  • @sanazafar4500
    @sanazafar4500 3 ปีที่แล้ว +1

    Can you show how to make a ultrasonic sensor alarm please. Also can you show how to add 2 buttons to increase and decrease the distance for the buzzer to be activated.
    Thx

    • @sanazafar4500
      @sanazafar4500 3 ปีที่แล้ว

      I subscribed to you now, since ur videos help me sooo much

    • @robojax
      @robojax  3 ปีที่แล้ว

      Than you. Interesting project. I've just put it on my "to do list". Once I am done with current projects in hand, God willing I will make this video.

    • @sanazafar4500
      @sanazafar4500 3 ปีที่แล้ว

      @@robojax Thanks a lot!

  • @suvranshupattanayak6786
    @suvranshupattanayak6786 3 ปีที่แล้ว

    Sir what changes I need to perform if I have a requirement of complete 360 degree rotation.

    • @robojax
      @robojax  3 ปีที่แล้ว +1

      360 or continuous is not a real servo. it is just for fun. if you need full rotation then get stepper motor or use DC motor with encoder. here are my videos on continuous servo th-cam.com/users/robojaxTVsearch?query=360

  • @vengug7303
    @vengug7303 3 ปีที่แล้ว

    Thank you❤
    Please make arduino based setting menu system please consider my request

    • @robojax
      @robojax  3 ปีที่แล้ว

      you are welcome. I already have it on my list and have worked a little. God willing, I will make video when time permits.

    • @vengug7303
      @vengug7303 3 ปีที่แล้ว

      @@robojax Thanks sir if possible please share the link Again thanks for your reply

  • @cagrcagr567
    @cagrcagr567 2 ปีที่แล้ว

    hello how are you I need your help. I am watching with your appreciation of the videos. I want to light the combi boiler according to the outside air sensor. Example When the temperature is -5 outside, the boiler should burn at 40 degrees and when it is -10 degrees, it should burn at 50 degrees. I need the code for this project. I would appreciate your help. Thank you

    • @robojax
      @robojax  2 ปีที่แล้ว

      Hello, you need a full project. Either learn arduino so you can do it. Here my course which teaches you everything for freeArduino Step by Step Course (over 100 video lectures) Starts here robojax.com/L/?id=338 or pay someone to write to you may be from here www.upwork.com/

  • @alisedighia
    @alisedighia 3 ปีที่แล้ว

    خیلی ممنون از ویدیو های خوبتون
    من و پسرم خیلی کارهای شما را دوست داریم

    • @robojax
      @robojax  3 ปีที่แล้ว

      خواهش میکنم. خوشحالم که شما و پسرتان از کارهایم خوشتان میاید. برای شما و پسر تان آرزوی صحت و عافیت داریم. در امان الله باشید.

    • @robojax
      @robojax  11 หลายเดือนก่อน

      سلام علیکم. مجرا (کانال) فارسی علم و فن را راه اندازی کردم: لطفا به دوستان تان خبردهید و حمایتم کنید.
      www.youtube.com/@ilmofan

  • @harisharjun5310
    @harisharjun5310 2 ปีที่แล้ว

    Sir please upload controlling 16servos with LED display sir

    • @robojax
      @robojax  2 ปีที่แล้ว

      What LED display?

  • @willemhoubraken8758
    @willemhoubraken8758 7 หลายเดือนก่อน

    Hello,
    I'm using your code but I get the following error message at the line "lcd.begin()":
    "no matching function for call to 'LiquidCrystal_I2C::begin()".
    It looks like the library is not working correctly.
    Can you check the code again please?

    • @robojax
      @robojax  7 หลายเดือนก่อน

      you made me watch the video. I have explained it. you've skipped the video. Please watch.

    • @willemhoubraken8758
      @willemhoubraken8758 7 หลายเดือนก่อน

      @@robojax
      I did and I changed "lcd.begin()" for "lcd.init()" and it is working correctly now

  • @RoMecha_lb
    @RoMecha_lb 3 ปีที่แล้ว

    👏👏👏👏

  • @ayaanvlogs4
    @ayaanvlogs4 3 ปีที่แล้ว

    Sir
    I am a mechatronic student and i have to connect a potentiometer to the master module and a lcd to the slave module. When we vary the potentiometer the value should be displayed on the lcd. Using a bluetooth module hc-05.
    How should i proceed.
    Kindly guide me.
    Thank you.

    • @robojax
      @robojax  3 ปีที่แล้ว

      wow. that is 3 or 4 project in 1. can't be explained with text. it need very long video and may be 10 to 20 hours of work if never used.

    • @abdulshaikh9947
      @abdulshaikh9947 3 ปีที่แล้ว

      @@robojax Now, what to do sir?
      Can't be done?

    • @robojax
      @robojax  3 ปีที่แล้ว

      brake it down into 4 projects. solve them one by one.

    • @ayaanvlogs4
      @ayaanvlogs4 3 ปีที่แล้ว

      @@robojaxI have solved them one by one but cant assemble the code altogether.
      Can you send me the code and circuit diagram?
      I will make it and underatand myself.

    • @robojax
      @robojax  3 ปีที่แล้ว

      LOL. which code? it is 4 project. I have videos. you search, find them, watch the video, get the code and then go to the next one. may be you watch 5 to 10 videos until you find the right code. once you learned, then you combine them. good luck

  • @weerobot
    @weerobot 3 ปีที่แล้ว

    Robojax looking at Robojax videos....I thought the Matrix was Broken...

    • @robojax
      @robojax  3 ปีที่แล้ว +1

      LOL. I have no idea what this is. Matrix as linear Algebra or matrix movie.

    • @weerobot
      @weerobot 3 ปีที่แล้ว

      @@robojax The Movie..lol

  • @SONUKOL1
    @SONUKOL1 3 ปีที่แล้ว

    Hello sir close loop potentiometer DC motor control please 🙏🙏

    • @robojax
      @robojax  3 ปีที่แล้ว

      hello, this video is about servo motor. but what will the closed loop do? unless you know the rate of rotation or RPM, closed loop will not work. so you use pot. to change the speed and monitor the rpm and if it deviates from certain value, the feedback compensates and corrects the RPM. you will use encoder on the motor to read the RPM.

    • @SONUKOL1
      @SONUKOL1 3 ปีที่แล้ว

      @@robojax thank you sir🙂

    • @robojax
      @robojax  3 ปีที่แล้ว

      you are very welcome. Stay safe.

  • @technical_others
    @technical_others 3 ปีที่แล้ว

    hi
    sir i am irfan from pakistan
    please you can help to me about 1mini circuit
    i want make the circuit of sensor proximity analog distance (xm30-3015pmu) it has a function
    we have a sensor distance 15mm from metal it give dc10v ...14mm=9v....13mm=8v...12mm=7v depending on the metal 0-10v vari with distance

    • @robojax
      @robojax  3 ปีที่แล้ว

      Hi, you posted comment under wrong video. I have videos related to proximity sensor here th-cam.com/users/RobojaxTVsearch?query=proximity and if you watch, you will learn. do not skip if you want to learn.

  • @onlinemoneyearningreferral4676
    @onlinemoneyearningreferral4676 2 ปีที่แล้ว

    Esp32 board how to control 2 servo and 2 potanmeter please code send me

    • @robojax
      @robojax  2 ปีที่แล้ว

      See my comment in reply to your other comment.

  • @sienehaq7423
    @sienehaq7423 ปีที่แล้ว

    Can you do this code in cube ide

    • @robojax
      @robojax  ปีที่แล้ว

      Never heard of it . Try it.

    • @sienehaq7423
      @sienehaq7423 ปีที่แล้ว

      @@robojax it’s a similar to arduino but different . Can you help me
      Can I get your email address or I can give you mine so we can talk about it

  • @michaelzajac5284
    @michaelzajac5284 3 ปีที่แล้ว

    Please you show us how to XOD.

    • @robojax
      @robojax  3 ปีที่แล้ว +1

      Never heard XOD before.

    • @michaelzajac5284
      @michaelzajac5284 3 ปีที่แล้ว

      @@robojax
      Forgive me, I'm surprised you never hear that. Let me show you.
      xod.io/

    • @robojax
      @robojax  3 ปีที่แล้ว +1

      this is Arduino. except you have an interface that makes the code easy. it seems interesting. But my videos mostly watched by school and hobbyist who want to learn. whey want to know how code work. I will look at it. Thanks.

    • @michaelzajac5284
      @michaelzajac5284 3 ปีที่แล้ว

      @@robojax
      I watch at XOD Tutorials by TH-cam, suddenly understand how to that. It's fascinating.

    • @robojax
      @robojax  3 ปีที่แล้ว

      there are tones of online tools for Arduino indeed.

  • @eigresstv
    @eigresstv ปีที่แล้ว

    sir where is the zip file? thank you

    • @robojax
      @robojax  ปีที่แล้ว

      In description under the Cicero or go directly to Robojax.com