صفحة 113 - كتاب إنترنت الأشياء - الصف 11 - الفصل 1 - المملكة العربية السعودية

الكتاب: كتاب إنترنت الأشياء - الصف 11 - الفصل 1 | المادة: إنترنت الأشياء | المرحلة: الصف 11 | الفصل الدراسي: 1

الدولة: المملكة العربية السعودية | المنهج: المنهج السعودي - وزارة التعليم

📚 معلومات الصفحة

الكتاب: كتاب إنترنت الأشياء - الصف 11 - الفصل 1 | المادة: إنترنت الأشياء | المرحلة: الصف 11 | الفصل الدراسي: 1

الدولة: المملكة العربية السعودية | المنهج: المنهج السعودي - وزارة التعليم

نوع المحتوى: درس تعليمي

📝 ملخص الصفحة

📚 تمارين تعديل دوائر إنذار الغاز

المفاهيم الأساسية

نمط وميض LED: تسلسل تشغيل وإيقاف الدايود المشع للضوء (مثل: تشغيل وإيقاف ثلاث مرات لمدة ثانية).

تردد الطنان: عدد الاهتزازات في الثانية (هرتز) التي يصدرها الطنان الكهربائي (مثل: 220 هرتز بدلاً من 110 هرتز).

خريطة المفاهيم

```markmap

تطبيقات على المتحكمات الدقيقة

إنشاء نظام إنذار تسرب الغاز

تمارين تطبيقية

#### تمرين 1: بحث عن مخاطر الغاز

##### • البحث في الإنترنت عن أنواع مختلفة لمخاطر الغاز التي يمكن لمستشعر الغاز اكتشافها وتحليلها.

##### • عرض نتائج البحث.

#### تمرين 2: برمجة نغمات الإنذار

##### • تحليل كيفية إصدار الطنان الكهربائي لنغمات مختلفة كإنذارات للأنواع المختلفة من المخاطر.

##### • عرض الأفكار.

#### تمرين 3: استخدامات أخرى للطنان الكهربائي

##### • وصف الاستخدامات الممكنة للطنان الكهربائي بخلاف نظام الإنذار.

#### تمرين 4: مستشعر الغاز

##### • مراجعة المعلومات والإشارات التي يصدرها مستشعر الغاز.

##### • تعليل سبب زيادة عدد أطراف توصيله مقارنة بالمستشعرات الأخرى.

#### تمرين 5: تعديل نمط وميض LED

##### • تغيير نمط وميض الدايودات المشعة للضوء.

##### • تشغيل وإيقاف الدايود المشع للضوء الأخضر فقط ثلاث مرات ولمدة ثانية واحدة كل مرة.

#### تمرين 6: تعديل نمط صفير الطنان

##### • تغيير نمط صفير الطنان الكهربائي.

##### • إصدار صفير بتردد 220 هرتز لمدة 700 مللي ثانية.

#### تمرين 7: توسيع دائرة التحذير

##### • توسيع الدائرة لتحذير إضافي.

##### • إصدار الطنان تحذيراً إضافياً عند زيادة قيمة الغاز عن 100.

```

نقاط مهمة

  • التمرين 5 و6 و7 هي تمارين برمجية لتعديل سلوك دائرة إلكترونية موجودة (مستشعر غاز، LED، طنان).
  • الدائرة المرجعية تحتوي على: أردوينو UNO، مستشعر غاز، LED أحمر وأخضر، طنان كهربائي.
  • التعديلات المطلوبة تتعلق بتغيير التوقيت (مدة التشغيل) والتكرار (عدد المرات) والتردد (النغمة).

📋 المحتوى المنظم

📖 محتوى تعليمي مفصّل

5

نوع: QUESTION_HOMEWORK

قم بتغيير نمط وميض الدايودات المشعة للضوء، فبدلاً من تشغيل كل دايود مشع للضوء وإيقافه مرتين لمدة 500 مللي ثانية، سيتم تشغيل وإيقاف الدايود المشع للضوء الأخضر فقط ثلاث مرات ولمدة ثانية واحدة كل مرة.

6

نوع: QUESTION_HOMEWORK

قم بتغيير نمط صفير الطنان الكهربائي بحيث يصدر صفيراً بنغمة بتردد 220 هرتز لمدة 700 مللي ثانية بدلاً من إصدار نغمة بتردد 110 هرتز لمدة ثانية واحدة.

7

نوع: QUESTION_HOMEWORK

