شرح طريقة تحكم step motor من خلال الاردوينو Arduino

علي هادي علي
6 Feb 201505:26

Summary

TLDRIn this informative tutorial, the presenter introduces the Stepper Motor, a type of motor that differs from conventional motors like DC, Servo, or Arduino motors. The video demonstrates how to connect the Stepper Motor to an Arduino board, using a simple code provided in the video description. The presenter explains the motor's four pins and how to power it with 5 or 12 volts. The tutorial also covers controlling the motor's speed and rotation, with practical examples of its applications. The video concludes with a clear demonstration of the motor's movement and a reminder to check the video description for the code and further questions.

Takeaways

  • 📚 The video is an educational tutorial on how to use a stepper motor, which is different from conventional motors like DC, servo, or stepper motors.
  • 🔧 The stepper motor consists of four ports, which can be powered with a 5V or 12V supply to operate the board or the developer.
  • 🤖 The connection of the stepper motor to the Arduino board is straightforward, as demonstrated in the video with a provided code example.
  • 🔌 The video explains how to connect the motor to the Arduino board using specific pins and a set of cables.
  • 💡 The tutorial includes a step-by-step guide on how to power the motor through the Arduino board and the necessary connections for 5V and 12V supplies.
  • 🛠️ The video mentions that the motor's speed and the number of rotations can be controlled using the provided code.
  • 🔄 The stepper motor can be used in various applications, as shown in the video with an example of its movement.
  • 📝 The script provides a code snippet that viewers can download from a link mentioned in the video description.
  • 🔢 The code allows for customization, such as changing the speed and the number of motor rotations, which is explained in the video.
  • 🔀 The video also discusses the possibility of using a 12V external power source for the motor instead of 5V.
  • 🗣️ The presenter invites viewers to ask questions or seek further clarification if needed and provides a greeting and closing remark.

Q & A

  • What is the main topic of the video?

    -The main topic of the video is explaining how to use a stepper motor, specifically the 'stepper motor,' which is different from other motors like DC, servo, or stepper motors.

  • What are the components of a stepper motor according to the script?

    -A stepper motor consists of four terminals, which are connected to a board or a developer to operate with a voltage of 5 or 12 volts.

  • How is the stepper motor connected to the Arduino board as shown in the video?

    -The stepper motor is connected to the Arduino board using a set of wires. The first terminal is connected to pin 8, the second to pin 9, the third to pin 10, and the fourth to pin 11 on the Arduino board.

  • What is the purpose of connecting the stepper motor to the Arduino board?

    -The purpose is to control the stepper motor's speed, direction, and the number of rotations using the Arduino board and the provided code.

  • Where can the viewers find the code used in the video?

    -The code can be found on the screen during the video and is also available through a link provided in the video description.

  • What is the voltage used to power the stepper motor in the video?

    -The stepper motor is powered with a 5-volt supply, but the video also mentions the possibility of using a 12-volt external power source.

  • How can the speed and number of rotations of the stepper motor be controlled?

    -The speed and number of rotations can be controlled by changing the values in the code that is uploaded to the Arduino board.

  • What is the function of the 'steps' variable mentioned in the script?

    -The 'steps' variable determines the number of steps the stepper motor will take during one complete rotation.

  • What are the potential applications of the stepper motor as hinted in the video?

    -The stepper motor can be used in various applications where precise control of movement is required, as indicated by the demonstration of its movement in the video.

  • How can viewers get help if they have questions or inquiries about the stepper motor?

    -Viewers can contact the presenter with their questions or inquiries, as mentioned at the end of the video.

  • What is the presenter's intention for the next video?

    -The presenter intends to explain the differences between the servo motor, stepper motor, and DC motor in a future video.

Outlines

00:00

🔧 Introduction to the Stepper Motor and Its Basic Setup

This paragraph introduces the topic of stepper motors, explaining how they differ from other motors like DC, servo, or servo motors. The speaker plans to demonstrate the use of a stepper motor in a future video, contrasting it with other motors. The stepper motor is described as having four terminals that can be connected to an Arduino board with a simple code provided on the screen or through a link in the video description. The speaker details the process of connecting the motor to the Arduino board, specifying the pins used for the connection and how to power the motor through the board. The video also mentions the possibility of using different voltages for the motor and how to control its speed and rotation.

