طريقة تحويل الكاميرا الثابتة الى كاميرا متحركة بواسطة Arduino
Summary
TLDRThis instructional video script details the process of converting a static camera into a movable one using Arduino. It requires two servo motors, which can vary in type, and a control board. The script explains how to connect the servos to the Arduino board and control them to move the camera in all directions. It also discusses the setup and programming necessary to achieve the desired camera movement. The video includes a link to download the code for the project, ensuring clarity and accessibility for viewers interested in transforming their cameras.
Takeaways
- 😀 The video provides a tutorial on converting a static camera into a movable camera using Arduino.
- 🛠️ It requires two servo motors, which are available in various types and specifications, including 90, 180, and 360-degree movement capabilities.
- 🔧 The specific servo motors used in the video are model number 900 and 96, which have a 180-degree movement range.
- 📦 An Arduino board is needed to control the servo motors, and additional control devices are used to manage the motors.
- 🔌 The tutorial covers the wiring process, including connecting the servo motors to the Arduino board and control devices.
- 📹 The camera is mounted in a way that allows it to move horizontally from right to left and vertically from top to bottom.
- 🔄 The video explains the initial setup of the camera and servo motors, including the basic connections and placements.
- 🔋 The Arduino board is powered by a 5-volt source, and the wiring connections for the servo motors are detailed in the video.
- 💻 The video includes a demonstration of uploading the programming code to the Arduino board to control the servo motors.
- 🔗 Links to download the programming code are provided in the video description for those who wish to replicate the project.
- 🤖 The video concludes with a clear demonstration of the converted movable camera in action, ensuring the instructions are understandable.
Q & A
What is the main topic of the video script?
-The main topic of the video script is about converting a static camera into a movable camera using Arduino and servo motors.
What type of camera can be converted into a movable one according to the script?
-A Labtop, tube camera, or a fixed surveillance camera can be converted into a movable camera as per the script.
What are the servo motors mentioned in the script and what types are used in the video?
-The script mentions two types of servo motors, one with 90-degree movement and another with 180-degree movement. The specific models used in the video are 900 and 96, which have 180-degree movement.
What is needed besides the servo motors to control the movable camera?
-Besides the servo motors, an Arduino board and control devices are needed to manage the movements of the servo motors.
How does the script describe the process of setting up the camera and servo motors?
-The script describes the process by first connecting the servo motors to the Arduino board and control devices, then transferring the code to the computer to operate the motors, and finally installing the camera and servo motors in a specific setup.
What are the different types of servo motors mentioned in the script?
-The script mentions that servo motors come in various shapes, types, and capabilities depending on the camera being used.
How many main wires does the Arduino board for the servo motor consist of?
-The Arduino board for the servo motor consists of three main wires: the signal wire, the positive wire, and the negative wire.
What is the voltage source used for the Arduino board mentioned in the script?
-The voltage source used for the Arduino board mentioned in the script is 5 volts.
How are the servo motors connected to the Arduino board in the script?
-The servo motors are connected to the Arduino board through specific pins, with the signal wire connected to pin 5 for the first servo and pin 6 for the second servo, and the positive and negative wires connected to the power and ground of the board.
What is the purpose of the code mentioned in the script?
-The purpose of the code mentioned in the script is to control the movements of the servo motors, allowing the camera to move in different directions.
How can one access the code for the project described in the script?
-The code for the project can be accessed through a download link provided in the video description.
What is the range of movement for the servo motors used in the video?
-The servo motors used in the video have a range of movement from 180 degrees, as specified in the script.
How does the script suggest one should position the camera and servo motors?
-The script suggests that the first servo motor should be positioned to move the camera from right to left, and the second servo motor should be positioned to move the camera up and down.
Outlines
🛠️ Converting a Static Camera to a Pan-Tilt Camera
This paragraph explains the process of transforming a fixed camera into a pan-tilt camera using Arduino programming and servo motors. The speaker details the tools needed, including two specific servo motors (number 900 and 96) that can move 180 degrees. They also mention the need for an Arduino board and control devices to manage the motors. The paragraph describes the initial setup, including the physical installation of the servo motors and how to connect them to the Arduino board. It also touches on the variety of servo motors available and how the camera's type and needs will influence the setup.
🔌 Wiring and Programming the Pan-Tilt Camera Setup
The second paragraph continues the tutorial by discussing the wiring process of the servo motors to the Arduino board and the control devices. It specifies the use of two servos, named and differentiated by their functions. The paragraph provides a step-by-step guide on connecting the servos to the board using specific pins and power sources, emphasizing the importance of correct wiring for the servos' operation. The speaker also explains the process of transferring the programming code from the computer to the Arduino board, including the use of specific function names for each servo and their respective movements. The paragraph concludes with a reminder that the provided code can be downloaded from a link in the video description and invites any questions or inquiries from the audience.
Mindmap
Keywords
💡Camera
💡Servo Motors
💡Arduino
💡Degrees of Movement
💡Circuit Board
💡Wires
💡Programming
💡DIY (Do It Yourself)
💡Camera Mount
💡Power Source
💡Pins
Highlights
Introduction to converting a static camera to a pan-tilt camera.
Requirement of two servo motors for the conversion.
Explanation of different types of servo motors and their movement degrees.
Use of Arduino board for programming the servo motors.
Description of necessary tools and components for the project.
Step-by-step guide on connecting the servo motors to the Arduino board.
Transferring the code to the Arduino board to control the servo motors.
Customizable design for the camera setup based on user needs.
Detailed explanation of how to mount the servo motors.
Demonstration of how the first servo motor moves the camera from right to left.
Demonstration of how the second servo motor moves the camera up and down.
Information about the variety of servo motors and their capabilities.
Initial setup of connecting the camera to a location.
Instructions on how to assemble the camera with the servo motors.
Connection of servo motors and control devices to the Arduino board.
Detailed wiring instructions for the servo motors.
Use of a 5-volt power source for the Arduino board.
Explanation of the three main wires for the servo motors: signal, positive, and negative.
Assignment of specific pins on the Arduino board for each servo motor.
Transfer of the programming code from the computer to the Arduino board.
Mention of the specific servo motor names and their movements.
Information on how to write the code for the servo motors' range of motion.
Availability of the programming code through a download link.
Encouragement for viewers to ask questions or seek further clarification.
Transcripts
[موسيقى]
السلام عليكم ورحمه الله تحيه طيبه لكل من
يتابعني وياكم علي هادي علي اليوم راح
اوضح طريقه تحويل الكاميرا الثابته الى
كاميرا متحركه فمثلا تكون عندك كاميرا لاب
توب عاديه او كاميرا مراقبه ثابته ممكن
تحولها الى كاميرا متحركه في جميع
الاتجاهات طبعا راح تحتاج الى مجموعه من
الادوات وراح تكون البرمجه باستخدام
الاردوينو احتاج الى اثنين محركات سيرفو
طبعا محركات السيرفو موجوده باشكال وانواع
مختلفه قسم من عندها تكون حركتها 90 درجه
والقسم الاخر 180 و360 درجه اللي راح
استخدمهم بهذا الفيديو رقمهم 900
و96 وهذا المحرك يتحرك 180 درجه ايضا راح
احتاج الى اي بورد ار دونو متوفر عندك
واحتاج الى اداه تحكم استخدم هذه الاداه
اقدر من خلالها اتحكم بمحركين نوع
سيرفو واحتاج الى مجموعه من اسلاك التوصيل
طريقه التصميم او طريقه ترتيبك للكاميرا
المتحركه راح يكون الامر راجع لك اول نقطه
راح اوضح طريقه الربط طبعا نقوم بربط
محركات السيرفو على بورد الاردوينو واداه
التحكم ايضا وبعد ما انتهي من الربط راح
انتقل الى اللاب توب حتى انقل كود البرمجه
واشغل هذه المحركات راح استخدم هذه
القاعده تم تركيبها بشكل
اعتيادي يتم تثبيت محرك السيرفو الاول
بهذه
الطريقه المحرك هذا راح يحرك الكاميرا من
جهه اليمين ومن جهه
اليسار ويتم تركيب المحرك
الاخر بهذا الشكل حتى يحرك الكاميرا الى
الاعلى والاسفل وهنا اقدر اثبت الكاميرا
ومثل ما نعرف انه السيرفو موجود بانواع
واشكال مختلفه وقدرات مختلفه حسب نوع
الكاميرا اللي عندك فراح استخدم هذه
الكاميرا بشكل ابتدائي اربط الكاميرا بهذا
المكان فراح اقوم بتثبيت الكاميرا ومحركات
السيرفو بهذا الشكل بعدها اربط محركات
السيرفو على بورد الار دونو وانقل الكود
الخاص بالبرمجه طبعا تركيب محركات السيرفو
او طريقه تركيب الكاميرا تعتمد عليك او
حسب الحاجه اللي تشوفها انت والكاميرا
المناسبه طبعا تم تركيبهم بهذا الشكل عندي
هذا محرك السيرف الاول اللي يتحرك من جهه
اليمين واليسار ومحرك السيرفو الثاني اللي
يتحرك من الاعلى الى الاسفل اوصل محركات
السيرفو واداه التحكم على بورد الاردوينو
عندي هذا بورد الاردوينو بالنسبه لمحرك
السيرفو يتكون من ثلاث اسلاك رئيسيه السلك
الاول للاشاره السلك الثاني الموجب السلك
الثالث السالب غذي هذا البورد بمصدر
فولتيه وهو
خمسه فعندي هذا 5
فولت
والسالب والخريطه الخاصه بهذا الربط
موجوده اسفل وصف
الفيديو عندي هذا السيرف الاول
الاشاره الاولى السلك الخاص بالاشاره راح
اوصله بمنفذ رقم
5 والقطب
الموجب وهذا عندي
السالب السيرفو الثاني ايضا نفس
الحاله السلك الخاص بالاشاره اوصله بمنفذ
رقم
س وهذا
الموجب
والسالب انتهيت من ربط السيرفو هسه اوصل
اداه التحكم اللي من خلال اقدر اتحكم
باثنين محركات سيرفو طبعا هذه الاداه
تتكون من خمس منافذ اللي احتاجهم اني اربع
منافذ الاول هو السالب اللي بعده الموجب
وال بعده الفي ار اللي يتحرك من جهه
اليمين او اليسار وايضا الفي ار الرابع
اللي يتحرك للاعلى
والاسفل السلك الاول هو
السالب والسلك الثاني
الموجب والسلك الثالث اوصلهم بجهه
الانالوج
باي 0 او اي 1 راح اوصله باي 1 والسلك
الاخر
اوصله اي 2 مثلا او اي 1 اوصل ايوان هه
وصلت محركات السيرفو واداه التحكم على
بورد الاردوينو عندي هذا السيرفو الاول تم
توصيله على البورد بمنفذ رقم 5 السيرفو
منفذ رقم 6 ومن هذا البورد اقدرت انه
اغذيه بمصدر فولتيه وهو 5 فولت عندي هذا
الموجب وهذا السالب
اداه التحكم ايضا وصلتها بعد ان انتهيت من
هذا الربط راح اوصل بورد الاردوينو مع
الكمبيوتر حتى انقل كود البرمجه الى بورت
الاردوينو طبعا انا استخدمت اثنين سيرفو
فعندي هذا اسم السيرفو الاول وهذا اسم
السيرفو الثاني وعرفت كل حركه لكل سيرفو
اتجاه الاول مثلا من اليمين الى اليسار
كان في منفذ اي 0 والاتجاه الاخر اي 1
محركات سفو الاول منفذ رقم خمسه والثاني
منفذ رقم
6ه وعندي هذه الحركه الخاصه بكل سيرفو من
واحد الى 180 السيرفو مثل ما ذكرت استخدمت
محركات سيرفو 180 درجه فاكتب 180 اذا
استخدمت محركات سيرفو 90 اكتب 90 او 360
طبعا هذا الكود موجود رابط تحميله اسفل
وصف الفيديو راح اقوم بارسال الكود الى
بورد الاردوينو وانتهيت من نقل الكود من
الكمبيوتر الى بورد الاردوينو وهذه
الحركه وبنهايه هذا الفيديو ان شاء الله
يكون واضح للجميع وضحت بطريقه تحويل
الكاميرا الثابته الى كاميرا متحركه
الخريطه الخاصه بطريقه الربط وطريقه توصيل
محركات السيرفو وايضا الكود الخاص
بالبرمجه موجود اسفل وصف الفيديو اذا كان
عندكم اي سؤال او استفسار بامكانكم
مراسلتي نهايه كلامي تقبلوا تحياتي
والسلام عليكم ورحمه الله
Voir Plus de Vidéos Connexes
Fire Fighting Robot, Fire Fighting Robotic Car, New Electronics Project #science #shorts
شرح طريقة تحكم step motor من خلال الاردوينو Arduino
COMO AUTOMATIZAR TUDO COM ARDUINO - O guia definitivo
INTEGRATION OF SENSOR AND ACTUATORS WITH ARDUINO-I
Belajar Arduino #3 - Pengenalan Fitur Arduino IDE
ESP32 CAM Face Detection Door Lock System
5.0 / 5 (0 votes)