قم بتوسيع الدائرة بحيث يصدر الطنان تحذيراً إضافياً عند زيادة قيمة الغاز عن 100.

نوع: METADATA

وزارة التعليم Ministry of Education 113 2025 - 1447

🔍 عناصر مرئية

Arduino and Breadboard Circuit for Light and Buzzer Pattern

A detailed diagram of an electronic circuit featuring an Arduino UNO board connected to a breadboard. The Arduino is a blue board labeled 'ARDUINO UNO'. The breadboard is white with numbered rows (1-30) and lettered columns (a-j) and power rails. **Arduino Connections:** - A red wire connects the Arduino '5V' pin to the positive (+) power rail of the breadboard. - A black wire connects the Arduino 'GND' pin to the negative (-) power rail of the breadboard. - An orange wire connects the Arduino 'A0' (Analog Input 0) pin to one leg of the gas sensor. - A yellow wire connects the Arduino 'Digital Pin 13' to one leg of a resistor. - A green wire connects the Arduino 'Digital Pin 12' to one leg of another resistor. - A purple wire connects the Arduino 'Digital Pin 11' to one leg of the buzzer. **Breadboard Components and Connections:** - **Gas Sensor**: A circular silver component, positioned across columns e, f, g, h, i, j, rows 1-5. It has multiple legs; one is connected to the orange wire (from Arduino A0), another to the positive (+) power rail, and another to the negative (-) power rail. - **Resistors**: Two resistors are visible. Both appear to be 10kΩ (brown-black-orange-gold color code). - Resistor 1: Connected from the yellow wire (Arduino Digital Pin 13) to the anode (longer leg) of the red LED. - Resistor 2: Connected from the green wire (Arduino Digital Pin 12) to the anode (longer leg) of the green LED. - **LEDs**: Two light-emitting diodes. - Red LED: Anode connected to Resistor 1, cathode (shorter leg) connected to the negative (-) power rail. - Green LED: Anode connected to Resistor 2, cathode (shorter leg) connected to the negative (-) power rail. - **Buzzer**: A black circular component, positioned across columns e, f, g, h, i, j, rows 20-24. One leg is connected to the purple wire (Arduino Digital Pin 11), and the other leg is connected to the negative (-) power rail. **Overall**: The circuit is designed for an Arduino to read input from a gas sensor and control the flashing of red and green LEDs, as well as the sound of a buzzer. The wiring follows standard breadboard practices for power distribution and component connections.

Arduino and Breadboard Circuit for Buzzer Pattern

This circuit diagram is visually identical to the circuit diagram for Question 5. It features an Arduino UNO board connected to a breadboard. **Arduino Connections:** - A red wire connects the Arduino '5V' pin to the positive (+) power rail of the breadboard. - A black wire connects the Arduino 'GND' pin to the negative (-) power rail of the breadboard. - An orange wire connects the Arduino 'A0' (Analog Input 0) pin to one leg of the gas sensor. - A yellow wire connects the Arduino 'Digital Pin 13' to one leg of a resistor. - A green wire connects the Arduino 'Digital Pin 12' to one leg of another resistor. - A purple wire connects the Arduino 'Digital Pin 11' to one leg of the buzzer. **Breadboard Components and Connections:** - **Gas Sensor**: A circular silver component, positioned across columns e, f, g, h, i, j, rows 1-5. It has multiple legs; one is connected to the orange wire (from Arduino A0), another to the positive (+) power rail, and another to the negative (-) power rail. - **Resistors**: Two resistors are visible. Both appear to be 10kΩ (brown-black-orange-gold color code). - Resistor 1: Connected from the yellow wire (Arduino Digital Pin 13) to the anode (longer leg) of the red LED. - Resistor 2: Connected from the green wire (Arduino Digital Pin 12) to the anode (longer leg) of the green LED. - **LEDs**: Two light-emitting diodes. - Red LED: Anode connected to Resistor 1, cathode (shorter leg) connected to the negative (-) power rail. - Green LED: Anode connected to Resistor 2, cathode (shorter leg) connected to the negative (-) power rail. - **Buzzer**: A black circular component, positioned across columns e, f, g, h, i, j, rows 20-24. One leg is connected to the purple wire (Arduino Digital Pin 11), and the other leg is connected to the negative (-) power rail. **Educational Context**: This diagram is provided for a question that asks to change the buzzer's pattern, implying the physical circuit remains the same as in Question 5, but the programming logic would change to achieve the desired sound pattern.

📄 النص الكامل للصفحة

