IMPLEMENTATION OF IOT WITH RASPBERRY PI-I

Introduction to Internet of Things
22 Aug 201722:39

Summary

TLDRThis script outlines a tutorial on configuring and utilizing a Raspberry Pi with sensors for data collection and processing. It covers the integration of sensors like the DHT for temperature and humidity monitoring, and demonstrates how to visualize data on a server. The tutorial also delves into sensor interfacing, using a relay for automatic cooling systems, and programming with libraries for sensor data acquisition. It concludes with a practical application, showing how to set up a system that automatically controls a fan based on temperature readings, providing a foundation for building more complex IoT projects.

Takeaways

  • 📚 The lecture focuses on configuring Raspberry Pi for IoT applications, specifically on integrating sensors and visualizing data on a server.
  • 🔧 Over the next three lectures, students will learn how to interface sensors with Raspberry Pi and visualize the collected data on a server.
  • 🌡️ The lecture discusses using DHT sensors for measuring temperature and humidity, including the specifics of wiring and coding with Raspberry Pi.
  • ⚙️ The use of relays with Raspberry Pi for controlling devices based on sensor data is covered, with emphasis on using board mode for pin configuration.
  • 💡 Detailed instructions are given on how to install the necessary libraries for interfacing the DHT sensor with Raspberry Pi using Python.
  • 🔌 The lecture explains the process of connecting the DHT sensor to Raspberry Pi, including setting up the GPIO pins and configuring the sensor in BCM mode.
  • 💻 Students are shown how to write and execute a Python script that reads data from the DHT sensor and controls a relay to automate a cooling system.
  • 🔍 The lecture includes a demonstration of logging into Raspberry Pi remotely and running the Python script to collect and display sensor data.
  • 🎛️ The use of a relay board to turn a fan on and off based on temperature readings from the DHT sensor is demonstrated, showing practical IoT applications.
  • 📈 The importance of historical data for decision-making in IoT systems is highlighted, along with examples of how automated cooling systems can be implemented.

Q & A

  • What is the main topic of the lecture series?

    -The main topic of the lecture series is about configuring and enabling Raspberry Pi, integrating sensors, and visualizing data on a server.

  • What will be covered in the upcoming lectures after the current one?

    -In the upcoming lectures, the focus will be on how to integrate sensors and the process of data visualization on the server.

  • What is the purpose of the DHT sensor used in the lecture?

    -The DHT sensor is used to measure digital humidity and temperature, which is then used for making decisions based on the captured data.

  • What is the resistance value of the relay used in the demonstration?

    -The relay used in the demonstration has a resistance value of 4.7 kilo ohms.

  • How is the DHT sensor connected to the Raspberry Pi in the lecture?

    -The DHT sensor is connected to the Raspberry Pi using a 3.3-volt power supply, with data being fed to pin 2 of the sensor, and ground connected to the ground of the Raspberry Pi.

  • What is the significance of the BCM mode mentioned in the context of the DHT sensor?

    -BCM mode refers to the Broadcom SOC channel multiplexing mode used in Raspberry Pi, which allows for specific pin configurations. The DHT sensor is used according to the manufacturer's specifications in BCM mode.

  • What is the voltage range that the relay can handle as mentioned in the lecture?

    -The relay can handle an operating voltage range from 6 volts to 12 volts.

  • What is the purpose of the fan being controlled in the lecture?

    -The fan is being controlled as part of a demonstration to create an automatic cooling system based on temperature readings from the DHT sensor.

  • How is the temperature reading displayed in the lecture?

    -The temperature reading is displayed in degrees Celsius, and in the demonstration, it is shown as 25.0 degrees Celsius.

  • What programming language is used to interface with the DHT sensor and control the fan?

    -Python is used as the programming language to interface with the DHT sensor and control the fan based on temperature and humidity readings.

  • What is the role of the 'if else' loop in the code demonstrated in the lecture?

    -The 'if else' loop in the code is used to make decisions based on the temperature readings. If the temperature is higher than 20 degrees, the fan is turned on and after 5 seconds, it is turned off.

Outlines

00:00

😀 Introduction to Raspberry Pi Configuration

