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
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
It helped me with my project
Thanks for this video 🙂
Thanks for watching video. Please sbscibe channel for more interesting projects. Thanks..
@@crazzyelectronics yes,subscribed 🙂
Thanks bro 😊😊👍👍
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.
Thanks for watching video. Please like n subscib channel for more interesting projects. Thanks 😊😊
Worked.Thanks alot.My first project. Subcribed
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.
Holy mama this is so freaking useful!!!Saved my life and subscribed!!!Thank u for sharing!!!
Thanks for watching video. 😊😊
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
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.
very useful, thanks bro ... it's so simple but tell me how the sensor and servo work together. Nice!
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..
ขอบคุณครับ
Thanks for watching video 😊😊
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?
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.
@@crazzyelectronics thanks 🙏
What a nice Video 😱 Can I ask what version of Arduino did you use and what libraries did you install to function it well?
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.
Thank you the sharing! Amazing,and usefull
Thanks for watching videos. Please like n subscib channel for more interesting projects. Thanks..
Got it 😁
Thanks 😊😊
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
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.
@@crazzyelectronics Hi man thanks for your reply. Could i Private message you to ask a few questions ?
@@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?
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
I will definitely try .. Thanks 😊😊
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?
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.
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
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.
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..
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
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
Thank you..
Merhaba iki ir engel sensörü kullanarak nasıl yapabilirim kodda neleri değiştirmeliyim
i want to control 2 motors and 1 ir sensor so which type of arduino i can use?
very nice
Thanks for watching video. Please like and subscribe channel for more interesting projects. Thanks
where's connection diagram
wowwwow
Thanks for watching video..
Please add the link to schematic circuit diagram
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 ^^
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.
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?
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..
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.
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.
@@crazzyelectronics Thank You for the replay back very helpful. I appreciate it.
@@crazzyelectronics Thats exactly what I was thinking Thank you I'll assign different pins for the 2nd code.
Thanks 🙏🙏😊😊
nice
Thanks 😊😊
hi! what if i wanna adding 1 servo and 1 infra red?
Why is the sensor not working? Do you have a way to check?
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.. 😊😊
How to control two servo motor and ir sensor
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.
Good video, how you got this many views? I am Also uploading Arduino Project videos with explanation.
Bro can I use arduino nano instead of uno
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 😊😊
Where does he connect the ir sensors white wire to?
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.
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 😊😊
@@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.
is it possible for u to do this but with python codes ?
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 😊😊
i did not found connection diagram
Terima kasih semoga kamu masuk surga karena telah menolong tugas saya
Keep and take out hand totol out.
can you make a video that inductive proximity sensor controlling a servo motor?
Yes, I will make the video very soon. Thanks for watching video. Please like share n subscibe channel for more interesting projects. Thanks 😊😊
where can i get the codes for all your projrcts
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
need code - can not read in video - link to code ?????
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.
Code doesn't work :) Various errors appear, this is unreliable
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 😊😊
Can you do this on an Eleego uno r3 because your using a uno r3 smd board?
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 😊😊
Hey is it possible to use to sensors to run one servo TIA
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 😊😊
Can I make a mousetrap using this ir sensor
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..,,😊😊
Where is the diagram.
I used and connected it correctly, but it dosn’t react at all
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.
Bro code kahaa milegaa pls bataa do
Thanks for watching video. Code link is given in the description.. Please like n subscib channel for more interesting projects.. thanks ☺️☺️
Hi! It's such a good and insightful video! Is it possible to change the board into Wemos D1 R1? Thanks!
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..
thanks for video but , code is not working, update your link of code , thanks
Thanks for watching video. Yes I will update the link very soon. Please like and subscribe channel for more interesting projects.. Thanks😊😊
@@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
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 👍👍👍
@@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....
Sir can u pls provide the code for this
Thanks for watching video. Code link is given in description. hope u like future videos also.
please can you say how to connect rain sensor+aurdino UNO+Servo motor for closing and opening roof
Very soon I will make a video on this topic. Thanks for watching video.
I have that idea
A
@@crazzyelectronics is pkk
Plz send the circuit diagram
Thanks for watching video. I will provide you the circuit diagram very soon. Please like and subscribe channel for more interesting projects.. Thanks
codeing batao plss
code already written in video or give me your email id, I will mail code to you.
The code does not work
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.
There are 7 of {How that is. The number should be even and be different in directions
Connect the ir sensor module and servo motor to correct pin numbers of arduino uno..
devre şeması neredee aloo
bro code pls urgent
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..
Ok o.j. Fiji k kiwI
Can you give me a code to not thank you
Code is given in description. Thanks for watching 😊😊.
Code is given in the description. Thanks for watching video.