--- SECTION: 5 --- قم بتغيير نمط وميض الدايودات المشعة للضوء، فبدلاً من تشغيل كل دايود مشع للضوء وإيقافه مرتين لمدة 500 مللي ثانية، سيتم تشغيل وإيقاف الدايود المشع للضوء الأخضر فقط ثلاث مرات ولمدة ثانية واحدة كل مرة. --- SECTION: 6 --- قم بتغيير نمط صفير الطنان الكهربائي بحيث يصدر صفيراً بنغمة بتردد 220 هرتز لمدة 700 مللي ثانية بدلاً من إصدار نغمة بتردد 110 هرتز لمدة ثانية واحدة. --- SECTION: 7 --- قم بتوسيع الدائرة بحيث يصدر الطنان تحذيراً إضافياً عند زيادة قيمة الغاز عن 100. وزارة التعليم Ministry of Education 113 2025 - 1447 --- VISUAL CONTEXT --- **DIAGRAM**: Arduino and Breadboard Circuit for Light and Buzzer Pattern Description: A detailed diagram of an electronic circuit featuring an Arduino UNO board connected to a breadboard. The Arduino is a blue board labeled 'ARDUINO UNO'. The breadboard is white with numbered rows (1-30) and lettered columns (a-j) and power rails. **Arduino Connections:** - A red wire connects the Arduino '5V' pin to the positive (+) power rail of the breadboard. - A black wire connects the Arduino 'GND' pin to the negative (-) power rail of the breadboard. - An orange wire connects the Arduino 'A0' (Analog Input 0) pin to one leg of the gas sensor. - A yellow wire connects the Arduino 'Digital Pin 13' to one leg of a resistor. - A green wire connects the Arduino 'Digital Pin 12' to one leg of another resistor. - A purple wire connects the Arduino 'Digital Pin 11' to one leg of the buzzer. **Breadboard Components and Connections:** - **Gas Sensor**: A circular silver component, positioned across columns e, f, g, h, i, j, rows 1-5. It has multiple legs; one is connected to the orange wire (from Arduino A0), another to the positive (+) power rail, and another to the negative (-) power rail. - **Resistors**: Two resistors are visible. Both appear to be 10kΩ (brown-black-orange-gold color code). - Resistor 1: Connected from the yellow wire (Arduino Digital Pin 13) to the anode (longer leg) of the red LED. - Resistor 2: Connected from the green wire (Arduino Digital Pin 12) to the anode (longer leg) of the green LED. - **LEDs**: Two light-emitting diodes. - Red LED: Anode connected to Resistor 1, cathode (shorter leg) connected to the negative (-) power rail. - Green LED: Anode connected to Resistor 2, cathode (shorter leg) connected to the negative (-) power rail. - **Buzzer**: A black circular component, positioned across columns e, f, g, h, i, j, rows 20-24. One leg is connected to the purple wire (Arduino Digital Pin 11), and the other leg is connected to the negative (-) power rail. **Overall**: The circuit is designed for an Arduino to read input from a gas sensor and control the flashing of red and green LEDs, as well as the sound of a buzzer. The wiring follows standard breadboard practices for power distribution and component connections. X-axis: N/A Y-axis: N/A Data: N/A Context: This diagram illustrates the physical setup of an Arduino-based circuit for controlling LEDs and a buzzer based on sensor input, relevant for programming exercises. **DIAGRAM**: Arduino and Breadboard Circuit for Buzzer Pattern Description: This circuit diagram is visually identical to the circuit diagram for Question 5. It features an Arduino UNO board connected to a breadboard. **Arduino Connections:** - A red wire connects the Arduino '5V' pin to the positive (+) power rail of the breadboard. - A black wire connects the Arduino 'GND' pin to the negative (-) power rail of the breadboard. - An orange wire connects the Arduino 'A0' (Analog Input 0) pin to one leg of the gas sensor. - A yellow wire connects the Arduino 'Digital Pin 13' to one leg of a resistor. - A green wire connects the Arduino 'Digital Pin 12' to one leg of another resistor. - A purple wire connects the Arduino 'Digital Pin 11' to one leg of the buzzer. **Breadboard Components and Connections:** - **Gas Sensor**: A circular silver component, positioned across columns e, f, g, h, i, j, rows 1-5. It has multiple legs; one is connected to the orange wire (from Arduino A0), another to the positive (+) power rail, and another to the negative (-) power rail. - **Resistors**: Two resistors are visible. Both appear to be 10kΩ (brown-black-orange-gold color code). - Resistor 1: Connected from the yellow wire (Arduino Digital Pin 13) to the anode (longer leg) of the red LED. - Resistor 2: Connected from the green wire (Arduino Digital Pin 12) to the anode (longer leg) of the green LED. - **LEDs**: Two light-emitting diodes. - Red LED: Anode connected to Resistor 1, cathode (shorter leg) connected to the negative (-) power rail. - Green LED: Anode connected to Resistor 2, cathode (shorter leg) connected to the negative (-) power rail. - **Buzzer**: A black circular component, positioned across columns e, f, g, h, i, j, rows 20-24. One leg is connected to the purple wire (Arduino Digital Pin 11), and the other leg is connected to the negative (-) power rail. **Educational Context**: This diagram is provided for a question that asks to change the buzzer's pattern, implying the physical circuit remains the same as in Question 5, but the programming logic would change to achieve the desired sound pattern. X-axis: N/A Y-axis: N/A Data: N/A Context: This diagram serves as the visual reference for a programming exercise focused on modifying the behavior of a buzzer within an existing Arduino circuit.