The speaker begins by introducing the audience to the process of configuring and enabling the Raspberry Pi. They delve into the intricacies of integrating the Raspberry Pi with various sensors and how to visualize the data obtained from these sensors. The discussion also includes the steps to be covered in the subsequent lectures, which will focus on sensor integration and data visualization on the server. The speaker emphasizes the importance of understanding the basics of using the Raspberry Pi and capturing data, which will be crucial for implementing IoT devices.

05:05

🔧 Setting Up Interconnected Infrastructure for IoT

In this section, the speaker discusses the necessity of creating an interconnected infrastructure for IoT devices, which involves setting up communication between devices and a network that connects them. The speaker highlights the importance of sensors and actuators, explaining that they can be electronic, mechanical, or a combination of both, and serve to control or convert energy in a system. The focus is on how these components interact within a larger system and how they can be affected by external factors, necessitating a robust setup. The speaker also discusses the use of a DHT sensor for measuring humidity and temperature, explaining the choice of a 4.7-kilo ohm resistor and the impact it has on decision-making.

10:16

🔌 Exploring the DHT Sensor and Its Interface

The speaker provides a detailed explanation of the DHT sensor, including its pin configuration and how to connect it to the Raspberry Pi. They explain the function of each pin, the voltage range for the power supply, and the typical operating voltage for the relay. The speaker also discusses the process of connecting the sensor to the Raspberry Pi, emphasizing the need to follow the manufacturer's specifications for the DHT sensor. They provide a step-by-step guide on how to connect the sensor, including the use of a 3.3-volt power supply from the Raspberry Pi and the correct grounding. Additionally, the speaker covers the programming aspect, including the installation of necessary libraries for both Arduino and Raspberry Pi, to ensure the sensor functions correctly.

15:20

💻 Programming the DHT Sensor for Data Collection

This paragraph delves into the programming aspect of using the DHT sensor with the Raspberry Pi. The speaker guides the audience through the process of installing additional libraries for the DHT sensor and setting up a sample program to interface with the sensor. They discuss the importance of following the manufacturer's guidelines and demonstrate how to read temperature and humidity values from the sensor. The speaker also explains how to modify the values according to specific needs and how to write a Python script that reads data from the sensor and displays it. The paragraph concludes with a demonstration of the sensor's output and a discussion of how to integrate the sensor into a hardware circuit.

20:21

🔄 Implementing a Feedback Loop for Automated Control

The final paragraph focuses on implementing a feedback loop for automated control using the DHT sensor. The speaker discusses the decision-making process within a loop that adjusts the environment based on the sensor's readings. They provide a practical example of how a fan can be controlled based on temperature readings, demonstrating the use of a relay board to automate the process. The speaker also touches on the potential applications of such a system, such as in PCs or industrial settings, and how it can be adapted to send alerts or control devices remotely. The paragraph concludes with a summary of the learning experience and a teaser for more detailed information to be covered in subsequent slides.

Mindmap

Keywords

💡Raspberry Pi

Raspberry Pi is a series of small single-board computers developed to promote the teaching of basic computer science in schools. In the context of the video, it is used as the central processing unit for configuring and enabling various functionalities, such as integrating sensors and processing data. The script mentions using Raspberry Pi to connect with sensors and perform data visualization on a server.

💡Configuration

Configuration in the video refers to the setup and arrangement of hardware and software components to ensure they work together properly. The script discusses configuring the Raspberry Pi to work with sensors and other devices, which is essential for the functioning of the system described.

💡Sensors

Sensors are devices that detect and respond to some type of input from the external environment. In the video, sensors like the DHT (Digital Humidity and Temperature) sensor are integrated to gather data such as temperature and humidity. The script explains how to connect these sensors to the Raspberry Pi for data collection.

💡Data Visualization

Data visualization is the graphical representation of information and data. The script mentions the need for data visualization on a server after collecting data from sensors, which helps in understanding and interpreting the data more effectively.

💡DHT Sensor

The DHT sensor, as mentioned in the script, is a type of sensor used to measure temperature and humidity. It is used in the video to collect environmental data, which is then processed and visualized. The script provides details on how to connect the DHT sensor to the Raspberry Pi.

