طريقة تحويل الكاميرا الثابتة الى كاميرا متحركة بواسطة Arduino

علي هادي علي
6 Dec 201407:09

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

00:00

🛠️ 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.

05:03

🔌 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

A camera is a device used to capture images or video. In the video's context, it refers to a stationary camera that is being converted into a movable one. The script discusses the process of turning a basic camera into a camera that can move in different directions, which is central to the video's theme of DIY (Do It Yourself) electronics.

💡Servo Motors

Servo motors are a type of motor that allows for precise control of movement. The script mentions using two servo motors to enable the camera to move horizontally and vertically. These motors are essential for the conversion process described in the video, as they provide the mechanical movement for the camera.

💡Arduino

Arduino is an open-source electronics platform based on easy-to-use hardware and software. The script refers to using an Arduino board to program the servo motors, which is a key component in the project as it controls the movement of the camera.

💡Degrees of Movement

The degrees of movement refer to the range of motion that the servo motors can achieve. The script specifies using servo motors with 180-degree movement capabilities, which is important for understanding the camera's potential range of motion in the project.

💡Circuit Board

A circuit board, or PCB (Printed Circuit Board), is used to mechanically support and electrically connect electronic components. In the script, the Arduino board is mentioned as the circuit board that the servo motors are connected to, indicating its role in the electronic circuit of the project.

💡Wires

Wires are used to connect different components in an electronic circuit. The script describes the use of wires to connect the servo motors to the Arduino board, which is a fundamental step in setting up the camera's movement mechanism.

💡Programming

Programming refers to the process of writing code to control the behavior of a device. The script mentions transferring code to the Arduino board to operate the servo motors, which is a crucial step in giving the camera its movable functionality.

💡DIY (Do It Yourself)

DIY is a term used to describe projects where individuals create or modify something without the assistance of professionals. The video's theme revolves around the DIY conversion of a stationary camera into a movable one, showcasing a hands-on approach to electronics.

💡Camera Mount

A camera mount is a device or fixture that holds a camera in place and allows for adjustments. The script discusses the installation of the camera and servo motors, which involves creating or using a mount to position the camera for its new movable capabilities.

💡Power Source

A power source provides the necessary energy to operate electronic devices. The script mentions a 5-volt power source for the Arduino board, which is essential for understanding how the camera's movement system is powered.

💡Pins

Pins on an Arduino board are used to connect external devices or components. The script details connecting the servo motors to specific pins on the Arduino board, such as pin 5 and pin 6, which is a key part of the setup process for the camera's movement.

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

play00:00

[موسيقى]

play00:17

السلام عليكم ورحمه الله تحيه طيبه لكل من

play00:19

يتابعني وياكم علي هادي علي اليوم راح

play00:22

اوضح طريقه تحويل الكاميرا الثابته الى

play00:24

كاميرا متحركه فمثلا تكون عندك كاميرا لاب

play00:27

توب عاديه او كاميرا مراقبه ثابته ممكن

play00:30

تحولها الى كاميرا متحركه في جميع

play00:32

الاتجاهات طبعا راح تحتاج الى مجموعه من

play00:34

الادوات وراح تكون البرمجه باستخدام

play00:37

الاردوينو احتاج الى اثنين محركات سيرفو

play00:40

طبعا محركات السيرفو موجوده باشكال وانواع

play00:43

مختلفه قسم من عندها تكون حركتها 90 درجه

play00:47

والقسم الاخر 180 و360 درجه اللي راح

play00:51

استخدمهم بهذا الفيديو رقمهم 900

play00:54

و96 وهذا المحرك يتحرك 180 درجه ايضا راح

play01:00

احتاج الى اي بورد ار دونو متوفر عندك

play01:03

واحتاج الى اداه تحكم استخدم هذه الاداه

play01:06

اقدر من خلالها اتحكم بمحركين نوع

play01:10

سيرفو واحتاج الى مجموعه من اسلاك التوصيل

play01:14

طريقه التصميم او طريقه ترتيبك للكاميرا

play01:17

المتحركه راح يكون الامر راجع لك اول نقطه

play01:20

راح اوضح طريقه الربط طبعا نقوم بربط

play01:23

محركات السيرفو على بورد الاردوينو واداه

play01:25

التحكم ايضا وبعد ما انتهي من الربط راح

play01:28

انتقل الى اللاب توب حتى انقل كود البرمجه

play01:31

واشغل هذه المحركات راح استخدم هذه

play01:34

القاعده تم تركيبها بشكل

play01:37

اعتيادي يتم تثبيت محرك السيرفو الاول

play01:41

بهذه

play01:43

الطريقه المحرك هذا راح يحرك الكاميرا من

play01:47

جهه اليمين ومن جهه

play01:50

اليسار ويتم تركيب المحرك

play01:54

الاخر بهذا الشكل حتى يحرك الكاميرا الى

play01:58

الاعلى والاسفل وهنا اقدر اثبت الكاميرا

play02:01

ومثل ما نعرف انه السيرفو موجود بانواع

play02:04

واشكال مختلفه وقدرات مختلفه حسب نوع

play02:07

الكاميرا اللي عندك فراح استخدم هذه

play02:10

الكاميرا بشكل ابتدائي اربط الكاميرا بهذا

play02:14

المكان فراح اقوم بتثبيت الكاميرا ومحركات

play02:18

السيرفو بهذا الشكل بعدها اربط محركات