05:02

📘 Additional Information on Motor Types and Usage

The second paragraph provides additional information on motor types, specifically stepper motors, and their usage. It mentions that stepper motors, like DC or servo motors, come with a board and a set of wires, and the speaker has previously explained their use in a separate video tutorial. The link to the tutorial is provided, along with the code necessary for the setup. The speaker invites viewers to ask questions or seek clarification if needed, emphasizing the importance of communication and understanding. The paragraph concludes with a respectful greeting and sign-off, wishing peace and mercy upon the viewers.

Mindmap

Keywords

💡Stepper Motor

A stepper motor is a type of brushless DC electric motor that divides a full rotation into a number of equal steps. In the video, the stepper motor is the main focus, and it is distinguished from other motors like DC, servo, or the servo motor. The script mentions connecting the stepper motor to an Arduino board, which is a simple process, and the motor's operation is controlled through a code that is also discussed in the video.

💡Arduino Board

The Arduino board is an open-source electronics platform used for building digital devices and interactive objects that can sense and control the physical world. In the script, the Arduino board is used to connect and control the stepper motor, and the process of connecting the motor to the board is explained in detail, including the specific pins used for the connections.

💡Voltage

Voltage is the electric potential difference between two points. In the context of the video, the stepper motor is operated at 5 volts, and there is a mention of the possibility of using a 12-volt external power source. The voltage is crucial for the stepper motor's operation and is set in the code used to control the motor.

💡Pins

Pins on an Arduino board are the connection points used to interface with various electronic components. The script specifies that the stepper motor is connected to the Arduino board using pins 8, 9, 10, and 11, which are used to control the motor's operation.

💡Code

Code, in this context, refers to the programming script written in a language like C++ that is used to control the Arduino board and, by extension, the stepper motor. The video script includes an explanation of the code used to control the stepper motor, including how to change the motor's speed and the number of rotations.

💡Speed Control

Speed control is the ability to adjust the rate at which the stepper motor rotates. The script mentions controlling the speed of the motor through the code, which is a key aspect of using stepper motors in projects where precise movement is required.

💡Rotation

Rotation refers to the movement of the stepper motor around its axis. The video discusses controlling the number of rotations the motor makes, which is an essential feature for applications that require precise positioning.

💡External Power Source

An external power source is a separate device or supply that provides the necessary power to an electronic component. The script mentions the possibility of using a 12-volt external power source for the stepper motor, which could be used to increase the motor's performance or to power it independently of the Arduino board.

💡Connections

Connections in the context of the video refer to the physical links established between the stepper motor and the Arduino board using wires. The script provides a detailed explanation of how to make these connections, which is essential for the proper functioning of the motor.

💡Motor Driver

A motor driver is an electronic device that drives the motor by varying the voltage or current supplied to it. Although not explicitly mentioned in the script, the concept of a motor driver is implied when discussing the operation of the stepper motor and its connection to the Arduino board.

💡Simplicity

Simplicity in this context refers to the ease with which the stepper motor can be connected and controlled using the Arduino board. The script emphasizes the straightforward nature of the process, making it accessible to a wide audience.

Highlights

Introduction to the Stepper Motor and its distinction from other motors like DC, Servo, and the Arduino motor.

The Stepper Motor is composed of four ports, which can be powered by a 5 or 12-volt supply.

Connection of the Stepper Motor to the Arduino board is straightforward and requires basic wiring.

The code for controlling the Stepper Motor is available on the screen and can be downloaded from a link provided in the video description.

Detailed explanation of how to connect the Stepper Motor to the Arduino board using specific pins.

Demonstration of powering the motor through the Arduino board with a 5-volt supply.

Explanation of the wiring process from the motor's ports to the Arduino board's specific pins.

The ability to control the motor's speed and the number of rotations using the provided code.

The motor's movement can be adjusted and customized through the code.

The potential for the Stepper Motor to be used in various applications is highlighted.

The motor's movement can be fine-tuned by adjusting the code parameters.

The possibility of using a 12-volt external power source for the motor is discussed.

A simple explanation of the code and its functionality is promised for viewers.

The video concludes with a recap of how to use the Stepper Motor effectively and its simplicity compared to traditional motors.

The video provides a link to a schematic and the code in the video description for further reference.