💡Arduino

Arduino is an open-source electronics platform based on easy-to-use hardware and software. The script refers to Arduino as a tool for prototyping and implementing the system that interacts with sensors and actuators, which can control or respond to changes in the environment.

💡Actuators

Actuators are components that are responsible for moving or controlling a mechanism or system. In the video, actuators could be used in conjunction with sensors to perform actions based on the data received, such as turning a fan on or off based on temperature readings.

💡Internet of Things (IoT)

The Internet of Things refers to the interconnection via the Internet of computing devices embedded in everyday objects, allowing them to send and receive data. The script discusses the importance of IoT in creating a smart environment where devices can communicate and interact with each other.

💡BCN (Board Configuration)

BCN in the script refers to the configuration of the Raspberry Pi board, particularly in terms of how pins are used for connecting to sensors and other components. Understanding board configuration is crucial for setting up the correct connections and ensuring the system functions as intended.

💡Programming

Programming is the process of writing, testing, and debugging code. In the video, programming is essential for setting up the Raspberry Pi to interact with sensors and perform tasks. The script provides insights into how to write and implement code to achieve the desired functionalities.

💡Automation

Automation refers to the use of technology to create systems that can operate automatically. The script describes an automated cooling system that uses the Raspberry Pi and sensors to control the environment, such as turning a fan on or off based on temperature data.

Highlights

Introduction to configuring and enabling the Raspberry Pi with a focus on integration.

Detailed discussion on how to connect and configure the Raspberry Pi for data collection and visualization.

Explanation on integrating sensors and the process of data acquisition and visualization.

Introduction to Mr. Anandrup Mukherjee and the steps involved in enabling IoT with Raspberry Pi.

The necessity of preparing an interactive environment for the Internet of Things (IoT) and the role of devices and networks.

Discussion on the importance of sensors and actuators in electronic and mechanical systems.

Use of the DHT sensor for digital humidity and temperature sensing in the project.

Configuration of the DHT sensor with a 4.7-kilo ohm resistor and jumper wires for decision-making.

Explanation of the DHT sensor's pin connections and their functions.

Demonstration of connecting the DHT sensor to the Raspberry Pi and setting up the circuit.

Programming section starts with installing additional libraries for the DHT sensor.

Guide on installing the Adafruit DHT sensor library for Python on the Raspberry Pi.

Explanation of the sample DHT interfacing program and its components.

Demonstration of the sensor reading and data printout from the Raspberry Pi.

Hardware circuit jump with the DHT sensor connected to the breadboard.

Remote login to the Raspberry Pi system and testing the sensor with a simple Python script.

Setup of the relay interface and its connection to the Raspberry Pi for controlling devices based on temperature.

Programming the decision loop to control a fan based on temperature readings.

Conclusion and expectation of the learning experience from the session.

Transcripts

play00:00

रास्पबेरी पाईच्या मागील व्याख्यानात,

play00:09

आम्ही रास्पबेरी पाई कसे कॉन्फिगर

play00:19

सक्षम करण्यासाठी रास्पबेरी पाई एकत्रित

play00:30

कसे करावे याविषयी शिकणार आहात.

play00:41

तर, येथे आपण या गोष्टींबद्दल अधिक तपशीलवार जाणून

play00:58

घेणार आहोत.

play01:02

तर, केवळ हे व्याख्यानच नाही तर पुढील 3 व्याख्यान

play01:21

म्हणजे हे एक एक व व पुढील दोन व्याख्यान

play01:41

मध्ये आपण सेन्सर्स इंटिग्रेट कसे करावे

play01:54

हे माहित होईल.

play02:00

तर डेटा मिळाला आहे मग सर्व्हरवर डेटा

play02:15

प्राप्त झाला आहे याची व्हिज्युअलायझेशन

play02:26

करावी लागेल.

play02:30

सर्वर वर हा डेटा कसा व्हिज्युअलाइज

play02:43

करायचा हे आपण शिकणार आहोत.

play02:54

तर मी आणि श्री आनंदरूप मुखर्जी; आपले टीए

play03:11

या गोष्टी साध्य करण्यासाठी या काही

play03:24

