0Pricing
Arduino & IoT Academy · درس

الإشارات الرقمية مقابل التناظرية

الفرق بين التشغيل والإيقاف والمدى السلس

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

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

Two Kinds of Signal

Electronics speak in two languages. A digital signal is simple on or off, while an analog one varies smoothly. Both matter in your projects.

Digital Means On or Off

A digital signal has only two states: HIGH or LOW, like a light switch. There is nothing in between, just yes or no.

Analog Means a Range

An analog signal can be any value across a range, like a dimmer slowly fading a lamp from off to full brightness.

The Real World Is Analog

Temperature, light, and sound never jump between two values. They flow smoothly, so the real world is mostly analog by nature.

Voltage Carries the Value

On an Arduino, an analog reading is really a voltage between 0V and 5V. A higher voltage simply means a higher value.

A Button Is Digital

A push button is the perfect digital input. It is either pressed or not, so you read it as HIGH or LOW with digitalRead.

A Knob Is Analog

A turning potentiometer sends a smoothly changing voltage. Turn it slowly and the value glides, so you read it as analog.

Different Pins for Each

The Uno keeps them separate. Digital pins are labeled D0 to D13, while the analog input pins are labeled A0 to A5.

Two Functions to Read

You match the function to the signal: digitalRead for on or off pins, and analogRead for the smooth analog inputs.

int btn = digitalRead(2);
int knob = analogRead(A0);

Analog Gets Digitized

Your chip cannot truly feel a smooth voltage. An ADC converts that analog voltage into a number the code can use.

Why the Difference Matters

Choosing the right type avoids bugs. Read a sensor with analogRead and a switch with digitalRead, and your data stays correct.

Quick Check

Which input belongs to the analog world?

Recap: Digital vs Analog

You learned that digital is on or off while analog is a smooth range. Buttons are digital, knobs are analog. Match the read function to each.

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

هل درس «الإشارات الرقمية مقابل التناظرية» مجاني؟

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

ماذا ستتعلم في «الإشارات الرقمية مقابل التناظرية»؟

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

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

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

كم من الوقت يستغرق درس «الإشارات الرقمية مقابل التناظرية»؟

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

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

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

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

  1. الإشارات الرقمية مقابل التناظرية
  2. إرجاع analogRead للقيم 0–1023
  3. قراءة مقبض مقياس الجهد
  4. تعيين قيم map() إلى نطاق جديد
← العودة إلى Arduino & IoT Academy