🎴 بطاقات تعليمية للمراجعة

عدد البطاقات: 3 بطاقة لهذه الصفحة

في برمجة طنان كهربائي (Buzzer) مع Arduino، إذا أردنا تغيير النغمة بحيث يكون ترددها 220 هرتز بدلاً من 110 هرتز، فأي من الدوال التالية تستخدم لتعيين تردد النغمة؟

  • أ) digitalWrite(pin, HIGH)
  • ب) analogWrite(pin, 220)
  • ج) tone(pin, 110)
  • د) tone(pin, 220)

الإجابة الصحيحة: d

الإجابة: tone(pin, 220)

الشرح: 1. دالة tone() في Arduino تولد موجة مربعة بتردد محدد على دبوس معين. 2. بناء الجملة هو tone(pin, frequency). 3. المطلوب هو تردد 220 هرتز. 4. لذلك، يجب استخدام tone(pin, 220) حيث pin هو رقم الدبوس المتصل بالطنان.

تلميح: دالة tone() تستخدم لتوليد نغمة بتردد معين على دبوس محدد.

التصنيف: صيغة/خطوات | المستوى: متوسط

في برمجة دائرة إنترنت الأشياء باستخدام Arduino، إذا أردنا تغيير نمط وميض LED بحيث يعمل ويطفأ ثلاث مرات بدلاً من مرتين، ويبقى مضاءً لمدة ثانية بدلاً من 500 مللي ثانية، فأي من الدوال التالية تستخدم لتعيين زمن التأخير بالمللي ثانية؟

  • أ) delay(500)
  • ب) delay(100)
  • ج) delay(1000)
  • د) delay(2000)

الإجابة الصحيحة: c

الإجابة: delay(1000)

الشرح: 1. الدالة delay() تستخدم لإيقاف البرنامج لفترة زمنية محددة بالمللي ثانية. 2. المطلوب هو تشغيل LED لمدة ثانية واحدة. 3. ثانية واحدة = 1000 مللي ثانية. 4. لذلك، يجب استخدام delay(1000).

تلميح: تذكر أن 1000 مللي ثانية تساوي ثانية واحدة.

التصنيف: صيغة/خطوات | المستوى: سهل

في دائرة إنترنت الأشياء تحتوي على مستشعر غاز متصل بـ Arduino، ما هي البنية البرمجية المنطقية (Conditional Statement) التي يجب استخدامها لإصدار تحذير إضافي عند تجاوز قيمة قراءة المستشعر لحد معين (مثل 100)؟

  • أ) while (sensorValue > 100)
  • ب) for (sensorValue = 0; sensorValue < 100; sensorValue++)
  • ج) if (sensorValue > 100)
  • د) switch (sensorValue)

الإجابة الصحيحة: c

الإجابة: if (sensorValue > 100)

الشرح: 1. تقرأ قيمة مستشعر الغاز من دبوس الإدخال التناظري وتخزن في متغير (مثل sensorValue). 2. المطلوب هو التحقق مما إذا كانت هذه القيمة أكبر من 100. 3. جملة الشرط if تستخدم لهذا الغرض. 4. بناء الجملة الصحيح هو if (sensorValue > 100).

تلميح: يتم استخدام جملة الشرط if للتحقق من شرط معين قبل تنفيذ أمر.

التصنيف: صيغة/خطوات | المستوى: متوسط