play02:22

السيرفو على بورد الار دونو وانقل الكود

play02:25

الخاص بالبرمجه طبعا تركيب محركات السيرفو

play02:28

او طريقه تركيب الكاميرا تعتمد عليك او

play02:30

حسب الحاجه اللي تشوفها انت والكاميرا

play02:33

المناسبه طبعا تم تركيبهم بهذا الشكل عندي

play02:36

هذا محرك السيرف الاول اللي يتحرك من جهه

play02:40

اليمين واليسار ومحرك السيرفو الثاني اللي

play02:44

يتحرك من الاعلى الى الاسفل اوصل محركات

play02:47

السيرفو واداه التحكم على بورد الاردوينو

play02:50

عندي هذا بورد الاردوينو بالنسبه لمحرك

play02:53

السيرفو يتكون من ثلاث اسلاك رئيسيه السلك

play02:56

الاول للاشاره السلك الثاني الموجب السلك

play03:01

الثالث السالب غذي هذا البورد بمصدر

play03:04

فولتيه وهو

play03:07

خمسه فعندي هذا 5

play03:14

فولت

play03:16

والسالب والخريطه الخاصه بهذا الربط

play03:20

موجوده اسفل وصف

play03:26

الفيديو عندي هذا السيرف الاول

play03:32

الاشاره الاولى السلك الخاص بالاشاره راح

play03:35

اوصله بمنفذ رقم

play03:38

5 والقطب

play03:42

الموجب وهذا عندي

play03:50

السالب السيرفو الثاني ايضا نفس

play03:54

الحاله السلك الخاص بالاشاره اوصله بمنفذ

play03:58

رقم

play04:04

س وهذا

play04:07

الموجب

play04:09

والسالب انتهيت من ربط السيرفو هسه اوصل

play04:13

اداه التحكم اللي من خلال اقدر اتحكم

play04:16

باثنين محركات سيرفو طبعا هذه الاداه

play04:19

تتكون من خمس منافذ اللي احتاجهم اني اربع

play04:24

منافذ الاول هو السالب اللي بعده الموجب

play04:30

وال بعده الفي ار اللي يتحرك من جهه

play04:35

اليمين او اليسار وايضا الفي ار الرابع

play04:38

اللي يتحرك للاعلى

play04:40

والاسفل السلك الاول هو

play04:45

السالب والسلك الثاني

play04:50

الموجب والسلك الثالث اوصلهم بجهه

play04:55

الانالوج

play04:57

باي 0 او اي 1 راح اوصله باي 1 والسلك

play05:02

الاخر

play05:03

اوصله اي 2 مثلا او اي 1 اوصل ايوان هه

play05:09

وصلت محركات السيرفو واداه التحكم على

play05:12

بورد الاردوينو عندي هذا السيرفو الاول تم

play05:15

توصيله على البورد بمنفذ رقم 5 السيرفو

play05:20

منفذ رقم 6 ومن هذا البورد اقدرت انه

play05:24

اغذيه بمصدر فولتيه وهو 5 فولت عندي هذا

play05:27

الموجب وهذا السالب

play05:29

اداه التحكم ايضا وصلتها بعد ان انتهيت من

play05:32

هذا الربط راح اوصل بورد الاردوينو مع

play05:36

الكمبيوتر حتى انقل كود البرمجه الى بورت

play05:40

الاردوينو طبعا انا استخدمت اثنين سيرفو

play05:43

فعندي هذا اسم السيرفو الاول وهذا اسم

play05:45

السيرفو الثاني وعرفت كل حركه لكل سيرفو

play05:49

اتجاه الاول مثلا من اليمين الى اليسار

play05:52

كان في منفذ اي 0 والاتجاه الاخر اي 1

play05:58

محركات سفو الاول منفذ رقم خمسه والثاني

play06:03

منفذ رقم

play06:04

6ه وعندي هذه الحركه الخاصه بكل سيرفو من

play06:09

واحد الى 180 السيرفو مثل ما ذكرت استخدمت

play06:13

محركات سيرفو 180 درجه فاكتب 180 اذا

play06:17

استخدمت محركات سيرفو 90 اكتب 90 او 360

play06:21

طبعا هذا الكود موجود رابط تحميله اسفل

play06:23

وصف الفيديو راح اقوم بارسال الكود الى

play06:26

بورد الاردوينو وانتهيت من نقل الكود من

play06:28

الكمبيوتر الى بورد الاردوينو وهذه

play06:41

الحركه وبنهايه هذا الفيديو ان شاء الله

play06:44

يكون واضح للجميع وضحت بطريقه تحويل

play06:47

الكاميرا الثابته الى كاميرا متحركه

play06:50

الخريطه الخاصه بطريقه الربط وطريقه توصيل

play06:53

محركات السيرفو وايضا الكود الخاص

play06:56

بالبرمجه موجود اسفل وصف الفيديو اذا كان

play07:00

عندكم اي سؤال او استفسار بامكانكم

play07:02

مراسلتي نهايه كلامي تقبلوا تحياتي

play07:05

والسلام عليكم ورحمه الله

Rate This

5.0 / 5 (0 votes)

الوسوم ذات الصلة
Camera ConversionArduino ControlServo MotorsDIY ProjectTech TutorialCamera Movement180-Degree MotionDIY CameraMotion ControlArduino Programming
هل تحتاج إلى تلخيص باللغة الإنجليزية؟