चरणांचा अवलंब करीत आहे; याचा अर्थ असा

play03:39

की या विविध प्रकारच्या सेन्सर्सद्वारे

play03:49

डेटा संपादन, नंतर नेटवर्कद्वारे डेटा

play04:00

पाठवणे आणि सर्व्हरवर डेटा व्हिज्युअलायझिंग

play04:11

करणे.

play04:13

नमस्कार, या व्याख्यानात आय ओ टी च्या करण्यासाठी

play04:30

रास्पबेरी पाई वापरण्याबद्दल आणि कॅप्चर डेटाच्या

play04:43

आधारावर मूलभूत निर्णय घेऊन डिवाइस कार्यान्वित

play04:56

करण्याबद्दल चर्चा केली जाईल.

play05:04

तर, सर्व प्रथम इंटरनेट ऑफ थिंग्स ला समराईज

play05:22

करण्यासाठी परस्परसंवादी इन्व्हरमेंट तयार

play05:30

करणे आवश्यक आहे आणि त्याव्यतिरिक्त

play05:41

त्यात डिवाइसेसचे नेटवर्क असते जे

play05:52

एकत्र जोडलेले असतात.

play05:58

तर, या विशिष्ट विषयासाठी या दोघांना एकत्र

play06:13

आणणे त्यामुळे तुम्हाला प्रॅक्टिस मिळेल..

play06:24

तर सेन्सर्स विषयी अजून एक गोष्ट जी

play06:39

आतापर्यंत शिकलो आहे आणि बर्‍याचदा

play06:49

त्यावर चर्चा झाली आहे.

play06:58

सेन्सर हे इलेक्ट्रॉनिक असतात.

play07:07

तसेच अ‍ॅक्ट्युएटर; अ‍ॅक्ट्युएटर्स

play07:13

इलेक्ट्रो मेकेनिकल मेकेनिकल उपकरण देखील

play07:24

असू शकतात आणि सामान्यत: ते कार्य करतात किंवा

play07:41

उर्जेला गतीमध्ये रुपांतर करतात.

play07:49

तर, मुख्यत: त्यांचा वापर मोठ्या सिस्टीममधील

play08:02

इतर घटकांवर नियंत्रण गती प्रदान करण्यासाठी

play08:15

केला जातो.

play08:20

तर, यामध्ये सिस्टम ओव्हरव्ह्यूसारख्या

play08:28

अतिरिक्त उच्च व्युत्क्रमणाद्वारे बदलले जाऊ शकते.

play08:41

तर, त्यासाठी सिस्टम आवश्यकता खालीलप्रमाणे

play08:52

आहेत.आम्ही पुन्हा डीएचटी सेन्सर वापरत

play09:02

आहे जे डिजिटल आर्द्रता आणि तापमान सेंसर

play09:17

म्हणून आपण वापरले.

play09:24

आम्ही 4.7 किलो ओहम प्रतिरोधक रिले वापरत

play09:39

आहोत ,जम्पर वायर्सला जोडणार जेणेकरून

play09:50

आमच्या निर्णय घेण्याच्या दृष्टिकोनाची प्रभाविता

play10:00

दर्शवेल.

play10:02

आपल्याला हे डिजिटल आर्द्रता आणि तापमान

play10:15

सेन्सर माहित आहे.

play10:22

त्यास 4 पिन आहेत.

play10:30

तर, सामान्यत: जेव्हा आपण स्लाइडमध्ये

play10:41

दर्शविल्यासारखे ठेवता तेव्हा ते

play10:50

डावीकडून ते उजवीकडे आपण पिन 1 पासून 4 पर्यंत

play11:09

क्रमांकित करता.

play11:13

पिन एक सामान्यत: 3.3 ते 5 व्होल्ट वीजपुरवठा

play11:24

रेंजर्ससाठी वापरली जाते.

play11:26

पिन 2 ज्या बोर्डवर हा सेन्सर कनेक्ट

play11:33

केलेला आहे त्याला डेटा देते, पिन 3 सामान्यत:

play11:41

ओपन जोडले लि असते.

play11:45

आणि यास रिले बोर्ड म्हणतो.

play11:50

