K Kapnula
🌊
الدرس 5 · صف 13+

Analog and PWM: smooth light and servos

📖 الدرس ──▶ 🎯 اختبار — اختر الترجمة ──▶ ✅ أُنجز الدرس
11110011011000010011110A = 01000001

A digital pin only knows on/off. How to dim smoothly? PWM: the pin blinks 500× per second, analogWrite(9, 128) = half brightness — the eye sees "smooth". Works on ~ pins (3,5,6,9,10,11). Servo: a motor turning to an angle 0–180° — servo.write(90). For shutters, camera pans, valves. The Servo.h library is built in.

🌊 The dimmer in your flat works by the same PWM principle — rapid on/off. Arduino just lets you play with what already lives inside your walls.
🎯
اختبر نفسك!
ثبّت الموضوع بالمدرّب — كما بعد الحصة
اختبار — اختر الترجمة → 🖨 ورقة عمل
← السابق التالي →
⛅ -1° Potsdam 💨 10 km/h
💶 EUR 🇺🇸 1.10 USD 🇷🇺 90.26 RUB 🇵🇱 4.48 PLN 🇺🇦 49.54 UAH EZB · daily
⛽ Fuel E5 1.839€ E10 1.779€ Diesel 1.989€ POTSDAM · tankerkönig.de