Merge remote-tracking branch 'upstream/main' into main

pull/177/head
Lateefah Bello 4 years ago
commit aa416f9a56

@ -1,6 +1,6 @@
# Introduction to IoT
![A sketchnote overview of this lesson](../../../sketchnotes/lesson-1.png)
![A sketchnote overview of this lesson](../../../sketchnotes/lesson-1.jpg)
> Sketchnote by [Nitya Narasimhan](https://github.com/nitya). Click the image for a larger version.

@ -1,6 +1,6 @@
# <div dir="rtl"> مقدمة لإنترنت الأشياء </div>
![A sketchnote overview of this lesson](../../../../sketchnotes/lesson-1.png)
![A sketchnote overview of this lesson](../../../../sketchnotes/lesson-1.jpg)
> <div dir="rtl"> خريطة من <a href="https://github.com/nitya">Nitya Narasimhan</a> </div>
> <div dir="rtl"> اضغط على الصورة لتكبيرها </div>

@ -1,6 +1,6 @@
# IoT পরিচিতি
![A sketchnote overview of this lesson](../../../../sketchnotes/lesson-1.png)
![A sketchnote overview of this lesson](../../../../sketchnotes/lesson-1.jpg)
> Nitya Narasimhan তৈরী করছেন এই স্কেচনোটটি । এটির বড় সংস্করণ দেখতে চাইলে ছবিটির উপর ক্লিক করুন ।

@ -1,6 +1,6 @@
# इंटरनेट ऑफ थिंग्स (IoT )का परिचय
![इस पाठ का एक संक्षिप्त विवरण](../../../../sketchnotes/lesson-1.png)
![इस पाठ का एक संक्षिप्त विवरण](../../../../sketchnotes/lesson-1.jpg)
> [Nitya Narasimhan](https://github.com/nitya) द्वारा स्केचनोट. Click the image for a larger version.

@ -1,6 +1,6 @@
# Pengenalan IoT
![Ikhtisar catatan sketsa dari pelajaran ini](../../../../sketchnotes/lesson-1.png)
![Ikhtisar catatan sketsa dari pelajaran ini](../../../../sketchnotes/lesson-1.jpg)
> Sketsa dibuat oleh [Nitya Narasimhan](https://github.com/nitya). Klik gambar untuk versi yang lebih besar.

@ -1,6 +1,6 @@
# 物联网IoT简介
![这个课程概述的涂鸦笔记sketchnote](../../../sketchnotes/lesson-1.png)
![这个课程概述的涂鸦笔记sketchnote](../../../../sketchnotes/lesson-1.jpg)
> Sketchnote by [Nitya Narasimhan](https://github.com/nitya). 如果你想看比较大的图片,请点击它。

@ -1,6 +1,6 @@
# A deeper dive into IoT
![A sketchnote overview of this lesson](../../../sketchnotes/lesson-2.png)
![A sketchnote overview of this lesson](../../../sketchnotes/lesson-2.jpg)
> Sketchnote by [Nitya Narasimhan](https://github.com/nitya). Click the image for a larger version.

@ -1,6 +1,6 @@
# <div dir="rtl">التعمق أكثر بإنترنت الأشياء</div>
![A sketchnote overview of this lesson](../../../../sketchnotes/lesson-2.png)
![A sketchnote overview of this lesson](../../../../sketchnotes/lesson-2.jpg)
> <div dir="rtl"> خريطة من <a href="https://github.com/nitya">Nitya Narasimhan</a> </div>
> <div dir="rtl"> اضغط على الصورة لتكبيرها </div>

@ -1,6 +1,6 @@
# Interact with the physical world with sensors and actuators
![A sketchnote overview of this lesson](../../../sketchnotes/lesson-3.png)
![A sketchnote overview of this lesson](../../../sketchnotes/lesson-3.jpg)
> Sketchnote by [Nitya Narasimhan](https://github.com/nitya). Click the image for a larger version.

@ -0,0 +1,128 @@
<div dir="rtl">
# قم ببناء ضوء ليلي - Raspberry Pi
في هذا الجزء من الدرس ، ستضيف مؤشر LED إلى Raspberry Pi الخاص بك وتستخدمه لإنشاء ضوء ليلي.
## المعدات
يحتاج ضوء الليل الآن إلى مشغل.
المشغل هو ** LED ** ، <a href="https://wikipedia.org/wiki/Light-emitting_diode"> الصمام الثنائي الباعث للضوء</a> الذي ينبعث منه الضوء عندما يتدفق التيار خلاله. هذا مشغل رقمي له حالتان ، تشغيل وإيقاف. يؤدي إرسال القيمة 1 إلى تشغيل مؤشر LED و 0 يؤدي إلى إيقاف تشغيله. LED هو مشغل Grove خارجي ويجب توصيله بقبعة Grove Base على Raspberry Pi.
منطق ضوء الليل في الكود الزائف هو:
```output
تحقق من مستوى الضوء.
إذا كان الضوء أقل من 300
قم بتشغيل LED
غير ذلك
قم بإيقاف تشغيل LED
```
### قم بتوصيل الصمام
يأتي Grove LED كوحدة نمطية مع مجموعة مختارة من مصابيح LED ، مما يسمح لك باختيار اللون.
#### المهمة - قم بتوصيل LED
قم بتوصيل الصمام.
![A grove LED](../../../../images/grove-led.png)
1. اختر مؤشر LED المفضل لديك وأدخل الأرجل في الفتحتين على وحدة LED.
المصابيح هي صمامات ثنائية باعثة للضوء ، والصمامات الثنائية هي أجهزة إلكترونية يمكنها حمل التيار في اتجاه واحد فقط. هذا يعني أن مؤشر LED يحتاج إلى الاتصال بالطريقة الصحيحة ، وإلا فلن يعمل.
أحد أرجل مؤشر LED هو الدبوس الموجب ، والآخر هو الدبوس السالب. LED ليس مستديرًا تمامًا وهو مسطح قليلاً من جانب واحد. الجانب المسطح قليلاً هو الدبوس السالب. عندما تقوم بتوصيل مؤشر LED بالوحدة ، تأكد من توصيل دبوس الجانب المستدير بالمقبس المميز بعلامة ** + ** على الجزء الخارجي من الوحدة ، وأن الجانب المسطح متصل بالمقبس الأقرب إلى منتصف الجزء وحدة.
1. تحتوي وحدة LED على زر دوران يسمح لك بالتحكم في السطوع. اقلب هذا على طول الطريق لتبدأ بتدويره عكس اتجاه عقارب الساعة بقدر ما سيذهب باستخدام مفك براغي صغير من فيليبس.
1. أدخل أحد طرفي كبل Grove في المقبس الموجود في وحدة LED. سوف تذهب في اتجاه واحد فقط.
1. مع إيقاف تشغيل Raspberry Pi ، قم بتوصيل الطرف الآخر من كابل Grove بالمقبس الرقمي المميز بعلامة ** D5 ** على قبعة Grove Base المرفقة بـ Pi. هذا المقبس هو الثاني من اليسار ، على صف المقابس بجوار دبابيس GPIO.
![The grove LED connected to socket D5](../../../../images/pi-led.png)
## برمجة ضوء الليل
يمكن الآن برمجة ضوء الليل باستخدام مستشعر الضوء Grove و Grove LED.
### المهمة - برمجة ضوء الليل
برمجة ضوء الليل.
1. قم بتشغيل Pi وانتظر حتى يتم التمهيد
1. افتح مشروع Nightlight في VS Code الذي أنشأته في الجزء السابق من هذه المهمة ، سواء كان يعمل مباشرة على Pi أو متصل باستخدام امتداد Remote SSH.
1. أضف الكود التالي إلى ملف `app.py` للاتصال لاستيراد المكتبة المطلوبة. يجب إضافة هذا إلى الأعلى ، أسفل سطور "الاستيراد" الأخرى.
```python
from grove.grove_led import GroveLed
```
تستورد العبارة `from grove.grove_led import GroveLed`` GroveLed` من مكتبات Grove Python. تحتوي هذه المكتبة على رمز للتفاعل مع Grove LED.
1. أضف الكود التالي بعد إعلان "light_sensor" لإنشاء مثيل للفئة التي تدير مؤشر LED:
```python
led = GroveLed(5)
```
يُنشئ السطر `led = GroveLed (5)` مثيلًا لفئة `GroveLed` التي تتصل بالطرف ** D5 ** - دبوس Grove الرقمي الذي يتصل به مؤشر LED.
> 💁 جميع المقابس لها أرقام دبوس فريدة. الدبابيس 0 و 2 و 4 و 6 هي دبابيس تمثيلية ، والدبابيس 5 و 16 و 18 و 22 و 24 و 26 هي دبابيس رقمية.
1. أضف فحصًا داخل حلقة "while" وقبل "time.sleep" للتحقق من مستويات الإضاءة وتشغيل مؤشر LED أو إيقاف تشغيله:
</div>
```python
if light < 300:
led.on()
else:
led.off()
```
<div dir="rtl">
يتحقق هذا الرمز من قيمة "light". إذا كان هذا أقل من 300 ، فإنه يستدعي طريقة "on" لفئة "GroveLed" التي ترسل قيمة رقمية 1 إلى LED ، وتشغيلها. إذا كانت قيمة الضوء أكبر من أو تساوي 300 ، فإنها تستدعي طريقة "إيقاف التشغيل" ، وإرسال قيمة رقمية بقيمة 0 إلى LED ، وإيقاف تشغيلها.
> 💁 يجب وضع مسافة بادئة لهذا الرمز إلى نفس مستوى خط الطباعة ('Light level:'، light) `ليكون داخل حلقة while!
> 💁 عند إرسال القيم الرقمية إلى المشغلات ، تكون القيمة 0 هي 0 فولت ، والقيمة 1 هي أقصى جهد للجهاز. بالنسبة لـ Raspberry Pi مع مستشعرات ومشغلات Grove ، يكون الجهد 1 هو 3.3 فولت.
1. من VS Code Terminal ، قم بتشغيل ما يلي لتشغيل تطبيق Python:
```sh
python3 app.py
```
Light values will be output to the console.
```output
pi@raspberrypi:~/nightlight $ python3 app.py
Light level: 634
Light level: 634
Light level: 634
Light level: 230
Light level: 104
Light level: 290
```
1. قم بتغطية وكشف مستشعر الضوء. لاحظ كيف سيضيء مؤشر LED إذا كان مستوى الضوء 300 أو أقل ، وينطفئ عندما يكون مستوى الضوء أكبر من 300.
> 💁 إذا لم يتم تشغيل مؤشر LED ، فتأكد من توصيله بالطريقة الصحيحة ، وأن زر الدوران مضبوط على الوضع الكامل.
![The LED connected to the Pi turning on and off as the light level changes](../../../../images/pi-running-assignment-1-1.gif)
> 💁 يمكنك العثور على هذا الرمز في المجلد
[code-actuator/pi](../code-actuator/pi)
😀 كان برنامج الإضاءة الليلية الخاص بك ناجحًا!
</div>

@ -1,6 +1,6 @@
# Connect your device to the Internet
![A sketchnote overview of this lesson](../../../sketchnotes/lesson-4.png)
![A sketchnote overview of this lesson](../../../sketchnotes/lesson-4.jpg)
> Sketchnote by [Nitya Narasimhan](https://github.com/nitya). Click the image for a larger version.

@ -1,5 +1,9 @@
# Predict plant growth with IoT
![A sketchnote overview of this lesson](../../../sketchnotes/lesson-5.jpg)
> Sketchnote by [Nitya Narasimhan](https://github.com/nitya). Click the image for a larger version.
## Pre-lecture quiz
[Pre-lecture quiz](https://brave-island-0b7c7f50f.azurestaticapps.net/quiz/9)

@ -1,9 +0,0 @@
# Dummy File
This file acts as a placeholder for the `translations` folder. <br>
**Please remove this file after adding the first translation**
For the instructions, follow the directives in the [translations guide](https://github.com/microsoft/IoT-For-Beginners/blob/main/TRANSLATIONS.md) .
## THANK YOU
We truly appreciate your efforts!

@ -0,0 +1,265 @@
# আইওটি দ্বারা উদ্ভিদ বৃদ্ধির পূর্বাভাস
![A sketchnote overview of this lesson](../../../../sketchnotes/lesson-5.jpg)
> স্কেচনোটটি তৈরী করেছেন [Nitya Narasimhan](https://github.com/nitya). বড় সংস্করণে দেখার জন্য ছবিটিতে ক্লিক করতে হবে।
## লেকচার-পূর্ববর্তী কুইজ
[লেকচার-পূর্ববর্তী কুইজ](https://brave-island-0b7c7f50f.azurestaticapps.net/quiz/9)
## সূচনা
উদ্ভিদের বৃদ্ধির জন্য নির্দিষ্ট কিছু উপাদান প্রয়োজন - পানি, কার্বন-ডাইঅক্সাইড, পুষ্টি, হালকা এবং তাপ। এই পাঠে আমরা শিখবো কীভাবে বায়ুর তাপমাত্রা পরিমাপ করে উদ্ভিদের বৃদ্ধি এবং পরিপক্কতার হার হিসেব করা যায়।
এই লেসনে আমরা শিখবো:
* [ডিজিটাল কৃষিব্যবস্থা](#ডিজিটাল-কৃষিব্যবস্থা)
* [কৃষিকাজে তাপমাত্রা কেন গুরুত্বপূর্ণ?](#কৃষিকাজে-তাপমাত্রা-কেন-গুরুত্বপূর্ণ)
* [চারিপার্শ্বিক তাপমাত্রা পরিমাপ](#চারিপার্শ্বিক-তাপমাত্রা-পরিমাপ)
* [Growing degree days (GDD) হিসেব](#growing-degree-days)
* [তাপমাত্রা সেন্সরের তথ্য দিয়ে GDD নির্ণয়](#তাপমাত্রা-সেন্সরের-তথ্য-দিয়ে-GDD-নির্ণয়)
## ডিজিটাল কৃষিব্যবস্থা
ডিজিটাল বিপ্লব আমাদের কৃষিব্যবস্থায় আমূল পরিবর্তন আনছে। ডেটা সংগ্রহ, ডেটা স্টোর এবং সেই তথ্য বিশ্লেষণের মাধ্যমে আমাদের কৃষিকাজ নতুন রূপ লাভ করছে। ওয়ার্ল্ড ইকোনমিক ফোরামের ভাষ্যমতে আমরা বর্তমানে 'চতুর্থ শিল্প বিপ্লব' এর সময়ে আছি এবং ডিজিটাল কৃষির উত্থানকে 'চতুর্থ কৃষি বিপ্লব' বা 'কৃষি 4.0' হিসাবে চিহ্নিত করা হচ্ছে।
> 🎓 'ডিজিটাল এগ্রিকালচার' বলতে কৃষিব্যবস্থার সম্পূর্ণ value chain কে বোঝানো হয় যা একেবারে খামার থেকে খাওয়ার টেবিল পর্যন্ত সম্পূর্ণ যাত্রা । খাদ্য পরিবহণ এবং প্রক্রিয়াজাতকরণের সময় তার গুণগত মান ট্র্যাক করা, গুদাম এবং ই-কমার্স ব্যবস্থা পরিচালনা এমনকি ট্র্যাক্টর ভাড়া করা পর্যন্ত - সবকিছুই বর্তমানে ডিজিটাল মাধ্যমে করা সম্ভব হচ্ছে
এই বৈপ্লবিক পরিবর্তনের কারণে কম পরিমাণে সার ও কীটনাশক এবং দক্ষতার সাথে সেচ বা পানি ব্যবহার করে কৃষকেরা এখন অধিক ফলন পাচ্ছেন। যদিও প্রাথমিকভাবে কেবল উন্নত দেশগুলোতেই সেন্সর এবং অন্যান্য আধুনিক যন্ত্রের ব্যবহার শুরু হয়, বর্তমানে এগুলোর দাম কমে আসছে এবং উন্নয়নশীল দেশগুলোতেও অনেক বেশি সহজলভ্য হচ্ছে।
ডিজিটাল কৃষিব্যবস্থায় আমরা দেখতে পাচ্ছি -
* তাপমাত্রা পরিমাপ - তাপমাত্রা সঠিক পরিমাপ কৃষকদের গাছের বৃদ্ধি এবং পরিপক্কতা সম্পর্কে পূর্বাভাস দেয়।
* স্বয়ংক্রিয় সেচকার্য - নির্দিষ্ট সময় পরপর পানি দেয়ার পরিবর্তে, মাটির আর্দ্রতা পরিমাপ করে, তা খুব শুষ্ক হলে সেচ ব্যবস্থা চালু করা অধিক উপযোগী। সময়ভিত্তিক সেচের ফলে গরম, শুষ্ক সময়ে কম পানি পাওয়া বা বৃষ্টির সময় অতিরিক্ত পানির চাপ বেড়ে যাওয়ার মতো ঘটনা ঘটতে পারে। কেবল প্রয়োজনের সময়ে সেচ দিয়েই, কৃষকরা তাদের জলের ব্যবহার আরো বেশি কার্যকর করতে পারে।
* কীটপতঙ্গ নিয়ন্ত্রণ - কৃষকরা স্বয়ংক্রিয় রোবট বা ড্রোনগুলিতে ক্যামেরা ব্যবহার করে কীতপতঙ্গ গুলো পর্যবেক্ষণ করতে পারে এবং কেবল যেখানে প্রয়োজন সেখানেই কীটনাশক প্রয়োগ করতে পারেন। এতে করে কীটনাশকের পরিমাণ হ্রাস হবে এবং স্থানীয় জলের সরবরাহে কীটনাশকের মিশ্রণ কমে আসবে।
✅ একটু ভাবা যাক - কৃষকের ফলন উন্নত করতে আর কোন কোন কৌশল ব্যবহার করা হয়?
> 🎓 'Precision Agriculture' পরিভাষা ব্যবহৃত হয় ফসলের পর্যবেক্ষণ, পরিমাপ ও প্রতিক্রিয়া সংক্রান্ত কাজে। এর মধ্যে সেচ নিশ্চিতকরণ, পুষ্টিমাত্রা সঠিক রাখা এবং কীটপতঙ্গের মাত্রা পরিমাপ করা এবং নির্ভুলভাবে যথাযথ কাজটি করা যেমন ক্ষেতের কেবলমাত্র প্রয়োজনীয় ছোট অংশে সেচ দেয়া - এসব অন্তর্ভুক্ত।
## কৃষিকাজে তাপমাত্রা কেন গুরুত্বপূর্ণ ?
গাছপালা সম্পর্কে শেখার সময়, বেশিরভাগ শিক্ষার্থীদের পানি, আলো, কার্বন ডাইঅক্সাইড এবং পুষ্টির প্রয়োজনীয়তা সম্পর্কে শেখানো হয়। গাছপালা বৃদ্ধির জন্য উষ্ণতাও প্রয়োজন - এই কারণেই তাপমাত্রা বৃদ্ধির সাথে সাথে বসন্তে উদ্ভিদের ফুল ফোটে। উষ্ণতার কারণেই ড্যাফোডিল খুব শীঘ্রই ফুটতে পারে পারে এবং হটহাউস ও গ্রিনহাউসগুলি গাছ এর বৃদ্ধির জন্য কার্যকরী ভূমিকা রাখে।
> 🎓 হটহাউস এবং গ্রিনহাউসগুলি একই কাজ করে তবে একটি গুরুত্বপূর্ণ পার্থক্য রয়েছে। হটহাউস কৃত্রিমভাবে উত্তপ্ত করা হয় এবং কৃষকদেরকে তাপমাত্রা আরও সঠিকভাবে নিয়ন্ত্রণ করার সুযোগ দেয়, কিন্তু গ্রিনহাউসগুলি উষ্ণতার জন্য সূর্যের উপর নির্ভর করে এবং সাধারণত তাপমাত্রা নিয়ন্ত্রণের জন্য জানালা বা কোন ছিদ্রের উপর নির্ভর করতে হয়।
গাছের একটি বেস বা সর্বনিম্ন তাপমাত্রা, সর্বোত্তম বা পরিমিত তাপমাত্রা এবং সর্বাধিক তাপমাত্রা থাকে, যা সবগুলিই প্রতিদিনের গড় তাপমাত্রার উপর নির্ভর করে।
* বেস (সর্বনিম্ন) তাপমাত্রা - এটি কোনও গাছের বৃদ্ধির জন্য প্রয়োজনীয় ন্যূনতম দৈনিক গড় তাপমাত্রা।
* পরিমিত তাপমাত্রা - সর্বাধিক বৃদ্ধি পেতে এটি সেরা দৈনিক গড় তাপমাত্রা।
* সর্বাধিক তাপমাত্রা - এটি একটি উদ্ভিদ সহ্য করতে পারে সর্বোচ্চ তাপমাত্রা। এর উপরে উদ্ভিদ পানি সংরক্ষণ এবং জীবিত থাকার চেষ্টায় এর বৃদ্ধি বন্ধ করে দেবে।
> 💁 এগুলি দিন এবং রাতের তুলনায় গড় তাপমাত্রা। গাছপালাগুলিকে আরও বেশি দক্ষতার সাথে আলোকসংশ্লেষণ করতে এবং রাতে শক্তি সঞ্চয় করতে সহায়তা করার জন্য দিন ও রাতে বিভিন্ন তাপমাত্রার প্রয়োজন হয়।
প্রতিটি প্রজাতির উদ্ভিদের তাদের সর্বনিম্ন, সর্বোত্তম এবং সর্বাধিক তাপমাত্রারর জন্য আলাদা আলাদা মান রয়েছে । এ কারণেই কিছু দেশে গাছপালা উষ্ণ এবং অপর কিছু দেশে শীতল অবস্থায় অধিক বৃদ্ধি পায়।
✅ ছোট একটি গবেষণা করা যাক। আমাদের বাগান, স্কুল বা স্থানীয় উদ্যানের যে কোনও গাছের জন্য কীভাবে বেস তাপমাত্রা খুঁজে পেতে পারেন কিনা তা দেখুন।
![A graph showing growth rate rising as temperature rises, then dropping as the temperature goes too high](../../../../images/plant-growth-temp-graph.png)
উপরের গ্রাফটি তাপমাত্রার গ্রাফের একটি বৃদ্ধির হার দেখায়। বেস তাপমাত্রা পর্যন্ত কোনও বৃদ্ধি নেই। বৃদ্ধির হার পরিমিত তাপমাত্রা পর্যন্ত বৃদ্ধি পায়, তারপরে এই শীর্ষে পৌঁছানোর পরে কমতে থাকে। সর্বোচ্চ তাপমাত্রায় বৃদ্ধি বন্ধ হয়।
এই গ্রাফের আকার গাছের প্রজাতি থেকে উদ্ভিদ প্রজাতির মধ্যে পরিবর্তিত হয়। কোন কোন ক্ষেত্রে অপটিমাম (পরিমিত) তাপমাত্রার পরে খুব খাড়াভাবে নেমে যায়, আবার কোন কোন উদ্ভিদে বেস তাপমাত্রা থেকে খুবই ধীরে ধীরে বৃদ্ধি পেয়ে পরিমিত তাপমাত্রায় পৌঁছায়।
> 💁 একজন কৃষকের সর্বোচ্চ ফলন নিশ্চিত করার জন্য, তিনটি তাপমাত্রার মানই জানতে হবে এবং তাদের গাছগুলি বৃদ্ধির গ্রাফের ধরণ বুঝতে হবে।
যদি কোন কৃষকের তাপমাত্রা নিয়ন্ত্রিত মাধ্যম থাকে, উদাহরণস্বরূপ বাণিজ্যিক হটহাউস, যেখানে তারা তাদের গাছগুলির জন্য অনুকূল তাপমাত্রা নিশ্চিত করতে পারে। যেমন বাণিজ্যিকভাবে এরকম হটহাউসে টমেটোগুলির দ্রুততম বৃদ্ধির জন্য দিনে তাপমাত্রা 25 ডিগ্রি সেন্টিগ্রেড এবং রাতে 20 ডিগ্রি সেলসিয়াস রাখতে হয়।
> 🍅 কৃত্রিম আলো, সার এর নিয়ন্ত্রণের সাথে তাপমাত্রার মেলবন্ধনের ফলে অর্থ বাণিজ্যিক উৎপাদকরা সারা বছর ধরে তাদের উৎপাদন বজায় রাখতে পারে।
## চারিপার্শ্বিক তাপমাত্রা পরিমাপ
আইওটি ডিভাইসের সাথে তাপমাত্রা সেন্সর ব্যবহার করে চারিপার্শ্বের তাপমাত্রা পরিমাপ করা যায়।
### কাজ - তাপমাত্রা পরিমাপ
আইওটি ডিভাইসটি ব্যবহার করে তাপমাত্রা পর্যবেক্ষণ করতে, পছন্দ অনুসারে নিচের যেকোন একটি গাইডের মাধ্যমে কাজ শুরু করতে হবে।
* [Arduino - Wio Terminal](wio-terminal-temp.md)
* [Single-board computer - Raspberry Pi](pi-temp.md)
* [Single-board computer - Virtual device](virtual-device-temp.md)
## Growing degree days
Growing degree days (যাকে growing degree units ও বলা হয়) হলো তাপমাত্রার ভিত্তিতে গাছের বৃদ্ধি পরিমাপ করার একটি উপায়। একটি উদ্ভিদে পর্যাপ্ত পরিমাণে জল, পুষ্টি এবং CO<sub>2</sub> রয়েছে - এমনটা ধরে নিয়েই, তাপমাত্রার ভিত্তিতে বৃদ্ধির হার নির্ধারণ করা হয়।
Growing degree days, সংক্ষেপে GDD কে উদিভের বেস তাপমাত্রার উপরে, প্রতিদিনের গড় তাপমাত্রা হিসেবে গণনা করা হয়। প্রতিটি উদ্ভিদে বৃদ্ধি, ফুল হওয়া বা উৎপাদন এবং পরিপক্ক হওয়ার জন্য নির্দিষ্ট সংখ্যক GDD প্রয়োজন। প্রতিদিন যত বেশি জিডিডি হবে, গাছটি তত দ্রুত বাড়বে।
GDD-এর সম্পূর্ণ সূত্রটি কিছুটা জটিল, তবে একটি সরলীকৃত সমীকরণ রয়েছে যা প্রায়শই একটি কাছাকাছি মান হিসাবে ব্যবহৃত হয়:
![GDD = T max + T min divided by 2, all minus T base](../../../../images/gdd-calculation.png)
* **GDD** - growing degree days এর সংখ্যা
* **T<sub>max</sub>** - এটি প্রতিদিনের সর্বোচ্চ তাপমাত্রা (ডিগ্রি সেলসিয়াসে)
* **T<sub>min</sub>** - এটি প্রতিদিনের সর্বনিম্ন তাপমাত্রা (ডিগ্রি সেলসিয়াসে)
* **T<sub>base</sub>** - এটি **উদ্ভিদের** বেইস তাপমাত্রা (ডিগ্রি সেলসিয়াসে)
> 💁 T<sub>max</sub> এর মান ৩০ ডিগ্রি এর বেশি হলে অথবা T<sub>min</sub> এর মান T<sub>base</sub> এর কম হলে এখানে কিছুটা পরিবর্তন আসে। তবে আমরা এখন আপাতত এই পরিবর্তনগুলো অগ্রাহ্য করবো।
### উদাহরণ - ভুট্টা 🌽
বিভিন্ন জাতের উপর নির্ভর করে, ভুট্টা পরিপক্ক হতে 800 এবং 2,700 জিডিডি প্রয়োজন (যখন বেস তাপমাত্রা 10 ডিগ্রি ্সেলসিয়াস)।
বেস তাপমাত্রার উপরে প্রথম দিন, নিম্নলিখিত তাপমাত্রা পরিমাপ করা হয়েছিল:
| পরিমাপ | তাপমাত্রা °C |
| :---------- | :-----: |
| সর্বোচ্চ | 16 |
| সর্বনিম্ন | 12 |
তাহলে,
* T<sub>max</sub> = 16
* T<sub>min</sub> = 12
* T<sub>base</sub> = 10
হিসেব করে পাই,
![GDD = 16 + 12 divided by 2, all minus 10, giving an answer of 4](../../../../images/gdd-calculation-corn.png)
ঐদিন ভুট্টা 4 জিডিডি পেয়েছিল। এটিকে 800 GDD চাহিদাসম্পন্ন জাত হিসেবে বিবেচনা করলে, উদ্ভিদটির পরিপক্ব হতে আরো 796 GDD প্রয়োজন।
✅ ছোট একটি গবেষণা করা যাক । বাগান, স্কুল বা স্থানীয় পার্কে যে কোনও উদ্ভিদের পরিপক্কতায় পৌঁছানোর জন্য বা ফসল উৎপাদনের জন্য প্রয়োজনীয় জিডিডি নম্বর নির্ণয় করা যায় কিনা দেখা যাক।
## তাপমাত্রা সেন্সরের তথ্য দিয়ে GDD নির্ণয়
গাছপালা নির্দিষ্ট তারিখ ধরে জন্মায় না - উদাহরণস্বরূপ আমরা কোনও বীজ রোপণ করতে রোপন করে এটা বলতে পারবোনা যে গাছটি ঠিক 100 দিন পরে ফলন দিবে। কৃষক হিসাবে আমরা বরং একটি উদ্ভিদ বাড়তে কত সময় নেয় তার ধরে সম্পর্কে মোটামুটি রাখতে পারি এবং সেই ধারণা অনুসারে প্রতিদিন ফসলগুলি প্রস্তুত হচ্ছে কিনা তা পরীক্ষা করে দেখতে পারি।
এভাবে গাছপালার প্রতি সার্বক্ষণিক নজর রাখাটা বড় খামারে অনেক সমস্যাপূর্ণ বিষয় কেননা এতে প্রচুর লোকবল দরকার এবং কোন ফলন অপ্রত্যাশিতভাবে তাড়াতাড়ি প্রস্তুত হয়ে গেলে, ঝুঁকি রয়েছে যে কৃষক হয়তো নজর এড়িয়ে যেতে পারে। তাপমাত্রা পরিমাপ করে, কৃষক একটি উদ্ভিদ এর জিডিডি গণনা করতে পারে এবং তখন কেবলমাত্র তাদের প্রত্যাশিত পরিপক্কতার সময়ের কাছাকাছি হলেই সার্বক্ষণিক নজরদারি করলেই হয়, এতে অতিরিক্ত শ্রম কমে আসে।
আইওটি ডিভাইস ব্যবহার করে তাপমাত্রার ডেটা সংগ্রহ করে, যখন গাছগুলি পরিপক্কতার কাছাকাছি থাকে তখন একজন কৃষককে স্বয়ংক্রিয়ভাবে অবহিত করা যায়। এর জন্য একটি সাধারণ একটি কার্যধারা হল আইওটি ডিভাইসগুলির দ্বারা তাপমাত্রা পরিমাপ করে, তারপরে MQTT-র মতো কিছু ব্যবহার করে এই টেলিমেট্রি ডেটা ইন্টারনেটে প্রকাশ করতে হবে। সার্ভার কোড তখন এই ডেটা গ্রহণ করে এবং এটি কোথাও সংরক্ষণ করে, যেমন কোনও ডাটাবেস এ। এতে করে এই ডেটাগুলি পরে বিশ্লেষণ করা যেতে পারে - যেমনঃ জিডিডি গণনা করা, নির্দিষ্ট পর্যন্ত প্রতিটি ফসলের জন্য মোট জিডিডি এর হিসেব রাখা এবং কোন উদ্ভিদ পরিপক্কতার কাছাকাছি গেলে, কৃষককে এই বিষয়ে সতর্ক করা।
![Telemetry data is sent to a server and then saved to a database](../../../../images/save-telemetry-database.png)
সার্ভার কোড অতিরিক্ত তথ্য যুক্ত করে ডেটা সমৃদ্ধ করতে পারে। উদাহরণস্বরূপ, আইওটি ডিভাইসটি নিজেকে চিহ্নিত করতে একটি সনাক্তকারী/আইডেন্টিফায়ার প্রকাশ করতে পারে এবং সার্ভার কোডটি ডিভাইসের অবস্থান এবং এটি কোন স্থানে কী ফসল পর্যবেক্ষণ করছে তা সন্ধান করতে এটি ব্যবহার করতে পারে। এটি চলমান সময়ের মতো বেসিক ডেটাও যুক্ত করতে পারে কারণ কিছু আইওটি ডিভাইসে সঠিক সময়ের উপর নজর রাখতে প্রয়োজনীয় হার্ডওয়্যার থাকেনা বা ইন্টারনেটের মাধ্যমে সময় এর হিসাব রাখতে অতিরিক্ত কোডের প্রয়োজন হয়।
✅ বিভিন্ন ফার্মের তাপমাত্রা ভিন্ন ভিন্ন হওয়ার কারণ কী হতে পারে?
### কাজ - তাপমাত্রা সংক্রান্ত তথ্য প্রকাশ করা
আইওটি ডিভাইস ব্যবহার করে MQTT এর মাধ্যমে তাপমাত্রার ডেটা প্রকাশের জন্য নীচের যেকোন একটি গাইডের মাধ্যমে কাজ শুরু করতে হবে:
* [Arduino - Wio Terminal](wio-terminal-temp-publish.md)
* [Single-board computer - Raspberry Pi/Virtual IoT device](single-board-computer-temp-publish.md)
### কাজ - তাপমাত্রা সংক্রান্ত তথ্য গ্রহণ ও সংরক্ষণ
আইওটি ডিভাইসটি টেলিমেট্রি প্রকাশ করার পরে, এমনভাবে কোড লিখতে হবে সার্ভার কোডটি এই ডেটাতে সাবস্ক্রাইব এবং সংরক্ষণ করে। এটি একটি ডেটাবেজে সংরক্ষণের পরিবর্তে, সার্ভার কোড এটি একটি Comma Separated Values (CSV) ফাইলে সংরক্ষণ করবে। CSV ফাইল মানগুলির সারি হিসাবে ডেটা সংরক্ষণ করে; প্রতিটি মান একটি কমা দ্বারা পৃথক করা হয় এবং প্রতিটি রেকর্ড নতুন লাইনে থাকে। ফাইল হিসাবে ডেটা সংরক্ষণ করার জন্য এটি বেশ সুবিধাজনক, যা মানব-পঠনযোগ্য এবং অবশ্যই একটি ভাল উপায়।
এই CSV ফাইলে দুটি কলাম থাকবে - *তারিখ* এবং *তাপমাত্রা* । এখানে *তারিখ* কলামটিতে সার্ভার কর্তৃক ম্যাসেজ পাওয়ার সময় ও তারিখ থাকে এবং *তাপমাত্রা* সংক্রান্ত তথ্য আসে টেলিমেট্রি থেকে।
1. টেলিমেট্রিতে সাবস্ক্রাইব করার জন্য সার্ভার কোড তৈরি করতে লেসন 4 এ এই ধাপগুলি পুনরাবৃত্তি করতে হবে। কমান্ডগুলি প্রকাশ করার জন্য আলাদা কোড যুক্ত করার দরকার নেই।
ধাপগুলো হলোঃ
* পাইথন ভার্চুয়াল এনভায়রনমেন্ট কনফিগার এবং একটিভেট করা ।
* এরপর paho-mqtt pip package ইন্সটল করতে হবে।
* টেলিমেট্রিতে যেসকল MQTT messages প্রকাশিত হয়েছে তা একসেস করতে হলে কোড লিখতে হবে।
> ⚠️ এক্ষেত্রে [লেসন 4 এ প্রদেয়, টেলিমেট্রি ডেটা রিসিভ করার জন্য পাইথন কোড ](../../../../1-getting-started/lessons/4-connect-internet/README.md#receive-telemetry-from-the-mqtt-broker) আমরা অনুসরণ করতে পারি।
এই প্রজেক্টের জন্য ফোল্ডারের নাম দিই `temperature-sensor-server`.
1. নিশ্চিত করতে হবে যেন `client_name` এ এই প্রজেক্টের ইঙ্গিত থাকে:
```cpp
client_name = id + 'temperature_sensor_server'
```
1. আগে থেকে এসকম ইম্পোর্ট রয়েছে তার নীচে এগুলো যুক্ত করতে হবে:
```python
from os import path
import csv
from datetime import datetime
```
এটি ফাইলগুলি পড়ার জন্য একটি লাইব্রেরি ইম্পোর্ট করে । এছাড়াও সিএসভি ফাইলগুলির সাথে যোগাযোগের জন্য একটি লাইব্রেরি এবং তারিখ ও সময়গুলির সংরক্ষণের জন্যে একটি লাইব্রেরি অন্তর্ভুক্ত হয়।
1. তারপর`handle_telemetry` function এর পূর্বে এই কোড যুক্ত করতে হবে:
```python
temperature_file_name = 'temperature.csv'
fieldnames = ['date', 'temperature']
if not path.exists(temperature_file_name):
with open(temperature_file_name, mode='w') as csv_file:
writer = csv.DictWriter(csv_file, fieldnames=fieldnames)
writer.writeheader()
```
এই কোডে কিছু কনস্ট্যান্ট ডিক্লেয়ার করা হয়েছে - যে CSV ফাইলে ডেটা রাখা হবে সেটির একং কলাম হেডারগুলোর নামকরণ এর জন্য। কোন সিএসভি ফাইলের প্রথম সারিতে সাধারণত কমা দ্বারা আলাদাকৃত ভাবে কলামের শিরোনাম বা হেডার থাকে।
কোডটি পরীক্ষা করে দেখ সিএসভি ফাইল ইতিমধ্যে বিদ্যমান কিনা । যদি এটি বিদ্যমান না থাকে তবে এটি প্রথম সারিতে কলাম শিরোনাম দিয়ে তৈরি করা হবে।
1. `handle_telemetry` function এর পর নিম্নোক্ত কোড যুক্ত করতে হবে:
```python
with open(temperature_file_name, mode='a') as temperature_file:
temperature_writer = csv.DictWriter(temperature_file, fieldnames=fieldnames)
temperature_writer.writerow({'date' : datetime.now().astimezone().replace(microsecond=0).isoformat(), 'temperature' : payload['temperature']})
```
এই কোড CSV file টি খুলে এতে নতুন সারি যুক্ত করবে। সেই সারিতে আইওটি ডিভাইস থেকে প্রাপ্ত তাপমাত্রা এবং তখনকার সময় ও তারিখ আমাদের বোধগম্য ফরম্যাটে রাখা হয়। এই তথ্যসমূহ [ISO 8601 ফরম্যাট](https://wikipedia.org/wiki/ISO_8601) অনুসরণ করে, নির্দিষ্ট টাইমজোন সহ, তবে এখানে মাইক্রোসেকেন্ড আকারে সময় সংরক্ষিত হয়।
1. আগের মতই এই কোডটি রান করতে হবে - এদিকে এটাও নিশ্চিত করতে হবে যে আইওটি ডিভাইস থেকে ডেটা পাঠানো হচ্ছে। দেখা যাবে `temperature.csv`নামে একটি ফোল্ডার তৈরী হয়েছে একই ফোল্ডারে। এটি খুললে দেখা যাবে, তারিখ-সময় এবং তাপমাত্রা রয়েছে।
```output
date,temperature
2021-04-19T17:21:36-07:00,25
2021-04-19T17:31:36-07:00,24
2021-04-19T17:41:36-07:00,25
```
1. তথ্য সংগ্রহের জন্য এই কোডটিও রান করি। জিডিডি গণনার জন্য পর্যাপ্ত ডেটা সংগ্রহ করার জন্য আমাদের পুরো দিন ধরে এটি রান করানো উচিত।
> 💁 যদি আমরা Virtual IoT Device ব্যবহার করে থাকি, সেক্ষেত্রে র‍্যান্ডম চেকবাক্সটি নির্বাচন করতে হবে এবং প্রতিবার তাপমাত্রার মান একই আসার বিষয়টি এড়াতে একটি সীমা নির্ধারণ করতে হবে।
![Select the random checkbox and set a range](../../../../images/select-the-random-checkbox-and-set-a-range.png)
> 💁 যদি এটি একটি পুরো দিন চালনা করতে চাই, তবে আমাদেরকে অবশ্যই এটি নিশ্চিত করতে হবে, যে সার্ভারে কোডটি চলছে সেই কম্পিউটারটি সারাদিন কাজ করবে। এক্ষেত্রে হয় আমাদেরকে পাওয়ার সেটিং ঠিক করে নিতে হবে অথবা [সিস্টেমকে একটিভ রাখার পাইথন স্ক্রিপ্ট](https://github.com/jaqsparow/keep-system-active) এর মতো কিছু ব্যবহার করতে হবে।
> 💁 এই কোডগুলো [code-server/temperature-sensor-server](code-server/temperature-sensor-server) ফোল্ডারে পাওয়া যাবে।
### কাজ - সঞ্চিত ডেটা ব্যবহার করে জিডিডি গণনাকরণ
একবার সার্ভার তাপমাত্রার ডেটা ক্যাপচার করে নিলে, একটি গাছের জন্য জিডিডি গণনা করা যায়।
এটি ম্যানুয়ালি করার ধাপগুলি হল:
1. উদ্ভিদের জন্য আগে বেস তাপমাত্রা নির্ণয়. যেমন, সট্রবেরির জন্য এটি ১°C.
1. এরপর `temperature.csv`থেকে, দিনের সর্বোচ্চ এবং সর্বনিম্ন তাপমাত্রা বের করতে হবে।
1. পূর্বে প্রদত্ত সূত্র ব্যবহার করে জিডিডি গণনা করতে হবে।
উদাহরণস্বরূপ, যদি দিনের সর্বোচ্চ তাপমাত্রা ২৫°C হয় এবং সর্বনিম্ন ১২°C হয়:
![GDD = 25 + 12 divided by 2, then subtract 10 from the result giving 8.5](../../../../images/gdd-calculation-strawberries.png)
* 25 + 12 = 37
* 37 / 2 = 18.5
* 18.5 - 10 = 8.5
এখানে স্ট্রবেরির জন্য মান এসেছে **8.5** GDD । যেহেতু স্ট্রবেরির ফলনের জন্য ২৫০ জিডিডি প্রয়োজন, তাহলে আরো অনেকদিন হাতে রয়েছে।
---
## 🚀 চ্যালেঞ্জ
উদ্ভিদের বৃদ্ধির জন্য তাপ ছাড়াও আরো কিছু বিষয় প্রয়োজন। আর কি কি জিনিস দরকার এক্ষেত্রে?
এই অতিরিক্ত ফ্যাক্টরগুলোর জন্য কী সেন্সর রয়েছে যা সেগুলি পরিমাপ করতে পারে ? এই স্তরগুলি নিয়ন্ত্রণ করতে একচুয়েটর ব্যবহার করা যায়? উদ্ভিদের বৃদ্ধি অনুকূল করতে কীভাবে এক বা একাধিক আইওটি ডিভাইস যুক্ত করলে ভালো ফল আসবে ?
## লেকচার পরবর্তী কুইজ
[লেকচার পরবর্তী কুইজ](https://brave-island-0b7c7f50f.azurestaticapps.net/quiz/10)
## রিভিউ এবং স্ব-অধ্যয়ন
ডিজিটাল কৃষিব্যবস্থা সম্পর্কে আরো জানতে [Digital Agriculture Wikipedia page](https://wikipedia.org/wiki/Digital_agriculture) পড়া যায়। এছাড়াও [Precision Agriculture](https://wikipedia.org/wiki/Precision_agriculture) এর ব্যাপারেও আরো জানার চেষ্টা করা উচিত।
জিডিডি গণনা এখানে দেওয়া সরলীকৃত সূত্রের চেয়ে কিছুটা জটিল। এই সংক্রান্ত বিষয়ে আরো জানতে এবং বেস তাপমাত্রার নিচে দৈনিক তাপমাত্রা হলে তা কিভাবে ম্যানেজ করা যায় সেই সংক্রান্ত তথ্য [Growing Degree Day Wikipedia page](https://wikipedia.org/wiki/Growing_degree-day) এ পাওয়া যাবে।
## এসাইনমেন্ট
[জুপিটার নোটবুক ব্যবহার করে জিডিডি ডেটা প্রদর্শন করা](assignment.md)

@ -0,0 +1,43 @@
# জুপিটার নোটবুক ব্যবহার করে জিডিডি ডেটা প্রদর্শন করা
## নির্দেশাবলী
এই পাঠে আমরা আইওটি সেন্সর ব্যবহার করে জিডিডি ডেটা সংগ্রহ করেছি। ভাল জিডিডি ডেটা পেতে, আমাদেরকে একাধিক দিনের জন্য ডেটা সংগ্রহ করতে হবে। তাপমাত্রার ডেটা ভিজ্যুয়ালাইজ করতে এবং জিডিডি গণনা করা বা ডেটা বিশ্লেষণ করতে [জুপিটার নোটবুকস](https://jupyter.org) এর মতো ট্যুল ব্যবহার করা যেতে পারে।
কিছুদিন ডেটা সংগ্রহের মাধ্যমে কাজ শুরু করতে হবে। আইওটি ডিভাইসটি চলমান সময়ে আমাদের সার্ভার কোড যে চলমান রয়েছে তা নিশ্চিত করতে হবে, হয় পাওয়ার ম্যানেজমেন্ট সেটিংস ঠিক করে বা কোন [ সিস্টেমকে অ্যাক্টিভ রাখার পাইথন স্ক্রিপ্ট](https://github.com/jaqsparow/keep-system-active) এর মতো কিছু চালিয়ে।
একবার তাপমাত্রার ডেটা পেয়ে গেলে আমরা এটি দেখতে এবং জিডিডি গণনা করতে এই রেপোতে জুপিটার নোটবুকটি ব্যবহার করতে পার্রি। জুপিটার নোটবুক এ ব্লক হিসেবে *সেল* এ কোড এবং নির্দেশাবলী মিশ্রিত থাকে, এবং সাধারণত পাইথনেই কোড করা হয়। নির্দেশাবলী পড়ে, তারপরে কোডের প্রতিটি ব্লক বাই ব্লক রান করতে হবে। এখানে প্রদত্ত কোডটি এডিট করা যেতে পারে। উদাহরণস্বরূপ, এই নোটবুকটিতে, য়ামরা আমাদের গাছের জন্য জিডিডি গণনা করতে ব্যবহৃত বেস তাপমাত্রা, উদ্ভিদভেদে ভিন্ন ভিন্ন হবে।
1. `gdd-calculation` নামে একটি ফোল্ডার খুলতে হবে।
1. [gdd.ipynb](./code-notebook/gdd.ipynb) ডাউনলোড করে তার একটি কপি `gdd-calculation` ফোল্ডারে রাখতে হবে।
1. MQTT সার্ভার দ্বারা তৈরী `temperature.csv` ফাইলটি কপি করতে হবে।
1. `gdd-calculation` ফোল্ডারে নতুন পাইথন এনভায়রনমেন্ট তৈরী করতে হবে।
1. জুপিটার নোটবুকে কিছু পিপ প্যাকেজ ইন্সটল করতে হবে।
```sh
pip install --upgrade pip
pip install pandas
pip install matplotlib
pip install jupyter
```
1. নোটবুকটি জুপিটারে রান করতে হবে
```sh
jupyter notebook gdd.ipynb
```
জুপিটারটি শুরু হয়ে ব্রাউজারে নোটবুকটি খুলবে। তাপমাত্রা পরিমাপ করা এবং জিডিডি গণনা করতে নোটবুকের নির্দেশাবলীর মাধ্যমে কাজ করতে হবে।
![The jupyter notebook](../../../images/gdd-jupyter-notebook.png)
## এসাইনমেন্ট মূল্যায়ন মানদন্ড
| ক্রাইটেরিয়া | দৃষ্টান্তমূলক ব্যখ্যা (সর্বোত্তম) | পর্যাপ্ত ব্যখ্যা (মাঝারি) | আরো উন্নতির প্রয়োজন (নিম্ন) |
| -------- | --------- | -------- | ----------------- |
| ডেটা সংগ্রহ করা | কমপক্ষে ২টি সম্পূর্ণ দিনের ডেটা সংগ্রহ করা | কমপক্ষে ১টি সম্পূর্ণ দিনের ডেটা সংগ্রহ করা | কিছু ডেটা সংগ্রহ করা |
| জিডিডি গণনা করা | সফলতার সাথে নোটবুক রান করে জিডিডি গণনা | সফলতার সাথে নোটবুক রান করা | নোটবুক রান করতে ব্যার্থ |

@ -1,5 +1,9 @@
# Detect soil moisture
![A sketchnote overview of this lesson](../../../sketchnotes/lesson-6.jpg)
> Sketchnote by [Nitya Narasimhan](https://github.com/nitya). Click the image for a larger version.
## Pre-lecture quiz
[Pre-lecture quiz](https://brave-island-0b7c7f50f.azurestaticapps.net/quiz/11)

@ -1,5 +1,9 @@
# Automated plant watering
![A sketchnote overview of this lesson](../../../sketchnotes/lesson-7.jpg)
> Sketchnote by [Nitya Narasimhan](https://github.com/nitya). Click the image for a larger version.
## Pre-lecture quiz
[Pre-lecture quiz](https://brave-island-0b7c7f50f.azurestaticapps.net/quiz/13)

@ -1,5 +1,9 @@
# Migrate your plant to the cloud
![A sketchnote overview of this lesson](../../../sketchnotes/lesson-8.jpg)
> Sketchnote by [Nitya Narasimhan](https://github.com/nitya). Click the image for a larger version.
## Pre-lecture quiz
[Pre-lecture quiz](https://brave-island-0b7c7f50f.azurestaticapps.net/quiz/15)

@ -1,5 +1,9 @@
# Migrate your application logic to the cloud
![A sketchnote overview of this lesson](../../../sketchnotes/lesson-9.jpg)
> Sketchnote by [Nitya Narasimhan](https://github.com/nitya). Click the image for a larger version.
## Pre-lecture quiz
[Pre-lecture quiz](https://brave-island-0b7c7f50f.azurestaticapps.net/quiz/17)

@ -1,5 +1,9 @@
# Keep your plant secure
![A sketchnote overview of this lesson](../../../sketchnotes/lesson-10.jpg)
> Sketchnote by [Nitya Narasimhan](https://github.com/nitya). Click the image for a larger version.
## Pre-lecture quiz
[Pre-lecture quiz](https://brave-island-0b7c7f50f.azurestaticapps.net/quiz/19)

@ -1,9 +0,0 @@
# Dummy File
This file acts as a placeholder for the `translations` folder. <br>
**Please remove this file after adding the first translation**
For the instructions, follow the directives in the [translations guide](https://github.com/microsoft/IoT-For-Beginners/blob/main/TRANSLATIONS.md) .
## THANK YOU
We truly appreciate your efforts!

@ -0,0 +1,20 @@
# কৃষিকাজে IoT
জনসংখ্যা যেমন বাড়ছে, তেমনি কৃষির চাহিদাও বাড়ছে। কৃষিজমির পরিমাণ অতোটা পরিবর্তন না হলেও, জলবায়ুর পরিবর্তন ঠিকই হচ্ছে - যা কৃষকদের আরও বেশি সমস্যার মুখে ফেলে দিচ্ছে, বিশেষত সেই ২বিলিয়ন [জীবিকা নির্বাহী কৃষক](https://wikipedia.org/wiki/Subsistence_agriculture) যাদের ফসল বেড়ে ওঠার উপর নির্ভর করেই তাদের পরিবারের অন্নসংস্থান হয়। কোন ধরণের ফসল উৎপাদন করা যাবে, কখন কাজ শুরু করা উচিত, ফলনের বৃদ্ধি, শারিরীক শ্রমের পরিমাণ হ্রাস এবং কীটপতঙ্গগুলি সনাক্ত ও তাদেরকে বিনাশ করার বিষয়ে কৃষকদের অনেকাংশে সাহায্য করতে পারে আইওটি ।
এই ৬টি লেসনে আমরা শিখবো কীভাবে কৃষিকাজ উন্নত ও স্বয়ংক্রিয় করতে ইন্টারনেট অফ থিংস প্রয়োগ করা যায়।
> 💁 এই লেসনগুলোতে আমরা ক্লাউড রিসোর্স ব্যবহার করবো। যদি এই অধ্যায়ের সমস্ত পাঠ সম্পূর্ণ করা সম্ভব নাও হয়, তবুও [Clean up your project](../clean-up.md) অংশটি অবশ্যই দেখে নিতে হবে।
## বিষয়াবলী
1. [আইওটি দ্বারা উদ্ভিদ বৃদ্ধির পূর্বাভাস](lessons/1-predict-plant-growth/README.md)
1. [মাটির আর্দ্রতা সনাক্তকরণ](lessons/2-detect-soil-moisture/README.md)
1. [স্বয়ংক্রিয়ভাবে গাছে সেচকার্য](lessons/3-automated-plant-watering/README.md)
1. [উদ্ভিদকে ক্লাউড থেকে নিয়ন্ত্রণ](lessons/4-migrate-your-plant-to-the-cloud/README.md)
1. [ক্লাউড থেকে এপ্লিকেশন নিয়ন্ত্রণ](lessons/5-migrate-application-to-the-cloud/README.md)
1. [উদ্ভিদের নিরাপত্তা নিশ্চিতকরণ](lessons/6-keep-your-plant-secure/README.md)
## ক্রেডিট
♥️ প্রতিটি লেসনই ভালোবাসার সাথে তৈরী করেছেন [Jim Bennett](https://GitHub.com/JimBobBennett)

@ -1,5 +1,9 @@
# Location tracking
![A sketchnote overview of this lesson](../../../sketchnotes/lesson-11.jpg)
> Sketchnote by [Nitya Narasimhan](https://github.com/nitya). Click the image for a larger version.
## Pre-lecture quiz
[Pre-lecture quiz](https://brave-island-0b7c7f50f.azurestaticapps.net/quiz/21)

@ -1,5 +1,9 @@
# Store location data
![A sketchnote overview of this lesson](../../../sketchnotes/lesson-12.jpg)
> Sketchnote by [Nitya Narasimhan](https://github.com/nitya). Click the image for a larger version.
## Pre-lecture quiz
[Pre-lecture quiz](https://brave-island-0b7c7f50f.azurestaticapps.net/quiz/23)

@ -1,5 +1,9 @@
# Visualize location data
![A sketchnote overview of this lesson](../../../sketchnotes/lesson-13.jpg)
> Sketchnote by [Nitya Narasimhan](https://github.com/nitya). Click the image for a larger version.
This video gives an overview of Azure Maps with IoT, a service that will be covered in this lesson.
[![Azure Maps - The Microsoft Azure Enterprise Location Platform](https://img.youtube.com/vi/P5i2GFTtb2s/0.jpg)](https://www.youtube.com/watch?v=P5i2GFTtb2s)

@ -1,5 +1,9 @@
# Geofences
![A sketchnote overview of this lesson](../../../sketchnotes/lesson-14.jpg)
> Sketchnote by [Nitya Narasimhan](https://github.com/nitya). Click the image for a larger version.
This video gives an overview of geofences and how to use them in Azure Maps, topics that will be covered in this lesson:
[![Geofencing with Azure Maps from the Microsoft Developer IoT show](https://img.youtube.com/vi/nsrgYhaYNVY/0.jpg)](https://www.youtube.com/watch?v=nsrgYhaYNVY)

@ -21,4 +21,4 @@ In these 4 lessons you'll learn how to train image-based AI models to detect fru
## Credits
All the lessons were written with ♥️ by [Jim Bennett](https://GitHub.com/JimBobBennett)
All the lessons were written with ♥️ by [Jen Fox](https://github.com/jenfoxbot) and [Jim Bennett](https://GitHub.com/JimBobBennett)

@ -1,5 +1,9 @@
# Train a fruit quality detector
![A sketchnote overview of this lesson](../../../sketchnotes/lesson-15.jpg)
> Sketchnote by [Nitya Narasimhan](https://github.com/nitya). Click the image for a larger version.
This video gives an overview of the Azure Custom Vision service, a service that will be covered in this lesson.
[![Custom Vision Machine Learning Made Easy | The Xamarin Show](https://img.youtube.com/vi/TETcDLJlWR4/0.jpg)](https://www.youtube.com/watch?v=TETcDLJlWR4)

@ -1,5 +1,9 @@
# Check fruit quality from an IoT device
![A sketchnote overview of this lesson](../../../sketchnotes/lesson-16.jpg)
> Sketchnote by [Nitya Narasimhan](https://github.com/nitya). Click the image for a larger version.
## Pre-lecture quiz
[Pre-lecture quiz](https://brave-island-0b7c7f50f.azurestaticapps.net/quiz/31)

@ -1,5 +1,9 @@
# Run your fruit detector on the edge
![A sketchnote overview of this lesson](../../../sketchnotes/lesson-17.jpg)
> Sketchnote by [Nitya Narasimhan](https://github.com/nitya). Click the image for a larger version.
This video gives an overview of running image classifiers on IoT devices, the topic that is covered in this lesson.
[![Custom Vision AI on Azure IoT Edge](https://img.youtube.com/vi/_K5fqGLO8us/0.jpg)](https://www.youtube.com/watch?v=_K5fqGLO8us)

@ -1,5 +1,9 @@
# Trigger fruit quality detection from a sensor
![A sketchnote overview of this lesson](../../../sketchnotes/lesson-18.jpg)
> Sketchnote by [Nitya Narasimhan](https://github.com/nitya). Click the image for a larger version.
## Pre-lecture quiz
[Pre-lecture quiz](https://brave-island-0b7c7f50f.azurestaticapps.net/quiz/35)

@ -1,5 +1,9 @@
# Train a stock detector
![A sketchnote overview of this lesson](../../../sketchnotes/lesson-19.jpg)
> Sketchnote by [Nitya Narasimhan](https://github.com/nitya). Click the image for a larger version.
This video gives an overview of Object Detection the Azure Custom Vision service, a service that will be covered in this lesson.
[![Custom Vision 2 - Object Detection Made Easy | The Xamarin Show](https://img.youtube.com/vi/wtTYSyBUpFc/0.jpg)](https://www.youtube.com/watch?v=wtTYSyBUpFc)
@ -105,7 +109,7 @@ You can train an object detector using Custom Vision, in a similar way to how yo
Call your project `stock-detector`.
When you create your project, make sure to use the `stock-detector-training` resource you created earlier. Use *Object Detection* project type, and the *Products on Shelves* domain.
When you create your project, make sure to use the `stock-detector-training` resource you created earlier. Use the *Object Detection* project type, and the *Products on Shelves* domain.
![The settings for the custom vision project with the name set to fruit-quality-detector, no description, the resource set to fruit-quality-detector-training, the project type set to classification, the classification types set to multi class and the domains set to food](../../../images/custom-vision-create-object-detector-project.png)
@ -135,7 +139,7 @@ To train your model you will need a set of images containing the objects you wan
![Tagging some tomato paste](../../../images/object-detector-tag-tomato-paste.png)
> 💁 If you have more than 15 images for each object, you can train after 15 then use the **Suggested tags** feature. This will use the trained model to detect the objecs in the untagged image. You can then confirm the detected objects, or reject and re-draw the bounding boxes. This can save a *lot* of time.
> 💁 If you have more than 15 images for each object, you can train after 15 then use the **Suggested tags** feature. This will use the trained model to detect the objects in the untagged image. You can then confirm the detected objects, or reject and re-draw the bounding boxes. This can save a *lot* of time.
1. Follow the [Train the detector section of the Build an object detector quickstart on the Microsoft docs](https://docs.microsoft.com/azure/cognitive-services/custom-vision-service/get-started-build-detector?WT.mc_id=academic-17441-jabenn#train-the-detector) to train the object detector on your tagged images.

@ -1,5 +1,9 @@
# Check stock from an IoT device
![A sketchnote overview of this lesson](../../../sketchnotes/lesson-20.jpg)
> Sketchnote by [Nitya Narasimhan](https://github.com/nitya). Click the image for a larger version.
## Pre-lecture quiz
[Pre-lecture quiz](https://brave-island-0b7c7f50f.azurestaticapps.net/quiz/39)

@ -1,5 +1,9 @@
# Recognize speech with an IoT device
![A sketchnote overview of this lesson](../../../sketchnotes/lesson-21.jpg)
> Sketchnote by [Nitya Narasimhan](https://github.com/nitya). Click the image for a larger version.
This video gives an overview of the Azure speech service, a topic that will be covered in this lesson:
[![How to get started using your Cognitive Services Speech resource from the Microsoft Azure YouTube channel](https://img.youtube.com/vi/iW0Fw0l3mrA/0.jpg)](https://www.youtube.com/watch?v=iW0Fw0l3mrA)

@ -1,5 +1,9 @@
# Understand language
![A sketchnote overview of this lesson](../../../sketchnotes/lesson-22.jpg)
> Sketchnote by [Nitya Narasimhan](https://github.com/nitya). Click the image for a larger version.
## Pre-lecture quiz
[Pre-lecture quiz](https://brave-island-0b7c7f50f.azurestaticapps.net/quiz/43)

@ -1,5 +1,9 @@
# Set a timer and provide spoken feedback
![A sketchnote overview of this lesson](../../../sketchnotes/lesson-23.jpg)
> Sketchnote by [Nitya Narasimhan](https://github.com/nitya). Click the image for a larger version.
## Pre-lecture quiz
[Pre-lecture quiz](https://brave-island-0b7c7f50f.azurestaticapps.net/quiz/45)
@ -117,6 +121,7 @@ SSML has ways to change how words are spoken, such as adding emphasis to certain
* Read more on speech synthesis on the [Speech synthesis page on Wikipedia](https://wikipedia.org/wiki/Speech_synthesis)
* Read more on ways criminals are using speech synthesis to steal on the [Fake voices 'help cyber crooks steal cash' story on BBC news](https://www.bbc.com/news/technology-48908736)
* Learn more about the risks to voice actors from synthesized versions of their voices in the [This TikTok Lawsuit Is Highlighting How AI Is Screwing Over Voice Actors article on Vice](https://www.vice.com/en/article/z3xqwj/this-tiktok-lawsuit-is-highlighting-how-ai-is-screwing-over-voice-actors)
## Assignment

@ -1,5 +1,9 @@
# Support multiple languages
![A sketchnote overview of this lesson](../../../sketchnotes/lesson-24.jpg)
> Sketchnote by [Nitya Narasimhan](https://github.com/nitya). Click the image for a larger version.
This video gives an overview of the Azure speech services, covering speech to text and text to speech from earlier lessons, as well as translating speech, a topic covered in this lesson:
[![Recognizing speech with a few lines of Python from Microsoft Build 2020](https://img.youtube.com/vi/h6xbpMPSGEA/0.jpg)](https://www.youtube.com/watch?v=h6xbpMPSGEA)
@ -44,7 +48,7 @@ For example, translating "Hello world" from English into French can be performed
Substitutions don't work when different languages use different ways of saying the same thing. For example, the English sentence "My name is Jim", translates into "Je m'appelle Jim" in French - literally "I call myself Jim". "Je" is French for "I", "moi" is me, but is concatenated with the verb as it starts with a vowel, so becomes "m'", "appelle" is to call, and "Jim" isn't translated as it's a name, and not a word that can be translated. Word ordering also becomes an issue - a simple substitution of "Je m'appelle Jim" becomes "I myself call Jim", with a different word order to English.
> 💁 Some words are never translated - my name is Jim regardless of which language is used to introduce me.
> 💁 Some words are never translated - my name is Jim regardless of which language is used to introduce me. When translating to languages that use different alphabets, or use different letters for different sounds, then words can be *transliterated*, that is selecting letters or characters that give the appropriate sound to sound the same as the given word.
Idioms are also a problem for translation. These are phrases that have an understood meaning that is different from a direct interpretation of the words. For example, in English the idiom "I've got ants in my pants" does not literally refer to having ants in your clothing, but to being restless. If you translated this to German, you would end up confusing the listener, as the German version is "I have bumble bees in the bottom".

@ -14,7 +14,9 @@ Azure Cloud Advocates at Microsoft are pleased to offer a 12-week, 24-lesson cur
The projects cover the journey of food from farm to table. This includes farming, logistics, manufacturing, retail and consumer - all popular industry areas for IoT devices.
![A road map for the course showing 24 lessons covering intro, farming, transport, processing, retail and cooking](sketchnotes/Roadmap.png)
![A road map for the course showing 24 lessons covering intro, farming, transport, processing, retail and cooking](sketchnotes/Roadmap.jpg)
> Sketchnote by [Nitya Narasimhan](https://github.com/nitya). Click the image for a larger version.
**Hearty thanks to our authors [Jen Fox](https://github.com/jenfoxbot), [Jen Looper](https://github.com/jlooper), [Jim Bennett](https://github.com/jimbobbennett), and our sketchnote artist [Nitya Narasimhan](https://github.com/nitya).**
@ -24,11 +26,13 @@ The projects cover the journey of food from farm to table. This includes farming
> **Students**, to use this curriculum on your own, fork the entire repo and complete the exercises on your own, starting with a pre-lecture quiz, then reading the lecture and completing the rest of the activities. Try to create the projects by comprehending the lessons rather than copying the solution code; however that code is available in the /solutions folders in each project-oriented lesson. Another idea would be to form a study group with friends and go through the content together. For further study, we recommend [Microsoft Learn](https://docs.microsoft.com/users/jimbobbennett/collections/ke2ehd351jopwr?WT.mc_id=academic-17441-jabenn).
<!--
> Your promo video here
[![Promo video](./images/iot-for-beginners.png)](https://youtube.com/watch?v=R1wrdtmBSII "Promo video")
> 💁 Click the image above for a video about the project!
-->
## Pedagogy
@ -40,13 +44,15 @@ In addition, a low-stakes quiz before a class sets the intention of the student
Each project is be based around real-world hardware available to students and hobbyists. Each project looks into the specific project domain, providing relevant background knowledge. To be a successful developer it helps to understand the domain in which you are solving problems, providing this background knowledge allows students to think about their IoT solutions and learnings in the context of the kind of real-world problem that they might be asked to solve as an IoT developer. Students learn the 'why' of the solutions they are building, and get an appreciation of the end user.
We have two choices of IoT hardware to use for the projects depending on personal preference, programming language knowledge or preferences, learning goals and availability. We have also provided a 'virtual hardware' version for those who don't have access to hardware, or want to learn mode before committing to a purchase. You can read more and find a 'shopping list' on the [hardware page](./hardware.md).
## Hardware
We have two choices of IoT hardware to use for the projects depending on personal preference, programming language knowledge or preferences, learning goals and availability. We have also provided a 'virtual hardware' version for those who don't have access to hardware, or want to learn mode before committing to a purchase. You can read more and find a 'shopping list' on the [hardware page](./hardware.md), including links to buy complete kits from our friends at Seeed Studio.
> 💁 Find our [Code of Conduct](CODE_OF_CONDUCT.md), [Contributing](CONTRIBUTING.md), and [Translation](TRANSLATIONS.md) guidelines. We welcome your constructive feedback!
## Each lesson includes:
- optional sketchnote
- sketchnote
- optional supplemental video
- pre-lesson warmup quiz
- written lesson
@ -92,6 +98,15 @@ We have two choices of IoT hardware to use for the projects depending on persona
You can run this documentation offline by using [Docsify](https://docsify.js.org/#/). Fork this repo, [install Docsify](https://docsify.js.org/#/quickstart) on your local machine, and then in the root folder of this repo, type `docsify serve`. The website will be served on port 3000 on your localhost: `localhost:3000`.
### PDF
You can generate a PDF of this content for offline access if needed. To do this, make sure you have [npm installed](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) and run the following commands in the root folder of this repo:
```sh
npm i
npm run convert
```
## Image attributions
You can find all the attributions for the images used in this curriculum where required in the [Attributions](./attributions.md).

@ -37,3 +37,5 @@ Are you sure you want to perform this operation? (y/n):
Enter `y` to confirm and delete the Resource Group.
It will take a while to delete all the services.
> 💁 You can read more about deleting resource groups on the [Azure Resource Manager resource group and resource deletion documentation on Microsoft Docs](https://docs.microsoft.com/azure/azure-resource-manager/management/delete-resource-group?tabs=azure-cli&WT.mc_id=academic-17441-jabenn)

@ -16,8 +16,17 @@ You will also need a few non-technical items, such as soil or a pot plant, and f
Seeed Studios have very kindly made all the hardware available as easy to purchase kits:
* [IoT for beginners with Seeed and Microsoft - Wio Terminal Starter Kit](https://www.seeedstudio.com/IoT-for-beginners-with-Seeed-and-Microsoft-Wio-Terminal-Starter-Kit-p-5006.html)
* [IoT for beginners with Seeed and Microsoft - Raspberry Pi 4 Starter Kit](https://www.seeedstudio.com/IoT-for-beginners-with-Seeed-and-Microsoft-Raspberry-Pi-Starter-Kit.html)
### Arduino - Wio Terminal
**[IoT for beginners with Seeed and Microsoft - Wio Terminal Starter Kit](https://www.seeedstudio.com/IoT-for-beginners-with-Seeed-and-Microsoft-Wio-Terminal-Starter-Kit-p-5006.html)**
[![The Wio Terminal hardware kit](./images/wio-hardware-kit.png)](https://www.seeedstudio.com/IoT-for-beginners-with-Seeed-and-Microsoft-Wio-Terminal-Starter-Kit-p-5006.html)
### Raspberry Pi
**[IoT for beginners with Seeed and Microsoft - Raspberry Pi 4 Starter Kit](https://www.seeedstudio.com/IoT-for-beginners-with-Seeed-and-Microsoft-Raspberry-Pi-Starter-Kit.html)**
[![The Raspberry Pi Terminal hardware kit](./images/pi-hardware-kit.png)](https://www.seeedstudio.com/IoT-for-beginners-with-Seeed-and-Microsoft-Raspberry-Pi-Starter-Kit.html)
## Arduino

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 96 KiB

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 762 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 502 KiB

2803
package-lock.json generated

File diff suppressed because it is too large Load Diff

Binary file not shown.

@ -1619,7 +1619,843 @@
]
}
]
},
{
"id": 33,
"title": "Lesson 17 - Run your fruit detector on the edge: Pre-Lecture Quiz",
"quiz": [
{
"questionText": "Edge computing can be more secure than cloud computing.",
"answerOptions": [
{
"answerText": "True",
"isCorrect": "true"
},
{
"answerText": "False",
"isCorrect": "false"
}
]
},
{
"questionText": "Running an ML model on an edge device is less accurate than running an ML model in the cloud.",
"answerOptions": [
{
"answerText": "True",
"isCorrect": "false"
},
{
"answerText": "False",
"isCorrect": "true"
}
]
},
{
"questionText": "Edge devices always need an Internet connection.",
"answerOptions": [
{
"answerText": "True",
"isCorrect": "false"
},
{
"answerText": "False",
"isCorrect": "true"
}
]
}
]
},
{
"id": 34,
"title": "Lesson 17 - Run your fruit detector on the edge: Post-Lecture Quiz",
"quiz": [
{
"questionText": "What kind of format or domain do we need for Custom Vision ML models to properly run on an edge device?",
"answerOptions": [
{
"answerText": "General",
"isCorrect": "false"
},
{
"answerText": "Quick Training",
"isCorrect": "false"
},
{
"answerText": "Standard",
"isCorrect": "false"
},
{
"answerText": "Compact",
"isCorrect": "true"
},
{
"answerText": "Food",
"isCorrect": "false"
},
{
"answerText": "Remote Deployment",
"isCorrect": "false"
}
]
},
{
"questionText": "What is a container?",
"answerOptions": [
{
"answerText": "Self-contained applications that hold ML models.",
"isCorrect": "false"
},
{
"answerText": "Self-contained applications that run in isolation from other programs.",
"isCorrect": "true"
},
{
"answerText": "Self-contained applications that run programs only on edge devices.",
"isCorrect": "false"
},
{
"answerText": "self-contained applications that handle communication between the cloud and edge devices.",
"isCorrect": "false"
}
]
},
{
"questionText": "How do you do Custom Vision model retraining for ML models deployed on edge devices?",
"answerOptions": [
{
"answerText": "Take images on the edge device, save to the edge device, and point the ML model to the new image folder.",
"isCorrect": "false"
},
{
"answerText": "Upload images from the edge device to the cloud, retrain the model in Custom Vision, then re-deploy onto the edge device.",
"isCorrect": "true"
},
{
"answerText": "Take images on the edge device and check the prediction output.",
"isCorrect": "false"
}
]
}
]
},
{
"id": 35,
"title": "Lesson 18 - Trigger fruit quality detection from a sensor: Pre-Lecture Quiz",
"quiz": [
{
"questionText": "Which part of your IoT application gathers data?",
"answerOptions": [
{
"answerText": "Things",
"isCorrect": "true"
},
{
"answerText": "Cloud services",
"isCorrect": "false"
},
{
"answerText": "Edge devices",
"isCorrect": "false"
}
]
},
{
"questionText": "The only outputs of an IoT application are actuators.",
"answerOptions": [
{
"answerText": "True",
"isCorrect": "false"
},
{
"answerText": "False",
"isCorrect": "true"
}
]
},
{
"questionText": "Things don't need to connect directly to IoT Hub, they can use edge devices as gateways.",
"answerOptions": [
{
"answerText": "True",
"isCorrect": "true"
},
{
"answerText": "False",
"isCorrect": "false"
}
]
}
]
},
{
"id": 36,
"title": "Lesson 18 - Trigger fruit quality detection from a sensor: Post-Lecture Quiz",
"quiz": [
{
"questionText": "The three components of architecting an IoT application are",
"answerOptions": [
{
"answerText": "Things, Insights, Actions",
"isCorrect": "true"
},
{
"answerText": "Things, Internet, Databases",
"isCorrect": "false"
},
{
"answerText": "AI, Blockchain, FizzBuzzers",
"isCorrect": "false"
}
]
},
{
"questionText": "The component that communicates between the things and the components that create insights is:",
"answerOptions": [
{
"answerText": "Azure Functions",
"isCorrect": "false"
},
{
"answerText": "IoT Hub",
"isCorrect": "true"
},
{
"answerText": "Azure Maps",
"isCorrect": "false"
}
]
},
{
"questionText": "How do time of flight proximity sensors work?",
"answerOptions": [
{
"answerText": "They send laser beams and time how long till they bounce off an object",
"isCorrect": "true"
},
{
"answerText": "They use sound and measure how long till the sound bounces off an object",
"isCorrect": "false"
},
{
"answerText": "They use very large rulers",
"isCorrect": "false"
}
]
}
]
},
{
"id": 37,
"title": "Lesson 19 - Train a stock detector: Pre-Lecture Quiz",
"quiz": [
{
"questionText": "AI models cannot be used to count objects?",
"answerOptions": [
{
"answerText": "True",
"isCorrect": "false"
},
{
"answerText": "False",
"isCorrect": "true"
}
]
},
{
"questionText": "IoT and AI can be used in retail for:",
"answerOptions": [
{
"answerText": "Stock checking only",
"isCorrect": "false"
},
{
"answerText": "A wide range of uses including stock checking, monitoring for mask where where required, tracking footfall, automated billing",
"isCorrect": "true"
},
{
"answerText": "IoT and AI cannot be used in retail",
"isCorrect": "false"
}
]
},
{
"questionText": "Object detection involves:",
"answerOptions": [
{
"answerText": "Detecting objects in an image and tracking their location and probability",
"isCorrect": "true"
},
{
"answerText": "Counting objects in an image only",
"isCorrect": "false"
},
{
"answerText": "Classifying images",
"isCorrect": "false"
}
]
}
]
},
{
"id": 38,
"title": "Lesson 19 - Train a stock detector: Post-Lecture Quiz",
"quiz": [
{
"questionText": "Object detectors only return one result no matter how many objects are detected",
"answerOptions": [
{
"answerText": "True",
"isCorrect": "false"
},
{
"answerText": "False",
"isCorrect": "false"
}
]
},
{
"questionText": "What is the best domain to use in Custom Vision for stock counting",
"answerOptions": [
{
"answerText": "General",
"isCorrect": "false"
},
{
"answerText": "Food",
"isCorrect": "false"
},
{
"answerText": "Products on shelves",
"isCorrect": "true"
}
]
},
{
"questionText": "At least how many images do you need to train an object detector?",
"answerOptions": [
{
"answerText": "1",
"isCorrect": "false"
},
{
"answerText": "15",
"isCorrect": "true"
},
{
"answerText": "100",
"isCorrect": "false"
}
]
}
]
},
{
"id": 39,
"title": "Lesson 20 - Check stock from an IoT device: Pre-Lecture Quiz",
"quiz": [
{
"questionText": "IoT devices are not powerful enough to use object detectors",
"answerOptions": [
{
"answerText": "True",
"isCorrect": "false"
},
{
"answerText": "False",
"isCorrect": "true"
}
]
},
{
"questionText": "Object detectors give you:",
"answerOptions": [
{
"answerText": "The count of objects detected",
"isCorrect": "false"
},
{
"answerText": "The count and location of objects detected",
"isCorrect": "false"
},
{
"answerText": "The count, location and probability of objects detected",
"isCorrect": "true"
}
]
},
{
"questionText": "Object detectors can be used to detect where missing stock should be to allow robots to automatically stock shelves",
"answerOptions": [
{
"answerText": "True",
"isCorrect": "true"
},
{
"answerText": "False",
"isCorrect": "false"
}
]
}
]
},
{
"id": 40,
"title": "Lesson 20 - Check stock from an IoT device: Post-Lecture Quiz",
"quiz": [
{
"questionText": "To count stock you only need to consider the count of objects detected by the object detector",
"answerOptions": [
{
"answerText": "True",
"isCorrect": "false"
},
{
"answerText": "False",
"isCorrect": "true"
}
]
},
{
"questionText": "Bounding boxes use:",
"answerOptions": [
{
"answerText": "Percentage based coordinates",
"isCorrect": "true"
},
{
"answerText": "Pixel based coordinates",
"isCorrect": "false"
},
{
"answerText": "Centimeter based coordinates",
"isCorrect": "false"
}
]
},
{
"questionText": "Can detected objects overlap?",
"answerOptions": [
{
"answerText": "Yes",
"isCorrect": "true"
},
{
"answerText": "No",
"isCorrect": "false"
}
]
}
]
},
{
"id": 41,
"title": "Lesson 21 - Recognize speech with an IoT device: Pre-Lecture Quiz",
"quiz": [
{
"questionText": "IoT devices can be used to recognize speech:",
"answerOptions": [
{
"answerText": "True",
"isCorrect": "true"
},
{
"answerText": "False",
"isCorrect": "false"
}
]
},
{
"questionText": "Voice assistants should send all the audio they hear to the cloud for processing:",
"answerOptions": [
{
"answerText": "True",
"isCorrect": "false"
},
{
"answerText": "False",
"isCorrect": "true"
}
]
},
{
"questionText": "To recognize speech, IoT devices need large microphones:",
"answerOptions": [
{
"answerText": "True",
"isCorrect": "false"
},
{
"answerText": "False",
"isCorrect": "true"
}
]
}
]
},
{
"id": 42,
"title": "Lesson 21 - Recognize speech with an IoT device: Post-Lecture Quiz",
"quiz": [
{
"questionText": "Microphones are what type of sensor?",
"answerOptions": [
{
"answerText": "Digital",
"isCorrect": "false"
},
{
"answerText": "Analog",
"isCorrect": "true"
}
]
},
{
"questionText": "Sound waves are converted to digital signals using:",
"answerOptions": [
{
"answerText": "Pulse Code Modulation",
"isCorrect": "true"
},
{
"answerText": "Pure Code Multiplication",
"isCorrect": "false"
},
{
"answerText": "Pulse Width Maximization",
"isCorrect": "false"
}
]
},
{
"questionText": "1 second of 16-bit audio sampled at 16KHz is how large?",
"answerOptions": [
{
"answerText": "1KB",
"isCorrect": "false"
},
{
"answerText": "16KB",
"isCorrect": "false"
},
{
"answerText": "32KB",
"isCorrect": "true"
}
]
}
]
},
{
"id": 43,
"title": "Lesson 22 - Understand language: Pre-Lecture Quiz",
"quiz": [
{
"questionText": "Language understanding involves looking for fixed words:",
"answerOptions": [
{
"answerText": "True",
"isCorrect": "false"
},
{
"answerText": "False",
"isCorrect": "true"
}
]
},
{
"questionText": "Language understanding involves:",
"answerOptions": [
{
"answerText": "Looking at the individual words in a sentence and trying to get the meaning",
"isCorrect": "false"
},
{
"answerText": "Finding pre-defined sentences and using those to get the meaning",
"isCorrect": "false"
},
{
"answerText": "Looking at the whole sentence and trying to get the meaning using the context of the words",
"isCorrect": "true"
}
]
},
{
"questionText": "Cloud providers have AI services that can understand language:",
"answerOptions": [
{
"answerText": "True",
"isCorrect": "true"
},
{
"answerText": "False",
"isCorrect": "false"
}
]
}
]
},
{
"id": 44,
"title": "Lesson 22 - Understand language: Post-Lecture Quiz",
"quiz": [
{
"questionText": "Sentences are understood by being broken down into:",
"answerOptions": [
{
"answerText": "Ideas and explanations",
"isCorrect": "false"
},
{
"answerText": "Intents and entities",
"isCorrect": "true"
},
{
"answerText": "Imps and elves",
"isCorrect": "false"
}
]
},
{
"questionText": "The Microsoft service for language understanding is called:",
"answerOptions": [
{
"answerText": "LUIS",
"isCorrect": "true"
},
{
"answerText": "Luigi",
"isCorrect": "false"
},
{
"answerText": "Jarvis",
"isCorrect": "false"
}
]
},
{
"questionText": "In the sentence 'set a 3 minute timer' the:",
"answerOptions": [
{
"answerText": "The intent is 3 minutes and the entity is a timer",
"isCorrect": "false"
},
{
"answerText": "The intent is minutes, and the entity is 3 timers",
"isCorrect": "false"
},
{
"answerText": "The intent is set a timer and the entity is 3 minutes",
"isCorrect": "true"
}
]
}
]
},
{
"id": 45,
"title": "Lesson 23 - Set a timer and provide spoken feedback: Pre-Lecture Quiz",
"quiz": [
{
"questionText": "Speech generated by AI models sounds monotonous and robotic",
"answerOptions": [
{
"answerText": "True",
"isCorrect": "false"
},
{
"answerText": "False",
"isCorrect": "true"
}
]
},
{
"questionText": "AI models can only create speech in American English:",
"answerOptions": [
{
"answerText": "True",
"isCorrect": "false"
},
{
"answerText": "False",
"isCorrect": "true"
}
]
},
{
"questionText": "AI models would convert 1234 into which spoken phrase:",
"answerOptions": [
{
"answerText": "One two three four",
"isCorrect": "false"
},
{
"answerText": "One thousand two hundred and thirty four",
"isCorrect": "false"
},
{
"answerText": "It can be 'one two three four' or 'one thousand two hundred and thirty four' depending on the context",
"isCorrect": "true"
}
]
}
]
},
{
"id": 46,
"title": "Lesson 23 - Set a timer and provide spoken feedback: Post-Lecture Quiz",
"quiz": [
{
"questionText": "The three parts of speech generation are:",
"answerOptions": [
{
"answerText": "Text analysis, understanding analysis, sound generation",
"isCorrect": "false"
},
{
"answerText": "Text analysis, linguistic analysis, wave form generation",
"isCorrect": "true"
},
{
"answerText": "Word analysis, audio production",
"isCorrect": "false"
}
]
},
{
"questionText": "Can speech generation models be trained to sound like existing people:",
"answerOptions": [
{
"answerText": "True",
"isCorrect": "true"
},
{
"answerText": "False",
"isCorrect": "false"
}
]
},
{
"questionText": "The markup language used to encode speech is called:",
"answerOptions": [
{
"answerText": "SSML",
"isCorrect": "true"
},
{
"answerText": "MSSL",
"isCorrect": "false"
},
{
"answerText": "SpeechXML",
"isCorrect": "false"
}
]
}
]
},
{
"id": 47,
"title": "Lesson 24 - Support multiple languages: Pre-Lecture Quiz",
"quiz": [
{
"questionText": "Language understanding only understands English:",
"answerOptions": [
{
"answerText": "True",
"isCorrect": "false"
},
{
"answerText": "False",
"isCorrect": "true"
}
]
},
{
"questionText": "AI speech to text models understand multiple languages:",
"answerOptions": [
{
"answerText": "True",
"isCorrect": "true"
},
{
"answerText": "False",
"isCorrect": "false"
}
]
},
{
"questionText": "AI translation involves swapping individual words for their translated version:",
"answerOptions": [
{
"answerText": "True",
"isCorrect": "false"
},
{
"answerText": "false",
"isCorrect": "true"
}
]
}
]
},
{
"id": 48,
"title": "Lesson 24 - Support multiple languages: Post-Lecture Quiz",
"quiz": [
{
"questionText": "Machine translation has been researched for nearly:",
"answerOptions": [
{
"answerText": "70 years",
"isCorrect": "true"
},
{
"answerText": "17 years",
"isCorrect": "false"
},
{
"answerText": "7 years",
"isCorrect": "false"
}
]
},
{
"questionText": "AI language translators are called:",
"answerOptions": [
{
"answerText": "Noddy translators",
"isCorrect": "false"
},
{
"answerText": "Neural translators",
"isCorrect": "true"
},
{
"answerText": "Nothing - AI cannot be used for translation",
"isCorrect": "false"
}
]
},
{
"questionText": "What alien languages does the Microsoft translator support:",
"answerOptions": [
{
"answerText": "Na'vi",
"isCorrect": "false"
},
{
"answerText": "Alienese",
"isCorrect": "false"
},
{
"answerText": "Klingon",
"isCorrect": "true"
}
]
}
]
}
]
}
]
]

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 198 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 219 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 207 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 171 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 189 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 232 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 185 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 245 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 230 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 315 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 208 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 207 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 175 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 208 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 242 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 202 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 205 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 205 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 197 KiB

@ -1,9 +0,0 @@
# Dummy File
This file acts as a placeholder for the `translations` folder. <br>
**Please remove this file after adding the first translation**
For the instructions, follow the directives in the [translations guide](https://github.com/microsoft/IoT-For-Beginners/blob/main/TRANSLATIONS.md) .
## THANK YOU
We truly appreciate your efforts!

@ -0,0 +1,9 @@
# মাইক্রোসফট ওপেন সোর্স - আচরণ বিধি
এই প্রজেক্টে [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/)অনুসরণ করা হচ্ছে।
রিসোর্সসমূহ:
- [মাইক্রোসফট ওপেন সোর্স - আচরণ বিধি](https://opensource.microsoft.com/codeofconduct/)
- [মাইক্রোসফটর আচরণ বিধি - বহুল জিজ্ঞাসিত প্রশ্ন (FAQ)](https://opensource.microsoft.com/codeofconduct/faq/)
- যেকোন প্রশ্ন বা বিষয় নিয়ে যোগাযোগ করতে পারবেন [opencode@microsoft.com](mailto:opencode@microsoft.com) ইমেইলের মাধ্যমে।

@ -0,0 +1,7 @@
# কন্ট্রিবিউশন
এই প্রজেক্টটি কন্ট্রিবিউশন বা অবদান এবং সব ধরণের পরামর্শকে স্বাগত জানায়। বেশিরভাগ কন্ট্রিবিউশনের জন্য আপনাকে একটি Contributor License Agreement (CLA) অর্থাৎ অবদানকারী লাইসেন্স চুক্তিতে (সিএলএ) সম্মতি জানাতে হবে যে আপনার এই অধিকার রয়েছে যে আমাদেরকে আপনার কন্ট্রিবিউশন ব্যবহার করার অধিকার আপনি আমাদেরকে দিবেন। বিশদ জানার জন্য, https://cla.microsoft.com দেখুন।
আপনি যখন একটি Pull Request জমা দিবেন, তখন একটি সিএলএ-বট স্বয়ংক্রিয়ভাবে নির্ধারণ করবে যে আপনাকে সিএলএ সরবরাহ করতে হবে কিনা এবং Pull Requestটি যথাযথভাবে প্রদান করতে লেবেল, কমেন্ট এসব দিতে হবে কিনা। কেবল বট দ্বারা প্রদত্ত নির্দেশাবলী অনুসরণ করুন। আমাদের যেকোন রেপোসিটরিতে কাজ করতে, সিএলএ আপনাকে কেবল একবারই ব্যবহার করতে হবে।
এই প্রজেক্টটিতে [মাইক্রোসফ্ট ওপেন সোর্স আচরণবিধি](https://opensource.microsoft.com/codeofconduct/) অনুসরণ করা হচ্ছে। আরও তথ্যের জন্য [আচরণবিধি FAQ](https://opensource.microsoft.com/codeofconduct/faq/) পড়ুন বা কোনও অতিরিক্ত প্রশ্ন বা মন্তব্য থাকলে opencode@microsoft.com এ যোগাযোগ করুন।

@ -0,0 +1,16 @@
# অনুবাদ
আমরা এই কারিক্যুলামের জন্য সকল ভাষায় অনুবাদকে স্বাগত জানাই!
## গাইডলাইনস
এখানে প্রতিটি অধ্যায়ের সাথে অনুবাদ ফোল্ডার রয়েছে যা অনুবাদকৃত মার্কডাউন ফাইল ধারণ করে।
অনুবাদকৃত লেসনগুলির নামকরণের এই নীতি অনুসরণ করা উচিত:
README.[language].md
যেখানে [language] হলো যেকোন ভাষার ২ বর্ণের সংক্ষিপ্ত নাম যা ISO 639-1 নীতি অনুসরণ করে (যেমনঃ `README.bn.md` লেখা হয় বাংলা ভাষার জন্য)।
## কুইজ
এখানে একটি ফাইল যুক্ত করে অনুবাদ কুইজ-অ্যাপে যুক্ত করা যাবে: https://github.com/microsoft/IoT- for-Beginners/tree/main/quiz-app/src/assets/transferences। তবে JSON এর 'true' এবং 'false' শব্দের অনুবাদ করবেন না। ধন্যবাদ!
## ধন্যবাদ
আপনার প্রচেষ্টাকে আমরা হৃদয়ের অন্তঃস্থল থেকে সাধুবাদ জানাই।

@ -0,0 +1,38 @@
# প্রজেক্ট সুবিন্যস্ত রাখা
প্রতিটি প্রজেক্ট শেষ করার পরে, ক্লাউড রিসোর্সসমূহ মুছে ফেলা (delete) করাই ভালো।
প্রতিটি অধ্যায়ের প্রজেক্টে হয়তো আমরা এসব রিসোর্স তৈরী করেছি
* একটি রিসোর্স গ্রুপ
* একটি IoT Hub
* ২টি IoT device রেজিস্ট্রেশন
* একটি স্টোরেজ একাউন্ট
* একটি ফাংশন এপ
* একটি Azure Maps একাউন্ট
* একটি কাস্টম ভিশন প্রজেক্ট
* একটি কগনিটিভ সার্ভিস রিসোর্স
এই সার্ভিসগুলোর বেশিরভাগই বিনা খরচে ব্যবহার করা হচ্ছে - হয় সেগুলি সম্পূর্ণ ফ্রী তে, অথবা একটি ফ্রী টায়ার ব্যবহার করে কাজ করা হচ্ছে। এছাড়াও যেসকল সার্ভিসের জন্য খরচ রয়েছে, সেগুলোর ফ্রী পরিষেবা বা খুবই নিম্নমূল্যের সেবা ব্যবহার করেই কাজ করা সম্ভব।
এক্ষেত্রেকাজ শেষ হয়ে গেলে এই সার্ভিসগুলি মুছে ফেলা বা ডিলিট করাই ভালো সিদ্ধান্ত হবে। উদাহরণস্বরূপ ফ্রি টায়ার ব্যবহার করে আমরা কেবল একটি আইওটি হাব নিতে পারি, সুতরাং যদি অন্য আরেকটি তৈরি করতে হয়, সেক্ষেত্রে পেইড সার্ভিস ব্যবহার করতে হবে।
সমস্ত পরিষেবাগুলি রিসোর্স গ্রুপের ভিতরে তৈরি হয়েছে এবং এটি আমাদের সম্পূর্ণ প্রজেক্ট পরিচালনা করা সহজ করে তোলে। রিসোর্স গ্রুপ ডিলিট করলে, সেই সাথে গ্রুপের সমস্ত পরিষেবাও এর সাথে মুছে ফেলা হবে।
রিসোর্স গ্রুপ ডিলিট করতে নীচের কমান্ডটি টার্মিনাল বা কমান্ড প্রমাপ্ট এ ব্যবহার করতে হবেঃ
```sh
az group delete --name <resource-group-name>
```
এখানে `<resource-group-name>` এর জায়গায় প্রজেক্টে ব্যবহৃত নামটি দিতে হবে।
কনফার্মেশন ম্যাসেজ আসবে এরকমঃ
```output
Are you sure you want to perform this operation? (y/n):
```
এখানে `y` দিতে হবে।
কিছুক্ষণের মধ্যেই সম্পূর্ণ সার্ভিস ডিলিট হয়ে যাবে।
Loading…
Cancel
Save