सामान्यत: आपल्यालाला 6 व्होल्ट ते 12 व्होल्ट

play11:57

पर्यंतच्या ऑपरेटिंग व्होल्टेजपर्यंत

play12:00

शुगर क्यूब रिले मिळू शकतील.

play12:05

तर, तुम्ही बघू शकता की प्रत्येक रिले

play12:12

साठी तेथे 3 टर्मिनल आहेत.

play12:17

जर डावीकडून उजवीकडे पहिले तर पहिले टर्मिनल

play12:24

एनओ म्हणून ओळखले जाते.

play12:27

आता आपण तापमानावरील स्वयंचलित शीतलन

play12:32

प्रणालीवर प्रयत्न करीत आहोत.

play12:36

तर, यासाठी रास्पबेरी पाई सह प्राथमिक

play12:42

सेन्सर इंटरफेस डीएचटी वापरणार आहे.

play12:47

तर, आम्ही आधीच याची चर्चा केली आहे आणि

play12:55

आपल्याला डीएचटी अरडिनो बोर्ड तसेच

play13:00

रास्पबेरी पाईला कसे जोडले आहे याविषयीचा

play13:06

डेमो दाखवला आहे.

play13:09

तर, पुन्हा समराईज करण्यासाठी आम्ही

play13:14

डीएचटी सेन्सरपैकी एक पिनला रास्पबेरी

play13:19

पाईच्या 3.3 व्होल्ट वीजपुरवठ्यासह कनेक्ट

play13:21

करतो.

play13:22

आम्ही या डीएचटी सेन्सरच्या पिन २

play13:25

ला पिन सात बरोबर जोडतो जी रासबेरी

play13:29

पायला डेटा पुरवते आणि शेवटी, आम्ही

play13:32

डीएचटीच्या चार पिनला रास्पबेरी पाई च्या

play13:35

ग्राउंड पिन बरोबर जोडतो .

play13:38

तथापि या डीएचटी सेन्सरसाठी हे लक्षात

play13:41

घ्यावे लागेल की हे रास्पबेरी पाईच्या

play13:44

बीसीएम मोडमध्ये या डीएचटी सेन्सरच्या

play13:47

निर्मात्याने निर्दिष्ट केल्यानुसार त्याचा

play13:49

वापर करून काम करू.

play13:51

आता याव्यतिरिक्त रास्पबेरी पाई सह

play13:54

रिले इंटरफेस खालीलप्रमाणे आहे.

play13:56

आम्ही रिलेच्या व्हीसीसी पिनला रास्पबेरी

play13:59

पीईच्या 5 व्होल्टच्या पुरवठ्याशी जोडतो.आपण

play14:01

ग्राउंडला रास्पबेरी पाईच्या ग्राउंडशी

play14:04

जोडतो.

play14:05

आणि इनपुट सिग्नल रिलेच्या पिन 11 ला

play14:08

निश्चित केले आहे.

play14:10

आणि लक्षात ठेवण्यासाठी आणखी एक मुद्दा म्हणजे

play14:13

जेव्हा आपण रिले वापरत असतो तेव्हा

play14:17

आम्ही बीसीएम मोड वापरत नसतो .आम्ही

play14:20

बोर्ड मोड वापरत असतो.

play14:22

तर, ही पिन क्रमांक ११ बोर्ड मोडनुसार

play14:26

असेल तर मागील स्लाइडमध्ये ही पिन बीसीएम मोडनुसार

play14:30

होती.

play14:31

तर या दोन्ही पद्धती एकाच वेळी वापरल्या

play14:35

जातील.

play14:36

आता आम्ही प्रोग्रामिंग भाग चालू करतो.

play14:38

आरडिनो प्रमाणे या डीएचटी सेन्सरसाठी

play14:41

अतिरिक्त लायब्ररी इंस्टॉल करतो.

play14:43

त्याचप्रमाणे रास्पबेरी पाईसाठी आम्हाला

play14:45

अ‍ॅडफ्रूटमधून अतिरिक्त लायब्ररी इंस्टॉल

play14:48

करणे आवश्यक आहे जिने मुळात हा सेन्सर

play14:51

पुरविला.

play14:52

