Class 9 Computer Science — Complete notes in English and Urdu
In this project, we will build a Temperature Monitoring System using prototyping tools. The system will read temperature from a sensor, display it on an LCD screen, and send alerts if the temperature goes above a set limit. This project uses Arduino, Breadboard, Jumper Wires, Temperature Sensor (LM35 or DHT11), and Arduino IDE. The goal is to learn how IoT devices collect, process, and display data in real-time. This is a great beginner project for understanding how sensors and microcontrollers work together.
اس پروجیکٹ میں، ہم پروٹو ٹائپنگ ٹولز کا استعمال کرتے ہوئے ایک درجہ حرارت کی نگرانی کا نظام بنائیں گے۔ نظام سینسر سے درجہ حرارت پڑھے گا، اسے LCD اسکرین پر دکھائے گا، اور اگر درجہ حرارت ایک مقررہ حد سے تجاوز کر جائے تو الرٹ بھیجے گا۔ یہ پروجیکٹ Arduino، بریڈ بورڈ، جمپر وائرز، درجہ حرارت سینسر (LM35 یا DHT11)، اور Arduino IDE کا استعمال کرتا ہے۔ مقصد یہ سیکھنا ہے کہ IoT آلات کس طرح ریئل ٹائم میں ڈیٹا اکٹھا، پروسیس اور دکھاتے ہیں۔ یہ سینسرز اور مائکروکنٹرولرز کے ساتھ مل کر کیسے کام کرتے ہیں یہ سمجھنے کے لیے ایک بہترین ابتدائی پروجیکٹ ہے۔
English: Collect all the components: Arduino Uno, Breadboard, Jumper Wires, Temperature Sensor (LM35 or DHT11), LCD Display (16x2 with I2C), and USB cable. Make sure you have the Arduino IDE installed on your computer.
اردو: تمام اجزاء جمع کریں: Arduino Uno، بریڈ بورڈ، جمپر وائرز، درجہ حرارت سینسر (LM35 یا DHT11)، LCD ڈسپلے (16x2 I2C کے ساتھ)، اور USB کیبل۔ یقینی بنائیں کہ آپ کے کمپیوٹر پر Arduino IDE انسٹال ہے۔
English: Connect the components on the breadboard. Connect the sensor to the Arduino: VCC to 5V, GND to GND, and the output pin to A0. Connect the LCD display to the Arduino using I2C pins (SDA to A4, SCL to A5). Use jumper wires for all connections. Make sure all connections are secure.
اردو: بریڈ بورڈ پر اجزاء کو جوڑیں۔ سینسر کو Arduino سے منسلک کریں: VCC کو 5V سے، GND کو GND سے، اور آؤٹ پٹ پن کو A0 سے۔ LCD ڈسپلے کو I2C پنوں (SDA کو A4، SCL کو A5) کا استعمال کرتے ہوئے Arduino سے منسلک کریں۔ تمام کنکشنز کے لیے جمپر وائرز کا استعمال کریں۔ یقینی بنائیں کہ تمام کنکشنز محفوظ ہیں۔
English: Open Arduino IDE. Go to Sketch → Include Library → Manage Libraries. Search for "LiquidCrystal I2C" and install it. If using DHT11, also install the "DHT sensor library" by Adafruit.
اردو: Arduino IDE کھولیں۔ Sketch → Include Library → Manage Libraries پر جائیں۔ "LiquidCrystal I2C" تلاش کریں اور انسٹال کریں۔ اگر DHT11 استعمال کر رہے ہیں تو Adafruit کی "DHT sensor library" بھی انسٹال کریں۔
English: Copy the code below into the Arduino IDE. The code reads temperature from the sensor, displays it on the LCD, and sends a message to the serial monitor. It also checks if the temperature is above 30°C and displays an alert.
اردو: نیچے دیے گئے کوڈ کو Arduino IDE میں کاپی کریں۔ کوڈ سینسر سے درجہ حرارت پڑھتا ہے، اسے LCD پر دکھاتا ہے، اور سیریل مانیٹر کو ایک پیغام بھیجتا ہے۔ یہ یہ بھی چیک کرتا ہے کہ آیا درجہ حرارت 30°C سے زیادہ ہے اور ایک الرٹ دکھاتا ہے۔
English: Connect your Arduino to the computer using the USB cable. Select the correct board and port in the Arduino IDE. Click the Upload button. Open the Serial Monitor (Tools → Serial Monitor) to see the temperature readings. The LCD should display the temperature and any alerts.
اردو: USB کیبل کا استعمال کرتے ہوئے اپنے Arduino کو کمپیوٹر سے جوڑیں۔ Arduino IDE میں صحیح بورڈ اور پورٹ منتخب کریں۔ اپ لوڈ بٹن پر کلک کریں۔ سیریل مانیٹر (Tools → Serial Monitor) کھولیں تاکہ درجہ حرارت کی ریڈنگ دیکھ سکیں۔ LCD کو درجہ حرارت اور کوئی بھی الرٹ دکھانا چاہیے۔
English: Observe how the temperature changes. Try changing the threshold value in the code. You can also add a buzzer to sound an alarm when the temperature is too high. This project can be extended to send data to the cloud or display on a web dashboard.
اردو: دیکھیں کہ درجہ حرارت کیسے تبدیل ہوتا ہے۔ کوڈ میں حد کی قدر کو تبدیل کرنے کی کوشش کریں۔ آپ جب درجہ حرارت بہت زیادہ ہو تو الارم بجانے کے لیے ایک بزر بھی شامل کر سکتے ہیں۔ اس پروجیکٹ کو ڈیٹا کو کلاؤڈ پر بھیجنے یا ویب ڈیش بورڈ پر دکھانے کے لیے بڑھایا جا سکتا ہے۔