How to Control Servo Motor and IR sensor Module Using Arduino Uno R3 || Servo Motor || IR Sensor ||

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024
  • Hello friends, in this video you will see how to control servo motor and IR sensor module using Arduino Uno R3. Do it yourself Project. Fully step by step guide with code. You can use servo motor and IR sensor in many project such as obstacle avoiding robot. This video is very helpful to Arduino enthusiast.
    This video is for educational purpose only.
    Please Like, Share and Subscribe our youtube channel.
    #irsensorproject
    #irsensor
    #servomotor
    #irsensorwithservomotor
    Website for buying electronics items:
    www.crazzyelectronics.com
    Topic Covered :
    control ir sensor using arduino,
    ir sensor use,
    servo motor,
    ir sensor,
    sensor projects,
    ir sensor with servo motor arduino
    how to control servo motor with arduino uno,
    how to use a ir sensor with arduino,
    How to use a IR sensor with arduino?,
    How to use IR sensor with arduino?,
    Using of IR sensor with Arduino,
    Using of IR sensor with full code,
    control servo motor using arduino,
    servo motor control with arduino,
    Arduino UNO,
    automatic sanitizer dispenser,
    controlling a servo with arduino,
    Arduino with IR sensor,
    Components Buy Link :
    1. Arduino Uno R3
    www.crazzyelectronics.com
    2. TowerPro SG 90 Micro Servo Motor
    www.crazzyelectronics.com
    3. IR sensor module
    www.crazzyelectronics.com
    4. Soldron 25 Watt Soldering Iron
    www.crazzyelectronics.com
    5. Solder Wire 50 Grams
    www.crazzyelectronics.com
    Code Link :
    drive.google.c...
    Products I Used :
    Camera -
    Glue Gun-
    Tripod-
    Laptop-
    --------------------------Crazzy Electronics------------------------------------------------
    Subscribe : / @crazzyelectronics
    Thanks for watching.
    My other Popular Videos :
    1. 4440 IC Audio Amplifier with Bluetooth Module Home Made || 19 Watts Powerful Output || 100% Working
    • Powerful Amplifier usi...
    2. How to Make Bluetooth Home Automation at Home || Step by Step Guide with Code & Mobile App ||
    • Bluetooth Based Home A...
    3. How to Make Relay Module at Home || 4-Channel Relay Module Homemade || DIY project ||
    • How to Make Relay Modu...
    4.HOW TO MAKE AUTOMATIC HAND WASH DISPENSER AT HOME || AUTOMATIC SANITIZER DISPENSER || SOAP DISPENSER
    • How to Make Automatic ...
    5. How to Control Servo Motor and IR sensor Module Using Arduino Uno R3 || Servo Motor || IR Sensor ||
    • How to Control Servo M...
    6. GETTING STARTED WITH NODEMCU AND BLYNK APP TO TURN ON & OFF LED's || NodeMCU IoT Project
    • Getting Started with N...
    7. HOW TO MAKE SUBMERSIBLE WATER PUMP || HOMEMADE SUBMERSIBLE WATER PUMP || COOLER PUMP || • How to Make Submersibl...
    8. How to Make Motor Speed Controller Easily at Home || Do it Youself Project ||
    • How to Make Motor Spee...
    9. LM386 AUDIO AMPLIFIER || Step by Step Guide|| Home made LM386 Amplifier ||
    • LM386 Audio Amplifier ...
    10. How to Make 12V Battery Charger Easily at Home | Step by Step Guide | Make 12V 3Ah DC supply
    • How to Make 12V Batter...
    11. How to make Soldering Helping Hand Tool || Third Hand Tool ||थर्ड हैंड |हेल्पिंग हैंड टूल कैसे बनाये
    • How to make Soldering ...
    Music Credits :
    Music: Tobu & Itro - Sunburst
    / tobuofficial
    / officialitro
    Released by NCS / nocopyrightsounds