आम्ही डीएचटी २२ सेन्सर वापरत आहोत.

play14:55

आपल्या रास्पबेरी पाई मध्ये सर्वप्रथम

play14:58

तुम्हाला अ‍ॅडफ्रूट डीएचटी सेन्सर लायब्ररी

play15:01

खालील कमांडचा वापर करून इंस्टॉल करणे

play15:04

आवश्यक आहे आणि लक्षात ठेवण्याचा मुद्दा

play15:07

म्हणजे तुम्ही पायथन बेस स्क्रिप्टिंग

play15:10

वापरत आहात म्हणून आम्ही डीएचटी पायथन

play15:13

कार्यान्वित करणार आहोत.

play15:15

आपण डीएचटी सी लायब्ररी, डीएचटी सी ++ लायब्ररी

play15:19

शोधू शकता किंवा पाहिली असेल परंतु

play15:22

आम्हाला पायथन लायब्ररी मध्ये अधिक रस आहे.

play15:26

तर, पहिली ओळ ही आहे.

play15:29

गिट क्लोन एचटीटीपी एस पायथन आणि रास्पबेरी

play15:33

पाई वापरुन सहजपणे कोड तयार करण्यास

play15:36

प्रारंभ करू शकता.

play15:37

तर, आमच्याकडे एक रास्पबेरी पाईसोबत

play15:40

सॅम्पल डीएचटी इंटरफेसिंग प्रोग्राम आहे.

play15:43

ज्यात प्रथम ओळ आहे जीपीआयओ.

play15:46

तर हे स्पष्टपणे निर्मात्याद्वारे

play15:48

प्रदान केलेल्या दस्तऐवजीकरणानुसार

play15:49

नमूद केले जाणे आवश्यक आहे.आणि नंतर आम्ही

play15:53

या सेन्सरला यशस्वीरित्या आरंभ केला आहे की

play15:57

नाही हे दर्शविण्यासाठी एक ओळ मुद्रित केली

play16:01

आहे.

play16:02

आणि आम्ही अ‍ॅडफ्रूट लायब्ररीच्या रीड

play16:04

री ट्राय कार्यामधून आर्द्रता आणि तपमान

play16:07

मूल्ये नियुक्त केली आहेत.

play16:09

आणि नावामध्ये हा सेन्सर ज्याला आपण

play16:13

सुरुवातीला कॉल केला होता आणि जो बीसीएम

play16:17

पिन 4 शी जोडला गेला आहे.

play16:20

पुढील ओळीत आपण तापमान आणि आर्द्रता मूल्ये

play16:24

पुनरावृत्तीच्या रूपात मुद्रित करीत

play16:26

नाही, परंतु हे एकदा मुद्रित करतो, परंतु

play16:30

आम्ही आमच्या गरजेनुसार ते स्वरूपित करतो.

play16:33

तर, हा कोड आहे जो आम्ही आत्ताच उजव्या

play16:37

बाजूला दर्शविला आहे.

play16:39

आपण पण आउटपुट पाहू शकता.आपण रास्पबेरी

play16:42

पाई वर पायथन फाईल तयार केली आहे जिचे

play16:46

नाव आयओटीएसआर डॉट पाय आहे.ती एकदा कार्यान्वित

play16:50

झाल्यावर सेंसरकडून डेटा संकलित करते.

play16:53

आपण पाहू शकता की आपली स्वरूपित प्रिंट

play16:57

लाइन टेम्प इक्वल टू 26.1 सेल्सिअस आहे

play17:00

आणि आर्द्रता 65.9 टक्के आहे.

play17:03

तर आता आम्ही हार्डवेअर सर्किटमध्ये झूम

play17:06

करू शकतो.

play17:08

हा तुमचा डीएचटी सेन्सर आहे.

play17:10

जो ब्रेडबोर्डवर ठेवलेला आहे.

play17:12

आणि या आधी सांगितलेल्या स्लाइड मधील कॉन्फिगरेशननुसार

play17:16

आम्ही व्हीसीसी ग्राउंड ला कनेक्ट केले आहे.

play17:20

आणि रास्पबेरी पाई बोर्डवर योग्य पिनवर

play17:23

