0Pricing
Arduino & IoT Academy · درس

المدخلات والمخرجات والعالم الحقيقي

كيف تقرأ المستشعرات العالم وتغيّره المشغلات

المدخلات والمخرجات والعالم الحقيقي درس مجاني في Arduino & IoT Academy على CoddyKit. هذا هو الدرس 3 من أصل 4. يمكنك قراءة الدرس كاملاً أدناه مجاناً — ثم تمرن عليه مباشرة في المتصفح باستخدام محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7. هذا الدرس جزء من مسار التعلم في Arduino & IoT Academy، وتقدمك يتزامن عبر الويب وتطبيق CoddyKit. تتضمن دورة Arduino & IoT Academy 4 دروس في المجموع.

بعض أجزاء هذا الدرس لم تُترجم بعد وتظهر باللغة الإنجليزية.

Two Directions

Every Arduino project is built from two flows: information coming in from the world, and signals going out to change it. 🙂

Inputs Bring Data In

An input is anything that tells your board about its surroundings, like a button being pressed or a room getting warmer.

Sensors Read the World

A sensor is an input device that measures something real, heat, light, or distance, and hands your board a number.

Outputs Push Action Out

An output is how your board changes the world: lighting an LED, spinning a motor, or beeping a buzzer.

Actuators Do the Doing

An actuator is an output that creates physical action, like a motor that moves or a speaker that makes sound.

Pins Carry Both

The same Arduino pins handle both jobs. You simply tell each pin in code whether it should listen or speak.

Setting a Pin's Role

You declare a pin's direction with one command. Here pin 13 is set up as an output so it can drive an LED.

pinMode(13, OUTPUT);

Reading an Input

To listen instead, you read a pin's value. This grabs the state of a button wired to pin 2 so your code can react.

int state = digitalRead(2);

The Loop That Joins Them

The magic is connecting them: read an input, decide, then drive an output. That tiny chain is the core of every gadget.

A Familiar Example

A motion light reads a sensor for movement, then drives a lamp on. Input in, output out, just like you'll build.

Why It Matters

Master inputs and outputs and you can build almost anything. Every project you'll make is just a clever mix of these two.

Quick Check

Let's sort inputs from outputs.

Recap

Inputs and sensors bring data in; outputs and actuators push action out. Read, decide, act, that loop powers every device. 🔁

الأسئلة الشائعة

هل درس «المدخلات والمخرجات والعالم الحقيقي» مجاني؟

نعم — نص درس «المدخلات والمخرجات والعالم الحقيقي» كامل متاح مجاناً هنا على الويب. لتمرينه بشكل تفاعلي (محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7) وفتح باقي دورة Arduino & IoT Academy، انتقل إلى CoddyKit PRO. تتضمن دورة Arduino & IoT Academy 4 دروس في المجموع.

ماذا ستتعلم في «المدخلات والمخرجات والعالم الحقيقي»؟

كيف تقرأ المستشعرات العالم وتغيّره المشغلات تتمرن على Arduino & IoT Academy مع أكواد عملية تشغلها مباشرة في المتصفح، ومدرس ذكاء اصطناعي متاح 24/7 يجيب على أسئلتك أثناء عملك.

هل أحتاج إلى خبرة سابقة لأبدأ Arduino & IoT Academy؟

لا تُشترط خبرة سابقة. Arduino & IoT Academy على CoddyKit منظم للمبتدئين حتى المتقدمين، لذا يمكنك البدء من هنا أو من البداية والتقدم بسرعتك الخاصة. هذا هو الدرس 3 من أصل 4.

كم من الوقت يستغرق درس «المدخلات والمخرجات والعالم الحقيقي»؟

معظم دروس CoddyKit تستغرق حوالي 5–10 دقائق. كل منها موجز وتفاعلي، لذا تحرز تقدماً مستمراً وتستأنف من حيث توقفت عبر الويب والتطبيق.

هل يمكنني كتابة وتشغيل أكواد في درس Arduino & IoT Academy هذا؟

نعم. كل درس في Arduino & IoT Academy يتضمن محرر أكواد مدمج، لذا تكتب وتشغل أكواداً حقيقية مباشرة في متصفحك وتحصل على تعليقات فورية من الذكاء الاصطناعي — بدون إعداد محلي.

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

  1. من الحاسوب إلى المتحكم الدقيق
  2. ماذا يعني «إنترنت الأشياء»
  3. المدخلات والمخرجات والعالم الحقيقي
  4. فكرتكم الأولى لجهاز ذكي
← العودة إلى Arduino & IoT Academy