Комментарии • 126

  • @egrabhishek
    @egrabhishek 3 года назад +3

    Thanks for making this video,I given my son a project ,which has 2 servo motors ,2 ir sensor,and esp32, which is like arduino uno,so this video will help me son

  • @TechsScience
    @TechsScience 3 года назад +1

    It helped me with my project
    Thanks for this video 🙂

    • @crazzyelectronics
      @crazzyelectronics  3 года назад +1

      Thanks for watching video. Please sbscibe channel for more interesting projects. Thanks..

    • @TechsScience
      @TechsScience 3 года назад

      @@crazzyelectronics yes,subscribed 🙂

    • @crazzyelectronics
      @crazzyelectronics  3 года назад

      Thanks bro 😊😊👍👍

  • @uneektyreek
    @uneektyreek 2 года назад

    THANK YOU SOOOOOOOOO MUCH for this. The code is accessible, you have a clear connection diagram. I found other tutorials that do not have the code. You have saved my life with this. I am going to try this with a micro board. Thanks again.

    • @crazzyelectronics
      @crazzyelectronics  2 года назад

      Thanks for watching video. Please like n subscib channel for more interesting projects. Thanks 😊😊

  • @mayureshchvn
    @mayureshchvn 4 года назад +2

    Worked.Thanks alot.My first project. Subcribed

    • @crazzyelectronics
      @crazzyelectronics  4 года назад

      Thank you. Using this Project you can make automatic hand wash dispenser and many more. You can view my another video for automatic hand wash dispenser.

  • @zhenglemon8732
    @zhenglemon8732 3 года назад

    Holy mama this is so freaking useful!!!Saved my life and subscribed!!!Thank u for sharing!!!

  • @thaskarthaskaran1425
    @thaskarthaskaran1425 4 года назад +2

    The code is perfect but without the input coming also servo turning can u tell why how to pull that.
    And actually I have not connected sensor instead I have using a pin in arduino and 5v from arduin

    • @crazzyelectronics
      @crazzyelectronics  4 года назад +2

      The servo motor rotates to 180 degree initially as we provide power supply to it. it's normal.. Don't worry. Just make all the connections with uno board and Ir sensor module and now turn on the power supply.. Now u can see the servo rotates when ir sensor detect any obstacle in front of it. And also note ir sensor will not work in sunlight or uv light. Hope ur project will run now. Thanks for watching video.

  • @a.sanusinazareth9213
    @a.sanusinazareth9213 3 года назад

    very useful, thanks bro ... it's so simple but tell me how the sensor and servo work together. Nice!

    • @crazzyelectronics
      @crazzyelectronics  3 года назад

      Thanks for watching video. Servo motor will get the signal from the sensor and it operates. We can use it in many applications. Please subcib channel for more interesting projects. Thanks..

  • @ptcomfamilychannel9907
    @ptcomfamilychannel9907 2 года назад

    ขอบคุณครับ

  • @mastersullivan
    @mastersullivan Год назад +1

    Hi. Is it possible to add a delay on the servo so it can move like 3-5 seconds later instead of immediately after you pull your fingers away?

    • @crazzyelectronics
      @crazzyelectronics  Год назад

      Yes. You can add some delay for servo motor. You have to make change in the code for that. Thanks for watching video. Please like, share n subscibe channel for more interesting projects.

    • @mastersullivan
      @mastersullivan Год назад

      @@crazzyelectronics thanks 🙏

  • @nellynfedejuan1212
    @nellynfedejuan1212 Год назад +1

    What a nice Video 😱 Can I ask what version of Arduino did you use and what libraries did you install to function it well?

    • @genesistorres2630
      @genesistorres2630 Год назад

      It seems he used Arduino IDE 1.8.12 and he put a link to the library code he used in the description of the video :) hope this helped.

  • @topigameplay7892
    @topigameplay7892 2 года назад

    Thank you the sharing! Amazing,and usefull

  • @callumhewitt9756
    @callumhewitt9756 3 года назад +1

    Good morning, how would I do this exact project but for two servo motors and two IR Sensors:
    E.g. 1st Servo motor linked to 1st IR Sensor
    2nd Servo Motor linked to 2nd IR Sensor
    Any help is massively appreciated

    • @crazzyelectronics
      @crazzyelectronics  3 года назад +1

      First, thanks for watching my video. If u want to control 2 ir and 2 servo motor, then connect 2nd ir sensor to another different pins of arduino uno and copy the code. Just you have to change the pin numbers in code for 2nd ir sensor. The code link is given in description. Thanks for watching my video. Hope you will like my future projects also.

    • @callumhewitt9756
      @callumhewitt9756 3 года назад

      @@crazzyelectronics Hi man thanks for your reply. Could i Private message you to ask a few questions ?

    • @callumhewitt9756
      @callumhewitt9756 3 года назад

      @@crazzyelectronics Hi thanks for replying and a great video... Would it be possible to connect an LCD to this project so that it counts and displays the number of cars in/out?

  • @egrabhishek
    @egrabhishek 3 года назад +1

    Hey Crazzy Electronics,pls make a video on how to make a smart parking lot with legos , esp32, ir sensor and servo motor,make this video,so my son will get help

  • @teal94z28
    @teal94z28 2 года назад

    How would I build something like this that would use motion or heat to follow? I am making a R2D2 and was wondering how to get his head to "follow" a person walking by. I guess my question is, what electronics would I need to get to make something like that work?

  • @cadillacescalade5428
    @cadillacescalade5428 2 года назад

    Hello how can I add another survo to this code ? I am new to this...I have it working and it works great just wanna add another servo to it an make it work opposite form one another and make the timing a bit slower.

  • @ferdeas
    @ferdeas Год назад

    Hola. Muy buen proyecto. Ahora pregunto, como se podria hacer q rote en sentido contrario con otro juego de ifrarrojos, y en vez de setear el angulo ennel scketch no podria poner un porenciometro

  • @rbhalla01
    @rbhalla01 3 года назад

    Hello Tremendous Video and it worked great. I have a project that I am using to move a vehicle back and forth and this works great. I put different gear on the motor and was able to make it move but the problem I have is that it doesn't go far enough. I will need the motor to go like 300 degrees. I brought a continuous Servo that goes 360 degrees but it doesn't work. Could you please help me. I will absolutely compensate you for your time. Thank you so much.

    • @crazzyelectronics
      @crazzyelectronics  3 года назад

      Thanks for watching video.. If you have to rotate servo motor in 360 degree then make changes in the arduino code to 360 degree. Thanks..

  • @helmyhanyff8046
    @helmyhanyff8046 3 года назад

    Nice project btw, I have problem I have change the Arduino to ESP8266 and I have changed the Arduino board and the port. No problem during the uploading, during the testing it doesn't work. Need an explanation from you, tq

  • @rdx9105
    @rdx9105 3 года назад +1

    hello Crazzy Electronics,I am Arnav Dixit,I am the son of Abhishek Dixit,I heard that he comented u ,and thanks for making this video,it will help me for my project my father Abhishek Dixit has given

  • @bilmemkimse748
    @bilmemkimse748 2 года назад

    Merhaba iki ir engel sensörü kullanarak nasıl yapabilirim kodda neleri değiştirmeliyim

  • @sahilsoni2154
    @sahilsoni2154 2 года назад

    i want to control 2 motors and 1 ir sensor so which type of arduino i can use?

  • @tutorialspointeee
    @tutorialspointeee 3 года назад

    very nice

    • @crazzyelectronics
      @crazzyelectronics  3 года назад

      Thanks for watching video. Please like and subscribe channel for more interesting projects. Thanks

  • @roboticworldvision7457
    @roboticworldvision7457 3 года назад +1

    where's connection diagram

  • @ifineNick
    @ifineNick 3 года назад

    wowwwow

  • @abhinayamashetti9133
    @abhinayamashetti9133 5 месяцев назад

    Please add the link to schematic circuit diagram

  • @sherwinmisanes9376
    @sherwinmisanes9376 3 года назад

    Good day sir. I tried this project of yours using the exact same code you used, and it was working properly. So tried it with 3 types on sensor and 3 servos connected to each other 1(sensor) for 1(servo). it was working pretty well around a week but then suddenly the servos are malfunctioning as if it was on a loop it keeps on spinning nonstop at first I thought it was the servo that got broken so I replace it with new one but still the same, so I tried on going back to your project again IR sensor + servo and its still the same. the servo keeps on spinning without any signal from the sensor..
    note: when I go back on using your project I use new IR sensor, New servo and even new Arduino board. basically everything is new but it still spinning nonstop.( I also use the exact same codes you use)
    can you help me with this sir? thanks ^^

    • @crazzyelectronics
      @crazzyelectronics  3 года назад

      Thanks for watching video. As you said you have connected 3 sensors with 3 servos to arduino board. But what about the power supply. You have used the same power supply for all or different. Check it. Also make sure all the sensor pins are correctly connected to the arduino board as described in the code. Thanks again. Hope you like my future videos also.

  • @alap4381
    @alap4381 3 года назад

    Wonderful project, I was looking for such project to make a turntable tonearm lift. Can I use Arduino Nano? Can I control the speed of the motor, for that where I need to make change in the code?

    • @crazzyelectronics
      @crazzyelectronics  3 года назад +1

      Thanks for watching video. Yes you can use arduino nano instead of uno and I will let you know where to change the code to control speed of motor soon. Please like and subscribe channel for more interesting projects. Thanks..

  • @cadillacescalade5428
    @cadillacescalade5428 2 года назад

    Ok first of all thanks for making this video for us it's very helpful,
    So in order to use a 2nd servo do I copy an past under the original code an just change the pin Numbers ?
    And can you please tell me how to slow down the servo ? Thank You.

    • @crazzyelectronics
      @crazzyelectronics  2 года назад +1

      Thanks for watching video. To use second servo motor you have to assign different arduino pins and according to that change the code and copy paste first code with new pin numbers. And also the speed of the micro servo motor which I had used in this video can not be changed, because it is a geared motor. You can change the rotation degree of motor by modifying the code.. The number of teeth in the DC geared motor decide the speed of motor. If u want to slow down the speed use another servo motor. The regular DC motor speed can be control by changing the input voltage like 555, 775 DC motor. Thanks for watching the video. Hope you like future videos also.

    • @cadillacescalade5428
      @cadillacescalade5428 2 года назад

      @@crazzyelectronics Thank You for the replay back very helpful. I appreciate it.

    • @cadillacescalade5428
      @cadillacescalade5428 2 года назад

      @@crazzyelectronics Thats exactly what I was thinking Thank you I'll assign different pins for the 2nd code.

    • @crazzyelectronics
      @crazzyelectronics  2 года назад +1

      Thanks 🙏🙏😊😊

  • @doityourselfideas3659
    @doityourselfideas3659 3 года назад

    nice

  • @hafizhoehaqqi4958
    @hafizhoehaqqi4958 2 года назад

    hi! what if i wanna adding 1 servo and 1 infra red?

  • @user-rw5wz8by2x
    @user-rw5wz8by2x 2 года назад

    Why is the sensor not working? Do you have a way to check?

    • @crazzyelectronics
      @crazzyelectronics  2 года назад +1

      Thanks for watching video. Make sure the sunlight is not falling on the ir sensor otherwise ir sensor will not work. If not worked then change the ir sensor module and check all the connections. Thanks. Please like n subscib channel for more interesting projects.. 😊😊

  • @udhissajagadeesh4653
    @udhissajagadeesh4653 3 года назад +1

    How to control two servo motor and ir sensor

    • @crazzyelectronics
      @crazzyelectronics  3 года назад

      Thanks for watching video. Just connect the another ir sensor module to different pins of arduino and copy the code and type the pin number for second ir sensor.

  • @ecit
    @ecit 3 года назад +1

    Good video, how you got this many views? I am Also uploading Arduino Project videos with explanation.

  • @goureshwarpoosa5037
    @goureshwarpoosa5037 2 года назад

    Bro can I use arduino nano instead of uno

    • @crazzyelectronics
      @crazzyelectronics  2 года назад

      Thanks for watching video. Yes you can use nano instead of uno. Only check pin numbers in the code used for making connections. Please like n subscib channel for more interesting projects. Thanks 😊😊

  • @DiegoSilva-dq7vk
    @DiegoSilva-dq7vk 3 года назад

    Where does he connect the ir sensors white wire to?

  • @dollawave7690
    @dollawave7690 2 года назад

    Hey Bro, Can I make some modification into this like the servo motor can be at the same position, say for x seconds after this sensor senses something? Basically, I want to hold the shifted position of servo motor for some time.

    • @crazzyelectronics
      @crazzyelectronics  2 года назад

      Thanks for watching video. You have to make modification in code to stay servo motor at one position for some time. I have not tried this yet. Hope you like the video. Please subscib channel for more interesting projects. Thanks 😊😊

    • @dollawave7690
      @dollawave7690 2 года назад

      @@crazzyelectronics Thanks for responding bro! Can you tell me what line should I add into my code to make it hold for 3 seconds? I would be so grateful to you.

  • @easyremmeb2568
    @easyremmeb2568 3 года назад +1

    is it possible for u to do this but with python codes ?

    • @crazzyelectronics
      @crazzyelectronics  3 года назад

      Thanks for watching video. I had not tried with python but i will try n inform you.. Hope you like my future videos also. Thanks 😊😊

  • @sadigepawan4710
    @sadigepawan4710 2 года назад

    i did not found connection diagram

  • @fadhillabagasherdhianto8581
    @fadhillabagasherdhianto8581 3 года назад

    Terima kasih semoga kamu masuk surga karena telah menolong tugas saya

  • @ashokballatagi1318
    @ashokballatagi1318 3 года назад

    Keep and take out hand totol out.

  • @krizzy1502
    @krizzy1502 2 года назад

    can you make a video that inductive proximity sensor controlling a servo motor?

    • @crazzyelectronics
      @crazzyelectronics  2 года назад

      Yes, I will make the video very soon. Thanks for watching video. Please like share n subscibe channel for more interesting projects. Thanks 😊😊

  • @vinaysunkara1429
    @vinaysunkara1429 2 года назад

    where can i get the codes for all your projrcts

    • @crazzyelectronics
      @crazzyelectronics  2 года назад

      Thanks for watching video.. You will get the code in the description box of video. Please like n subscib channel for more interesting projects.. Thanks

  • @gktools
    @gktools 4 года назад +1

    need code - can not read in video - link to code ?????

    • @crazzyelectronics
      @crazzyelectronics  4 года назад

      very soon I will upload download link in video description...Thanks for watching video and please like n subscribe my channel for more interesting projects.

  • @eyaaaa7483
    @eyaaaa7483 2 года назад

    Code doesn't work :) Various errors appear, this is unreliable

    • @crazzyelectronics
      @crazzyelectronics  2 года назад

      Thanks for watching video. Please make sure code is successfully uploaded to arduino. And make sure all the connection are correct. Also don't use in sunlight ir sensor will not work. Please like share n subscib channel for more interesting projects. Thanks 😊😊

  • @DiegoSilva-dq7vk
    @DiegoSilva-dq7vk 3 года назад

    Can you do this on an Eleego uno r3 because your using a uno r3 smd board?

    • @crazzyelectronics
      @crazzyelectronics  3 года назад

      Thanks for watching video. Yes first I will study the eleego uni r3 board n then informed you. Please like and subscribe channel for more interesting projects. Thanks 😊😊

  • @stchimem
    @stchimem 3 года назад

    Hey is it possible to use to sensors to run one servo TIA

    • @crazzyelectronics
      @crazzyelectronics  3 года назад +1

      I have not tried this yet. Let me check and I will informed you. Thanks for watching video. Please subscib channel for more interesting projects. Thanks 😊😊

  • @fortunedecoder9344
    @fortunedecoder9344 2 года назад

    Can I make a mousetrap using this ir sensor

    • @crazzyelectronics
      @crazzyelectronics  2 года назад

      Yes, you can. But you hav to make proper set up for that and install this ir sensor and motor in exact position. You can modify the degree of rotation of motor by modifying code. Thanks for watching video. Please like n subscib channel for more interesting projects..,,😊😊

  • @sasmitapattnaik2815
    @sasmitapattnaik2815 Год назад

    Where is the diagram.

  • @toti8916
    @toti8916 3 года назад

    I used and connected it correctly, but it dosn’t react at all

    • @crazzyelectronics
      @crazzyelectronics  3 года назад

      Thanks for watching video.. First make sure all the connections are correct with proper power supply. Also make sure ir sensor is working properly. Due to sunlight ir sensor may not work properly. Also make sure power supply is exact 5 v DC. Hope you like my video. Please like n subscribe my channel for more interesting projects.

  • @abip.s1338
    @abip.s1338 3 года назад

    Bro code kahaa milegaa pls bataa do

    • @crazzyelectronics
      @crazzyelectronics  3 года назад +1

      Thanks for watching video. Code link is given in the description.. Please like n subscib channel for more interesting projects.. thanks ☺️☺️

  • @mazayahamdallah8678
    @mazayahamdallah8678 3 года назад

    Hi! It's such a good and insightful video! Is it possible to change the board into Wemos D1 R1? Thanks!

    • @crazzyelectronics
      @crazzyelectronics  3 года назад

      Thanks for watching video. I had not tried this project on wemos board. But I think it will work on Wemos as it has Arduino uno with wifi. Just check all the pin numbers allocated to the motor and sensor in code. Thanks..

  • @paddymush1
    @paddymush1 3 года назад

    thanks for video but , code is not working, update your link of code , thanks

    • @crazzyelectronics
      @crazzyelectronics  3 года назад

      Thanks for watching video. Yes I will update the link very soon. Please like and subscribe channel for more interesting projects.. Thanks😊😊

    • @paddymush1
      @paddymush1 3 года назад

      @@crazzyelectronics yes I subscribe n liked.... Could you send me the code as I'm stuck at a point in my project. Thank you again

    • @crazzyelectronics
      @crazzyelectronics  3 года назад +1

      The code link given in the description is working correctly. Check from your side, may your browser problem.. Anyway thanks for watching video once again 👍👍👍

    • @sherwinmisanes9376
      @sherwinmisanes9376 3 года назад +1

      @@paddymush1 did you find a solution sir/ma'am? I think we're having the same problem.... but it was working pretty well on my project for a week and then its starting to fall apart....

  • @bikesworld7012
    @bikesworld7012 3 года назад

    Sir can u pls provide the code for this

    • @crazzyelectronics
      @crazzyelectronics  3 года назад

      Thanks for watching video. Code link is given in description. hope u like future videos also.

  • @priyam1111
    @priyam1111 4 года назад +2

    please can you say how to connect rain sensor+aurdino UNO+Servo motor for closing and opening roof

  • @aniketshinde409
    @aniketshinde409 3 года назад

    Plz send the circuit diagram

    • @crazzyelectronics
      @crazzyelectronics  3 года назад

      Thanks for watching video. I will provide you the circuit diagram very soon. Please like and subscribe channel for more interesting projects.. Thanks

  • @ishanshrivas7430
    @ishanshrivas7430 4 года назад +1

    codeing batao plss

    • @crazzyelectronics
      @crazzyelectronics  4 года назад

      code already written in video or give me your email id, I will mail code to you.

  • @ibrahimhamid4062
    @ibrahimhamid4062 3 года назад

    The code does not work

    • @crazzyelectronics
      @crazzyelectronics  3 года назад

      Thanks for watching video. First make sure all the connection are made correctly. Program should be uploaded correctly on arduino uno n check power supply. Also make sure sun light is not fallen on the ir sensor. Ir sensor will not work in sun light. Hope u like the video. Please like n subscribe for more interesting projects.

    • @ibrahimhamid4062
      @ibrahimhamid4062 3 года назад

      There are 7 of {How that is. The number should be even and be different in directions

    • @crazzyelectronics
      @crazzyelectronics  3 года назад

      Connect the ir sensor module and servo motor to correct pin numbers of arduino uno..

  • @sametsafak4154
    @sametsafak4154 3 года назад

    devre şeması neredee aloo

  • @Horizontalstabilizer
    @Horizontalstabilizer 4 года назад

    bro code pls urgent

    • @crazzyelectronics
      @crazzyelectronics  4 года назад

      Code is already given in video or send me ur mail id, I will mail code to you..n if you like my video please like n subscribe for more interesting projects..Thanks for watching..

  • @chamilagithangalee3740
    @chamilagithangalee3740 3 года назад

    Ok o.j. Fiji k kiwI

  • @nguyenpham-gz9nc
    @nguyenpham-gz9nc 3 года назад

    Can you give me a code to not thank you

    • @crazzyelectronics
      @crazzyelectronics  3 года назад

      Code is given in description. Thanks for watching 😊😊.

    • @crazzyelectronics
      @crazzyelectronics  3 года назад +1

      Code is given in the description. Thanks for watching video.