डेटा पिन जोडलेली आहे.

play17:25

तेथे काही अतिरिक्त घटक जोडलेले आहेत

play17:29

ते आपण पाहू.

play17:30

परंतु आत्ता फक्त या 3 तारांवर आपण लक्ष

play17:35

केंद्रित करणार आहोत, तपकिरी रंगाची, लाल

play17:38

तांबड्या रंगाची आणि काळ्या रंगाची

play17:41

वायरवर.

play17:42

तर, प्रोग्रामिंगच्या भागाकडे परत येऊ.

play17:44

मी दूरस्थपणे रास्पबेरी पाई सिस्टममध्ये

play17:47

लॉग इन केले आहे.

play17:49

फॉन्टची नावाची टेस्टिंग फाईल आहे.

play17:51

प्रथम हे रन करू.

play17:54

तर,आपण सोपी कमांड पायथन डीएचटीटीईएमपी

play17:56

डॉट पाय देतो.

play17:58

जशी ती एक्झिक्युट होते, डीएचटी सेन्सरद्वारे

play18:01

केवळ तापमान वाचन प्राप्त करणे, हा

play18:05

एक सोपा कोड आहे, म्हणूनच तापमान वाचले जाते

play18:09

25.0 डिग्री सेल्सियस.

play18:10

आता आपण आयओटीएसआर फाईल आहे.

play18:13

आता एडिटर उघडू आणि त्यातील कन्टेन्ट

play18:16

समान आहे का ते तपासू.

play18:19

म्हणूनच आम्ही जीपीआयओ पिन डीफॉल्टद्वारे

play18:22

बीसीएम मोड सेट केली आहे.

play18:25

तर ही पिन नंबर चार बीसीएम मोडच्या अनुसार

play18:29

आहे.

play18:30

तर मी रिलेला जोडला आहे.

play18:32

मी त्यावर पुढच्या स्लाइडमध्ये येतो.

play18:35

रिलेला जोडला आहे आणि बोर्ड मोडनुसार

play18:38

ते पिन अकराशी जोडलेले आहे.

play18:41

आणखी पुढे जाण्यापूर्वी, आम्ही आमचे रास्पबेरी

play18:44

पाई तपासले नाही , की डीएचटी सेन्सर

play18:47

ठीक काम करीत आहे.

play18:50

आम्ही आता रिले भाग कनेक्ट करत आहोत.

play18:53

तर, आम्ही रस्बेरी पाईच्या पिन अकरा

play18:57

वर रिले इनपुट पिन बोर्ड मोडचा वापरुन

play19:00

कनेक्ट करतो आणि आम्ही मूलभूत निर्णय

play19:04

घेण्याच्या लूपमध्ये ठेवतो.

play19:05

जर तापमान वीसपेक्षा जास्त असेल तर आपण

play19:09

तापमान 20 पेक्षा जास्त आहे असे मुद्रित

play19:13

करा आणि तो रिले चालू होईल.

play19:16

तर, हा फॅन रिलेशी जोड लेला आहे.

play19:20

तर, मी रिटन फॅन कॉमा 0 लिहिले आहे.

play19:24

तो फॅनचालू होईल आणि नंतर तो 5 मिनिटे

play19:29

स्लीप होईल आणि त्यानंतर फॅन बंद होईल आणि

play19:33

आउटपुट पिन पुन्हा 1 वर सेट होईल अन्यथा

play19:37

तपमान वीस पेक्षा कमी असल्यास ,फॅन

play19:41

चालू होईल.

play19:42

तर थोड्यावेळापूर्वी डाव्या बाजूला हा

play19:44

कोड रास्पबेरी पाईच्या कन्सोलवर प्रत्यक्षात

play19:47

उघडला आहे.

play19:48

उजव्या बाजूला आपल्याकडे हा रिले बोर्ड आहे.

play19:52

आपणास हा डीएचटी सेन्सर रास्पबेरी

play19:55

पाई बरोबर जोडलेला आहे.

play19:57

आता लाय-पो फाइल रण करतो.

play20:00

तर, कनेक्शन असे काहीतरी दिसेल.

play20:02

आता पुन्हा रास्पबेरी पाई वर लॉग इन करू.