An invitation for viewers to ask questions or seek clarification if needed.

A closing greeting and a reminder of the video's educational purpose.

Transcripts

play00:00

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

play00:03

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

play00:05

اوضح طريقه استخدام الستيب ماطور الاستيب

play00:08

موتور يختلف عن المتورات

play00:10

السابقه مثل الدي سي

play00:13

متور او السيرفو موتور ان شاء الله في

play00:17

فيديو اخر راح اوضح الفرق ما بين السيرفو

play00:19

موتور والستيم موتور والدي سي موتور

play00:23

موضوعنا اللي هذا اليوم راح يكون حول

play00:25

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

play00:28

المتورات السابقه مثل ذكرت في هذا الجزء

play00:31

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

play00:34

الى غايه ال ان 4 ومن هذا الجزء اقدر اغذي

play00:38

البورد او المطور هذا 5 او 12 فولت عمليه

play00:43

ربطه مع بورد الاردوينو جدا بسيطه راح

play00:48

اقوم بتوصيل ماتور الستيب ماتور مع بورد

play00:52

الاردوينو ومثل ما تشاهدون الكود اللي راح

play00:54

اقوم باستخدامه موجود على الشاشه امامنا

play00:56

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

play00:59

اللي موجود اسفل وصف الفيديو حسب ما موجود

play01:03

بالكود راح اوصل هذه المنافذ

play01:08

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

play01:12

الواحد راح اوصله بمنفذ رقم 8 على بورد

play01:16

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

play01:19

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

play01:25

على منفذ رقم 11 من اريد اشغل هذا المطور

play01:28

على 5 فولت هذا هو الخ فولت وهذا ال 12

play01:36

فولت السالب وهذا الموجب وهذا ال 12

play01:39

والجهه الاخرى خمسه فراح اقوم بتوصيل

play01:43

المطور مع بورد الاردوينو

play01:48

استخدم مجموعه من اسلاك

play01:58

التوصيل

play02:06

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

play02:13

8 ورقم ا اوصله مع منفذ رقم

play02:19

ت ورقم لاه اوصله مع منفذ رقم

play02:24

10 ورقم اربعه اوصله مع منفذ رقم 11 طيب

play02:30

اوصل مصدر تغذيه للمطر من خلال بورد

play02:32

الاردوينو

play02:34

فاخذ ال 5

play02:42

فولت هذا

play02:54

الخمسه اوص مع هذا

play02:58

الجزء والطرف

play03:08

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

play03:11

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

play03:14

بنقل كود الاردوينو الى البورد بكل بساطه

play03:19

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

play03:21

بشرح الكود بشكل بسيط عندي في هذا الجزء

play03:25

هنان المنافذ اللي استخدمتها

play03:28

فاقدره المنافذ انا استخدمت منفذ رقم 8 و9

play03:32

و1 و1 اقدر ابدلهم مثلا

play03:36

استخدم 3 4 5 6 او اي منفذ اخر عندي في

play03:42

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

play03:46

الدورات وهذا الجزء كم حركه في الدوره

play03:53

الواحده وراح نلاحظ كيف راح تكون حركه

play03:56

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

play04:00

استخدامات مثل ما تلاحظون هذه

play04:19

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

play04:24

اغيرها واكتبها

play04:28

200

play04:35

ونشوف كيف راح تكون الحركه فمثل ما

play04:37

تلاحظون تغيرت

play04:46

الحركه حاليا انا مستخدم 5 فولت ممكن

play04:49

استخدم 12 فولت من خلال مصدر

play04:52

خارجي طيب وصلت الى نهايه هذا الفيديو ان

play04:55

شاء الله يكون واضح للجميع وضحت ب كيف

play04:57

اقدر استخدم يب ماتور عمليه استخدامه جدا

play05:02

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

play05:05

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

play05:08

بورد ومجموعه من الاسلاك وطريقه استخدامه

play05:13

مثل ما وضحت ب الفيديو الخريطه الخاصه

play05:15

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

play05:18

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

play05:20

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

play05:23

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

Rate This

5.0 / 5 (0 votes)

Ähnliche Tags
Stepper MotorArduino BoardTutorialEducationalDIYElectronicsCodingMotor ControlTechnical GuideInnovative Tech
Benötigen Sie eine Zusammenfassung auf Englisch?