MENU

Fun & Interesting

طريقة توصيل المفتاح الكهربائي مع الأردوينو خطوة بخطوة | How to Connect a Switch with Arduino"

Video Not Working? Fix It Now

في هذا الفيديو من سلسلة "مشاريع الأردوينو مع سبارك هاب"، سنتعلم كيفية استخدام المفتاح الكهربائي مع لوحة Arduino خطوة بخطوة. سنبدأ بشرح سريع عن كيفية عمل المفتاح الكهربائي وكيفية توصيله باللوحة لتفعيل أو تعطيل دائرة كهربائية. 🔗 قم بزيارة موقع سبارك هاب للمزيد من الشروحات: https://spark-hub.odoo.com 🔗 معدات أردوينو ستارتر: https://amzn.to/3XLcJJK خلال هذا الفيديو، سنتناول المواضيع التالية: تعريف المفتاح الكهربائي: سنتحدث عن دوره في التحكم بتدفق التيار الكهربائي في الدائرة، وكيف يمكن استخدامه لتشغيل أو إطفاء مكونات إلكترونية. توصيل المفتاح الكهربائي بلوحة Arduino: سنوضح كيفية توصيل المفتاح بالمنافذ الرقمية للوحة، وكيفية استخدام المقاومات لضمان عمل الدائرة بشكل صحيح. كتابة الكود البرمجي: سنقوم بكتابة كود بسيط لقراءة حالة المفتاح (مفتوح أو مغلق) من خلال المنفذ الرقمي، ومن ثم استخدام هذه الحالة للتحكم في ضوء LED. رفع الكود واختبار الدائرة: سنشرح كيفية رفع الكود إلى اللوحة وتشغيله لاختبار استجابة المفتاح للتحكم في تشغيل وإطفاء LED بناءً على ضغطات المفتاح. في نهاية الفيديو، ستكون قد تعلمت كيفية توصيل واستخدام المفتاح الكهربائي مع Arduino لبناء دوائر تفاعلية بسيطة. لا تنسَ الاشتراك بالقناة لمتابعة المزيد من المشاريع والدروس الممتعة من سبارك هاب! الكودات البرمجية التي تم شرحها void setup() { pinMode(2, INPUT); pinMode(3, OUTPUT); } void loop() { if (digitalRead(2)) { digitalWrite (3, HIGH); }else { digitalWrite (3, LOW); } } In this video from the "Arduino Projects with Spark Hub" series, we will learn how to use a switch with the Arduino board step by step. We’ll start by explaining how the switch works and how to connect it to the board to activate or deactivate an electrical circuit. 🔗 Visit Spark Hub website for more tutorials: https://spark-hub.odoo.com 🔗 Arduino Starter Kit: https://amzn.to/3XLcJJK Throughout this video, we will cover the following: Introduction to the Switch: We’ll discuss its role in controlling the flow of electricity in a circuit and how it can be used to turn electronic components on or off. Connecting the Switch to the Arduino Board: We’ll show how to connect the switch to the board’s digital pins and use resistors to ensure the circuit operates correctly. Writing the Code: We’ll write a simple code to read the state of the switch (open or closed) from the digital pin, then use that state to control an LED. Uploading the Code and Testing the Circuit: We’ll explain how to upload the code to the board and run it to test the switch’s response in turning the LED on and off based on switch presses. By the end of the video, you’ll have learned how to connect and use a switch with the Arduino to build simple interactive circuits. Don’t forget to subscribe to the channel for more exciting projects and tutorials from Spark Hub!

Comment