play20:07

म्हणून एकदा आम्ही ही फाईल कार्यान्वित

play20:10

केल्यावर आपणास आउटपुट दिसेल परंतु त्या

play20:13

अगोदर मी तुम्हाला हे दाखवू इच्छितो

play20:16

की हे माझे रास्पबेरी पाई आहे .माझे डीएचटी

play20:21

. टर्मिनलवर परत कोड कार्यान्वित करू.

play20:23

म्हणूनच कोड कार्यान्वित होताच तापमानाचे

play20:26

वाचन 25.2 डिग्री सेल्सिअस होते आणि आर्द्रता

play20:30

जवळजवळ 76 टक्के आहे.

play20:32

आता निर्णय घेणार्‍या लूपला असे आढळले

play20:35

आहे की तापमान वीसपेक्षा जास्त आहे.

play20:39

तर, तो फॅन चालू करतो आणि त्यानंतर 5 सेकंदानंतर

play20:43

फॅन बंद होतो.

play20:45

तर, यामध्ये लूपमध्ये बदल करता येईल आणि

play20:49

जर सामान्य लूप वापरण्याऐवजी आपण इफ एल्स लूप दृष्टिकोन

play20:54

वापरू शकतो.

play20:55

अशी स्थिती आहे की पुढील क्रियेचा अंदाज

play20:59

लावण्यासाठी आपल्याला बऱ्याच मोबाईल हिस्टॉरिकल

play21:01

डेटाची आवश्यकता असेल.

play21:03

म्हणून, जर तुम्ही पुन्हा एकदा सर्किटवर

play21:06

लक्ष दिल्यास , मला तुम्हाला दाखवायचे

play21:09

आहे ये कि मी जेव्हा हा प्रोग्रॅम पुन्हा

play21:13

कार्यान्वित करतो तो या रिले बोर्डशी

play21:17

जोडला गेला आहे . ज्यावेळी प्रोग्रॅम एक्झिक्युट

play21:20

असेल, रिले शी संबंधित ज्याला फॅन जोडलेला

play21:24

आहे.

play21:25

तर, आपणास आढळले आहे की तापमान 25 पेक्षा

play21:29

जास्त आहे.

play21:30

रिले चालू झाला आहे.

play21:32

आपण पहाल की फॅन देखील आता 5 सेकंदानंतर

play21:36

चालू होईल तो बंद होईल.

play21:39

तर, मूलभूत अनुप्रयोग म्हणजे आपण याचा

play21:42

वापर स्वयंचलित कूलिंग सिस्टम साठी करू

play21:45

शकता.आपल्या पीसीसाठी किंवा आपल्या इतर

play21:48

विविध प्रणाल्यांसाठी किंवा औद्योगिक प्रणालींमध्ये

play21:51

असू शकतात.

play21:52

तसेच समजा जर एखाद्या भट्टीचे तापमान जास्त

play21:56

वाढले असेल किंवा एखाद्या विशिष्ट

play21:58

खोलीचे किंवा कामाच्या जागेचे तापमान जास्त

play22:02

वाढले असेल तर आपला फॅन आपोआप चालू झाला

play22:06

असेल आणि नेटवर्क कनेक्ट केलेले डिव्हाइस

play22:09

आपले तापमान इतके जास्त वाढत आहे हे

play22:13

आपणास दूरस्थपणे सूचित करते, तर फॅन

play22:16

चालू केला गेला आहे .

play22:18

तर आऊटपुट एक्सप्लोड झाले आहे.

play22:21

मला आशा आहे की यामुळे आपल्याला थोडासा

play22:25

शिकण्याचा अनुभव मिळाला आहे परंतु

play22:28

आमच्या पुढील स्लाइडमध्ये इतर गोष्टी आणि तपशील

play22:31

चांगल्या प्रकारे कव्हर केले जातील.

play22:34

धन्यवाद.

Rate This

5.0 / 5 (0 votes)

Étiquettes Connexes
Raspberry PiIoTSensor IntegrationDIY ProjectsAutomationTemperature SensorHumidity SensorArduinoSmart SystemsHome Automation
Besoin d'un résumé en anglais ?