INTEGRATION OF SENSOR AND ACTUATORS WITH ARDUINO-I

Introduction to Internet of Things
21 Jul 201717:25

Summary

TLDRThis instructional video script focuses on integrating sensors and actuators with the Arduino platform for IoT system development. It covers the basics of what Arduino is and how to use it to build IoT systems. The tutorial demonstrates how to interface Arduino with a temperature and humidity sensor and a motor as an actuator. It guides viewers through setting up the hardware, using the Arduino IDE to download necessary libraries, and writing code to read sensor data and control the actuator. The script also touches on the differences between the Arduino Uno and Mega boards, and it provides a hands-on experience for viewers to understand the practical application of sensors and actuators in IoT projects.

Takeaways

  • 😀 The lecture is dedicated to discussing the integration of sensors and actuators with Arduino platforms.
  • 🛠️ Arduino can be used to prepare IoT systems, and the lecture teaches how to integrate Arduino with sensors and actuators.
  • 🔍 Various types of sensors can be integrated with the Arduino platform, supporting a wide range of applications.
  • 💡 The lecture demonstrates how to interface Arduino with a temperature and humidity sensor and an actuator motor.
  • 📈 The DHT sensor, which measures temperature and humidity, is used to illustrate the interfacing process.
  • 🔌 The DHT sensor has four pins: VCC for power, GND for ground, DATA for signal, and an optional pin that can be left open.
  • 💻 The Arduino IDE is used to write and upload code to the Arduino board, utilizing the DHT sensor library for temperature and humidity readings.
  • 🔧 The lecture includes a step-by-step guide on how to connect the DHT sensor to the Arduino board using jumper wires.
  • 📊 The code snippet provided in the lecture demonstrates how to read temperature and humidity data from the sensor and output it in a loop.
  • 🔗 The lecture also covers how to connect the Arduino board to a PC, set the port and board type, and upload the code to the board.
  • 🌡️ Real-time temperature and humidity readings are displayed, showing the practical application of the Arduino with the DHT sensor.

Q & A

  • What is the main focus of this lecture?

    -The main focus of this lecture is to discuss the integration of sensors and actuators with the Arduino platform, specifically in the context of creating IoT systems.

  • What type of sensors and actuators are being discussed in this lecture?

    -The lecture discusses temperature and humidity sensors (DHT22) and actuators, particularly a servo motor, as examples for integration with the Arduino platform.

  • What are the key differences between the Arduino Uno and Arduino Mega?

    -The Arduino Mega is larger than the Arduino Uno and has more digital input/output pins, more analog input pins, and four UARTs compared to the Uno's one UART. The Arduino Mega is better suited for more complex projects that require more connections.

  • Why is it important to ensure the voltage supply to the DHT sensor does not exceed 5 volts?

    -Exceeding a 5-volt supply can damage the DHT sensor, so it's important to ensure that the voltage remains within the 3.3 to 5 volts range.

  • What steps are necessary to integrate the DHT sensor with Arduino IDE?

    -To integrate the DHT sensor with Arduino IDE, you need to install the Adafruit DHT sensor library. Then, include the necessary library files in your Arduino sketch, define the DHT sensor pin, initialize the sensor, and set up the serial communication to read and display the sensor data.

  • What function does the DHT sensor library provide in the context of temperature and humidity measurement?

    -The DHT sensor library provides functions to read the temperature and humidity values from the sensor, which are then stored in variables and can be printed or used in further calculations.

  • How is the DHT sensor connected to the Arduino board?

    -The DHT sensor has four pins: one for positive voltage (3.3V to 5V), one for ground, one for the data signal, and the fourth pin, which is not connected. The data pin is connected to a digital I/O pin on the Arduino board.

  • What is the purpose of verifying the code before uploading it to the Arduino board?

    -Verifying the code checks for any syntax errors or issues before uploading it to the Arduino board, ensuring that the code will run correctly once uploaded.

  • What is the significance of the two-second delay in the loop function?

    -The two-second delay in the loop function ensures that the temperature and humidity readings are updated at regular intervals, providing a clear and periodic output on the serial monitor.

  • What outputs can be expected after successfully uploading the code to the Arduino board?

    -After uploading the code, the serial monitor will display the humidity percentage and temperature in degrees Celsius, updating every two seconds based on the readings from the DHT sensor.

Outlines

00:00

💡 Introduction to Arduino and IoT Integration

This paragraph introduces the lecture's focus on integrating Arduino with sensors and actuators. It explains the basics of what Arduino is and how it can be utilized to build IoT systems. The lecture aims to educate on how to combine Arduino with sensors and actuators, showcasing the potential of integrating various sensors into the Arduino platform. The instructor mentions that many types of sensors can be integrated with Arduino, supporting a wide range of applications. The lecture also introduces Mr. Anandrup Mukherjee, who will assist in teaching how to set up small-sized sensor-actuator-based Arduino platforms for IoT applications.

05:04

🔍 Exploring Arduino Mega and Sensor Interfacing

The second paragraph delves into interfacing the Arduino board with temperature and humidity sensors. It discusses the differences between the traditional Arduino and the Arduino Mega, highlighting the increased number of digital input/output pins and analog input pins on the Mega. The paragraph also covers the basics of the DHT sensor, explaining its pin connections and how to interface it with the Arduino board. The lecture demonstrates the use of the DHT sensor library to read temperature and humidity data, emphasizing the importance of correct voltage levels to prevent sensor damage. The process of connecting the sensor to the Arduino is detailed, including the use of jumper cables and the correct pin assignments.

10:06

🛠 Setting Up the Arduino Sketch for Sensor Reading

This paragraph explains the process of setting up the Arduino sketch to read data from the DHT sensor. It covers the steps to include the DHT sensor library, initialize the sensor, and set up the serial connection for data output. The lecture guides through the code, explaining the syntax and functions used to read humidity and temperature from the sensor. It also discusses the importance of updating the library and ensuring that the hardware is correctly set up before uploading the sketch to the Arduino board. The paragraph concludes with a demonstration of the code in action, showing how the sensor readings are updated and displayed.

15:06

📈 Real-time Sensor Data Monitoring and Conclusion

The final paragraph focuses on monitoring real-time sensor data and the practical application of the setup. It discusses the process of connecting the Arduino board to a PC, setting the port and board type, and uploading the code to the board. The lecture emphasizes the importance of verifying the code before uploading to ensure a successful connection. The output of the sensor readings, displayed as temperature in degrees Celsius and humidity percentage, is shown, with each reading updated every two seconds. The paragraph concludes with a recap of the basic sensor integration process with Arduino and encourages further exploration with different types of sensors.

Mindmap

Keywords

💡Arduino

Arduino is an open-source electronics platform based on easy-to-use hardware and software. It is a popular tool for building and prototyping with microcontrollers and is central to the video's theme of integrating sensors and actuators. In the script, Arduino is used as the primary platform for demonstrating how to interface with various sensors and actuators, such as the DHT sensor for temperature and humidity readings.

💡Sensors

Sensors are electronic components that detect and respond to some type of input from the external environment. They are fundamental in IoT (Internet of Things) projects and are used in the video to illustrate how different types of sensors can be integrated with an Arduino platform. The script specifically mentions a DHT sensor for measuring temperature and humidity, highlighting the practical application of sensors in Arduino projects.

💡Actuators

Actuators are components that are responsible for moving or controlling a mechanism or system. They are the opposite of sensors, which detect conditions. In the context of the video, an example of an actuator is a motor, which is used to demonstrate how an Arduino can control physical devices, showcasing the interactive capabilities of Arduino in IoT applications.

💡DHT sensor

The DHT sensor is a type of sensor that measures temperature and humidity. It is a specific example used in the script to demonstrate how to interface with an Arduino. The video explains how to connect the DHT sensor to an Arduino board and use a library to read the temperature and humidity values, which is a practical application of sensor integration in an Arduino project.

💡Temperature

Temperature is a measure of the average kinetic energy of the particles in a substance. In the video, temperature is one of the key parameters measured by the DHT sensor. The script describes how to read temperature values from the sensor and use them in an Arduino project, emphasizing the importance of environmental monitoring in IoT applications.

💡Humidity

Humidity refers to the amount of water vapor present in the air. The video uses the DHT sensor to measure humidity levels, which is crucial for various applications such as weather monitoring, home automation, and agriculture. The script provides a practical demonstration of how to interface the DHT sensor with an Arduino to read humidity, showcasing the role of humidity in IoT projects.

💡Analog and Digital

Analog signals are continuous and can vary over a wide range of values, while digital signals are discrete and represent values in a series of bits. The video script discusses the difference between analog and digital sensors and how they can be interfaced with an Arduino. The DHT sensor is an example of an analog sensor, and the video explains how to handle both types of signals in an Arduino project.

💡Library

In the context of Arduino programming, a library is a collection of code that allows for easier and more efficient programming of hardware components. The script mentions using the 'DHT sensor library' to interface with the DHT sensor, which simplifies the process of reading temperature and humidity data. Libraries are essential for abstracting complex hardware interactions and making them accessible to users.

💡Breadboard

A breadboard is a tool used for prototyping and testing electronic circuits without the need for soldering. The script refers to a breadboard as part of the setup for connecting the DHT sensor to the Arduino, illustrating the practical aspects of assembling electronic circuits. Breadboards are fundamental in the process of building and testing Arduino projects.

💡Pin

In electronics, a pin is a terminal on an integrated circuit or a connector that can be used to connect components. The video script discusses connecting the DHT sensor to the Arduino using specific pins, such as the data pin and power pins. Understanding pin connections is essential for setting up and troubleshooting electronic circuits in Arduino projects.

💡Serial Port

The serial port is a communication interface that allows data to be sent sequentially. In the video, the serial port is used to read and display the temperature and humidity data from the DHT sensor on a connected computer. The script explains how to initialize the serial port and use it to output sensor readings, which is a common method for debugging and monitoring in Arduino projects.

Highlights

Introduction to the lecture series on integrating sensors and actuators with Arduino platforms.

Explanation of what Arduino is and how it can be used to build IoT systems.

Demonstration of how to integrate Arduino with sensors and actuators.

Discussion on the variety of sensors that can be integrated with the Arduino platform.

Introduction to Mr. Anandrup Mukherjee, the course's TA, who will explain the process.

Guidance on setting up small electronic devices for self-study and experimentation.

Experience of preparing small-sized sensor-actuator based Arduino platforms for IoT applications.

Introduction to the specific sensor used in the lecture: a temperature sensor.

Explanation of the basic types of sensors used in IoT, such as temperature, humidity, compass, light, sound, accelerometer, or motion sensors.

Interface Arduino boards with temperature and humidity sensors.

Comparison between the traditional Arduino and the Arduino Mega, which has more digital input/output pins and analog input pins.

Introduction to the DHT sensor, which measures both temperature and humidity.

Instructions on how to connect the DHT sensor to the breadboard and Arduino board.

Use of the DHT library to interface the DHT sensor with the Arduino hardware.

Updating the Arduino IDE with the necessary library for the DHT sensor.

Code demonstration for reading humidity and temperature from the DHT sensor.

Setting up the serial connection to read sensor data on the Arduino IDE.

Explanation of the code loop that updates the temperature and humidity readings every two seconds.

Final output of the sensor readings displayed in percentage for humidity and in degrees Celsius for temperature.

Conclusion of the lecture on integrating sensors with Arduino and a thank you note.

Transcripts

play00:10

हे व्याख्यान व पुढचे व्याख्यान अर्डिनो

play00:16

प्लॅटफॉर्मसोबत सेंसर व अ‍ॅक्ट्युएटर्स

play00:20

यांच्या एकत्रीकरण संदर्भात चर्चा करण्यासाठी

play00:25

समर्पित आहे.

play00:26

तर, मागील व्याख्यानात आम्ही तुम्हाला अर्डिनो

play00:32

म्हणजे काय हे आणि आयओटी सिस्टम तयार

play00:39

करण्यासाठी त्याचा कसा उपयोग करावा

play00:44

याबद्दल आपल्याला शिकविले आहे.

play00:48

आणि या व्याख्यानात आम्ही आपल्याला अर्डिनो

play00:53

सह सेन्सर आणि अ‍ॅक्ट्युएटर कसे समाकलित करू

play01:00

शकतो हे दर्शविणार आहोत.

play01:04

मी आपणास सांगितले आहे की बर्‍याच प्रकारचे

play01:11

आणि अनेक सेन्सर अर्डिनो प्लॅटफॉर्ममध्ये

play01:15

समाकलित केले जाऊ शकतात.

play01:19

ते त्यास समर्थन देते आणि त्याच वेळी

play01:26

तसेच कार्यवाहक देखील दिसतात.

play01:30

तर, मी येथे हे कसे करावे याबद्दल शिकवणार

play01:37

आहे.

play01:38

मी माझ्याबरोबर मिस्टर आनंदरूप मुखर्जी

play01:43

या कोर्सचे टीए आहेत.

play01:47

आणि हे कसे करावे हे ते तुम्हाला समजावून

play01:55

सांगतील.

play01:56

म्हणून मी आधी म्हटल्याप्रमाणे तुमच्याकडे जर हा

play02:02

सेट अप असेल ,एखादी छोटी छोटी इलेक्ट्रॉनिक

play02:09

उपकरणे तुमच्याकडे असतील तर तुम्ही

play02:14

स्वतःच सराव करण्यासाठीही हे करू शकता.

play02:20

तर, त्या मार्गाने आयओटीमध्ये वापरल्या

play02:24

जाणार्‍या लहान आकाराचे सेन्सर अ‍ॅक्ट्यूएटर

play02:29

बेस्ड आर्डिनो प्लॅटफॉर्म कसे तयार करावे याबद्दल

play02:36

तुम्हाला अनुभव हाती येईल.

play02:40

म्हणून, हा विशिष्ट प्रकारचा सेन्सर

play02:44

जो आम्ही आपल्याला येथे दर्शवित आहोत

play02:50

आम्ही फक्त एक सेन्सर वापरत आहोत आणि आम्ही

play02:58

फक्त एक अ‍ॅक्ट्युएटर वापरत आहोत, आपण वापरत

play03:05

असलेला सेन्सर म्हणजे तापमान आर्द्रता

play03:09

सेन्सर आणि अ‍ॅक्ट्यूएटर मोटर आहे, सर्वेक्षण

play03:15

मोटर . तर, आयओटी मध्ये वापरासाठी

play03:20

एक छोटा सेन्सर अ‍ॅक्ट्यूएटर बेस्ड अर्डिनो प्लॅटफॉर्म

play03:27

कसा तयार करायचा ते पाहू.

play03:31

हॅलो मी आता अर्डिनो सह सेन्सर्स आणि

play03:38

अ‍ॅक्ट्युएटर्सच्या समाकलनाबद्दल बोलत

play03:41

आहे.

play03:42

तर, हे पुन्हा दोन भागात असेल पहिल्या

play03:49

भागात मी अर्डिनो सह सेन्सर्सचे समाकलन

play03:54

आणि दुसर्‍या भागात अर्डिनोसह अ‍ॅक्ट्युएटर्सचे

play03:59

समाकलन करेल.

play04:01

आपण आत्तापर्यंत शिकलो आहोत; सेन्सर

play04:06

हे मूलभूत इलेक्ट्रॉनिक घटक आहेत जे भौतिक

play04:13

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

play04:17

रूपांतरित करतात आणि कमीतकमी सेन्सर

play04:22

एकतर एनालॉग किंवा डिजिटल सेन्सरमध्ये

play04:27

वर्गीकृत केले जाऊ शकतात.

play04:31

तर, असे काही सेन्सर आहेत जे आम्ही प्रत्यक्षात

play04:39

आयओटी मध्ये वापरतो त्यामध्ये तापमान

play04:43

सेन्सर, आर्द्रता सेन्सर, कंपास किंवा

play04:48

दिशानिर्देश सेन्सर लाइट सेन्सर, ध्वनी

play04:53

सेन्सर एक्सेलरोमिटर किंवा मोशन सेन्सर

play04:58

असतात.

play04:59

येथे सेन्सर्सचे बरेच प्रकार आहेत.

play05:03

आम्ही येथे सर्व काही सामावून घेऊ

play05:09

शकत नाही, परंतु मला खात्री आहे की आपण

play05:17

ऑनलाइन शोधले तर आपल्याला मोठ्या

play05:22

संख्येने सेन्सर्स भेटतील.

play05:25

तर, आता या व्याख्यानात आपल्या अर्डिनो बोर्डसह

play05:31

आर्द्रता आणि तापमान सेन्सरचे इंटरफेसिंग

play05:36

केले जाईल.

play05:38

तर, आमच्या मागील व्याख्यानांमध्ये

play05:42

आम्ही अर्डिनो युनोचा वापर केवळ काही विविधता

play05:49

आणण्याच्या उद्देशाने केला होता.

play05:52

आता आपण मेगा येथे अर्डिनो वापरत आहोत.

play05:59

तर, अर्डिनो मेगा.

play06:02

तर, मार्केटमध्ये आपण अर्डिनो मेगा

play06:07

किंवा मेगा 2560 च्या नावाने मिळवू शकता.

play06:13

तर, आपल्या पारंपारिक अर्डिनोच्या तुलनेत

play06:18

हे थोडे मोठे आहे ज्याला एक 4 यु ए आर

play06:28

टी मिळाले आहेत, जर तुम्हाला आठवत असेल

play06:35

तर अर्डिनो युनो ला फक्त एक यु ए आर

play06:43

टी आहे आणि अर्थात तेथे बरेच अधिक डिजिटल

play06:51

इनपुट आउटपुट पिन आहेत आणि बरेच अनालॉग

play06:58

इनपुट पिन आहेत.

play07:00

आपल्या युनोसाठी 7 साठी 7 किंवा 8 च्या

play07:08

तुलनेत 16 अ‍ॅनालॉग आणि पॉवर लाइन कमी

play07:15

अधिक किंवा समान आहेत.

play07:19

तर आपण हे घेऊ.

play07:22

.

play07:23

आता आपल्याकडे पुन्हा ब्रेडबोर्ड बाकी

play07:27

आहेत, हे डीएचटी सेन्सर म्हणून ओळखले जाते.

play07:34

तर, डीएचटी म्हणजे डिजिटल आर्द्रता

play07:39

आणि तापमान.

play07:41

तर, आपण पाहू शकता त्याला 4 पिन आहेत

play07:48

आणि आपण डावीकडून उजवीकडे प्रारंभ

play07:53

केल्यास या जाळीच्या प्रदेशास डावीकडून

play07:58

उजवीकडे प्रारंभ करत असल्यास आपण

play08:03

त्यांना 1 2 3 आणि 4 म्हणून क्रमांकित करा.

play08:11

तर, मुळात आपल्याकडे चार पिन आहेत.

play08:17

आम्ही पिन वन ला पॉझिटिव्ह व्होल्टेजआणि शेवटच्या

play08:24

पिन ला ग्राउंड म्हणून ठेवतो.

play08:29

दुसरी पिन म्हणजे सिग्नल पिन आणि तिसरी

play08:35

पिन खुली आहे किंवा तिला काही जोडणी

play08:42

नाही.

play08:43

तर, कनेक्शनच्या या मूलभूत कल्पनांचे

play08:48

अनुसरण करून आम्ही ते ब्रेडबोर्डवर

play08:53

ठेवले; आता आपली पिन नंबर एक 3..3 व्होल्ट

play09:00

ते 5 व्होल्ट पर्यंतच्या पुरवठा दरम्यान जोडली

play09:04

जाणे आवश्यक आहे.

play09:06

तुम्ही या 5 व्होल्टची रेंज ओलांडू नये

play09:10

म्हणून खबरदारी घ्यावी अन्यथा तुमचा सेन्सर

play09:14

खराब होईल.

play09:15

पिन 2 ही डेटा पिन आहे ज्यामधून वास्तविक

play09:20

सेन्सर डेटा बोर्डवर येत आहे.

play09:23

पिन 3 मी तुम्हाला सांगितल्याप्रमाणे

play09:26

कोणत्याही कनेक्शनवर नल आहे आणि पिन 4 ग्राउंड

play09:30

आहे.

play09:31

तर, आर्डिनो आयडिईसह हार्डवेअरला इंटरफेस

play09:34

पुरवते.

play09:35

तर, आम्ही डीएचटी 22 च्या डीएचटी 11 साठी

play09:39

अ‍ॅडफ्रूट लायब्ररी वापरणार आहोत.

play09:42

तर आपण वापरत असलेला हा सेन्सर प्रत्यक्षात

play09:46

डीएचटी 22 आहे; आपले डीएचटी सेन्सर लायब्ररी

play09:50

ही तपमान मोजण्यासाठी आणि अशाच प्रकारे

play09:54

आर्द्रता मोजण्यासाठी काही मूलभूत सुविधा

play09:57

प्रदान करते.

play09:58

तर, आता फक्त कनेक्शन वगळू.

play10:01

ठीक आहे.

play10:02

प्रथम आपण सेन्सर एकत्रीकरणाचे पाहू.आपल्या

play10:05

विद्यमान अर्डिनो आयडीईची लायब्ररी

play10:08

अद्ययावत करण्याचे पाहू.

play10:09

तर, आम्ही चालू करूया.

play10:12

मेनूबारवर स्केच ला जाऊ या . तेथे लायब्ररी

play10:16

समाविष्ट करण्याचा पर्याय उपलब्ध आहे

play10:19

आणि सामान्यत: लायब्ररी व्यवस्थापित करण्याचा

play10:22

पर्याय शीर्षस्थानी असतो.

play10:24

आपण फक्त डीएचटी लिहा.

play10:26

तुम्ही पाहु शकता की मी यापूर्वीच

play10:30

ही लायब्ररी फाईल स्थापित केली आहे.

play10:33

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

play10:36

मिळेल, आपण फक्त त्यावर क्लिक करा आणि जर

play10:41

आपला पीसी इंटरनेटशी कनेक्ट झाला असेल

play10:45

तर आपला अर्डिनो आयडीई उर्वरित कार्य

play10:48

करेल.

play10:49

तुम्ही फक्त डाऊनलोड करा.ते सिस्टीम बरोबर

play10:53

इंटिग्रेट असलेली लायब्ररी डाउनलोड

play10:55

करेल.

play10:56

तुमचा आरडी नो आयडी परत चालू करा आता

play11:00

तुम्ही सज्ज आहात.

play11:02

मी ही लायब्ररी आधीपासूनच स्थापित केल्यामुळे

play11:06

यापुढे कृतीची आवश्यकता नाही.

play11:08

तर, आवश्यक असणार्‍या लायब्ररी तुम्ही

play11:11

आरडीनो आयडिई मध्ये अशाप्रकारे अपडेट

play11:14

कराल.

play11:15

आपण आधीच डीएचटी सेन्सर निवडलेले

play11:18

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

play11:22

ते स्थापित होईल.

play11:24

आता, डीएचटीच्या वास्तविक स्केचवर

play11:26

येण्यापूर्वी, आर्डूनो बोर्डसह हार्डवेअर

play11:29

स्थापित होईल.

play11:30

म्हणून,आपल्याला हे चार पिन आठवल्यास

play11:33

1 2 3 आणि 4 आपण ते ब्रेडबोर्डवर लावा.

play11:38

आम्ही चार जम्पर केबल्स 8 निवडतो.

play11:42

म्हणून आम्ही डीएचटीपासून सिग्नल वायरला पिन

play11:45

8 वर जोडतो, आपण कोणत्याही डिजिटल इनपुट आउटपुट

play11:50

पिनची ची निवड करू शकता.

play11:53

तर, आता आमचे हार्डवेअर तयार आहे.

play11:57

ते आता सोपे आहे.

play11:59

तर, डीएचटी सेन्सर च्या स्केच भागाकडे

play12:03

परत लक्ष वेधून घेऊया.

play12:05

आपण डाउनलोड केलेली लायब्ररी फाईल समाविष्ट

play12:09

करणे आवश्यक आहे त्यात काही शीर्षलेख

play12:12

फायली आणि इतर परिभाषा आहेत.

play12:15

तर, आपण त्या विशिष्ट लायब्ररी फाईलचा

play12:19

समावेश करणे आवश्यक आहे.

play12:21

तर पहिली ओळ हॅश इंक्लोड डी एच टी डॉट एच बरोबर

play12:28

आहे.

play12:29

नंतर डीएचटी सेन्सर लायब्ररीच्या सिंटॅक्समधून

play12:32

स्वतःच्या सिंटॅक्समधून आपण फक्त डीएचटी

play12:35

नंतर डीएचटी पिन आणि सेन्सर कॉल करता.

play12:39

तर, आपण तो डीएचटी सेन्सर प्रारंभ करीत

play12:43

आहात.

play12:44

तर हा सिंटॅक्स डिफाइन करत आहोत.

play12:47

तर एक म्हणजे फ्लोट आर्द्रता आणि दुसरे

play12:51

म्हणजे फ्लोट तापमान बरोबर.

play12:54

तर, आर्द्रता ही परिवर्तनशील आर्द्रता सेन्सर

play12:57

कडून प्राप्त आर्द्रता मूल्ये संचयित करेल

play13:01

आणि तापमान सेन्सर कडून मिळालेले तापमान

play13:05

मूल्ये संचयित करेल.

play13:07

आता, सेटअपच्या आत आपण बोर्ड किंवा

play13:10

सेन्सरकडून सिरीयल पोर्टवर जे काही

play13:13

वाचन पाहणार आहोत ते आम्ही पाहणार

play13:17

आहोत.

play13:18

आपण फक्त सिरीयल कनेक्शन प्रारंभ

play13:20

करतो.

play13:21

तर पुन्हा सीरियल डॉटची सुरुवात 9600

play13:25

च्या बाऊड दराने होईल त्यानंतर आम्ही

play13:28

डीएचटी डीएचटी.बिगीन आरंभ करतो.

play13:31

येथे दुसर्‍या ओळीत आपण आपला डीएचटी

play13:34

8 नंबर पिन नियुक्त केला आहे.

play13:38

आणि आम्ही तो सेन्सर डीएचटी २२ म्हणून

play13:42

दिला आहे .तर समजा आपण डीएचटी ११ चे

play13:47

व्हेरिएंटसाठी गेलोत किंवा जर हा भाग तुम्ही

play13:51

डीएचटी ११ म्हणून अपडेट करा किंवा

play13:55

पिन बदलण्याची योजना आखल्यास आरडीनो बोर्डावरील

play13:58

क्रमांक तो भाग येथे अपडेट करा.

play14:02

तर एकदा सेटअप पार्ट पूर्ण झाल्यावर तुम्ही

play14:06

लूपिंग पार्टमध्ये जा.

play14:08

येथे तुम्ही व्हेरिएबल आर्द्रता पाहू शकता.

play14:11

ज्यास डी एच टी डॉट रीड ह्युमिडिटी फंक्शन

play14:16

असाइन केले गेले आहे.

play14:19

तर, सेन्सर ऑफसेट आणि ऑपरेशन्स जे

play14:22

काही करणे आवश्यक आहे ती डी ए चटी डॉट

play14:28

एच लायब्ररी काळजी घेते.

play14:30

म्हणून, आपण फक्त रीड ह्युमिडिटी या

play14:34

फंक्शनला म्हणूनच कॉल करा.

play14:36

नंतर तपमान जसे डी एच टी डॉट रीड टेंपरेचर

play14:41

एकदा आपण कॉल केल्यावर फक्त हे बदल मुद्रित

play14:46

होतील.

play14:47

म्हणून मी दोन सेकंदांचा विलंब केला आहे.

play14:51

तर, दर दोन सेकंदानंतर आपली आर्द्रता आणि

play14:55

तापमान अपडेट होत राहील.

play14:58

.

play14:59

चला तर मग पुढच्या स्लाईडवर जाऊ.

play15:01

आम्ही या सेन्सर्सचा आधीपासून इंटरफेस

play15:04

केला आहे.

play15:05

हा कोड ही आपण आधीच्या स्लाइडमध्ये पाहिला

play15:10

आहे.

play15:11

पुन्हा आम्ही पीसी बोर्डशी कनेक्ट करण्याच्या

play15:14

मूलभूत पायऱ्या पाहू.

play15:16

आम्ही पोर्ट आणि बोर्ड प्रकार सेट

play15:19

करतो.

play15:20

आता पोर्ट आणि बोर्ड प्रकार बदलू शकतो

play15:24

हे लक्षात ठेवा कारण बोर्डाचा प्रकार

play15:28

निश्चितच बदलला जाईल, पोर्ट बदलू किंवा

play15:31

बदलू शकत नाही.यासाठी आम्ही मेगा निवडतो,

play15:35

मेगासाठी एक पर्याय असेल.

play15:37

आम्ही ते निवडल्यानंतर अपलोड करण्यापूर्वी

play15:40

आम्ही कोड सत्यापित करतो आणि नंतर कोड

play15:44

अपलोड करतो.

play15:46

तर,हे आउटपुट आहे आहे ज्याची आपण आपण

play15:50

अपेक्षा करत आहोत तसे आर्द्रता टक्केवारी

play15:53

आणि तपमान डिग्री सेल्सिअस मध्ये देत

play15:57

आहे.

play15:58

आणि प्रत्येक पंक्ती दोन सेकंदांच्या

play16:01

कालावधीने विभक्त केली गेली आहे.

play16:04

तर, दर दोन सेकंदानंतर आपले तापमान वाचन

play16:08

आणि आर्द्रता वाचन अद्ययावत होत आहे.

play16:11

तर आता हार्डवेअरच्या भागाकडे परत येऊ

play16:15

. तर, मी कोड माझ्यासमोर

play16:17

आधीच उघडलेला आहे.

play16:19

जसे आपण पाहू शकता # इंक्लुड डी एच टी

play16:24

डॉट एच केले तर तिथे कोणतीही त्रुटी आढळली

play16:29

नाही.

play16:30

अपलोड करण्यापूर्वी बोर्ड आधीपासूनच

play16:32

अर्डिनो बोर्डकडे लक्ष दिल्यास आम्ही

play16:35

आपला प्रोग्राम सुरक्षितपणे अपलोड करू शकतो.

play16:38

येथे हा बोर्ड पहा.

play16:41

आम्ही बोर्डवर कोड अपलोड केला आहे कारण

play16:45

आपण पाहू शकता की मी पुन्हा कोड अपलोड

play16:50

करेंन.

play16:51

हे दोन दिवे टीएक्स उघडतो.

play16:53

आपण पाहू शकता की आपले आर्द्रता आणि

play16:58

तपमान वाचन बदलत आहे.

play17:00

म्हणूनच, कदाचित आपण त्या अग्नीच्या

play17:03

दिशेने अग्नी पेटवू शकाल तर तपमानाचे

play17:07

वाचन वर गेले असेल आणि तापमान बदलत

play17:11

आहे हे पाहता येईल .तापमानात थोडा बदल

play17:15

होईल.

play17:16

पण हळूहळू २२.7, २२.8 ते वाढतच जाईल मी

play17:19

आशा करतो हे माझ्या शरीराचे तापमान गाठेल.

play17:20

आता त्याचे तापमान 23 आहे, आर्द्रता जवळपास

play17:21

98 टक्के98.6 टक्के इतकी आहे.

play17:22

तर, मला आशा आहे की आपणास काही कल्पना

play17:23

मिळाली असेल.

play17:24

आणि आपण या सामग्रीसह विचार करू शकता.

play17:25

म्हणूनच, हे बेसिक सेन्सर्स आहेत.

play17:26

जे आपण करू शकता;आपण हलके बीट सेन्सर

play17:27

समाकलित करू शकता, आपण अ‍ॅक्सेरोरोमीटर

play17:28

समाकलित करू शकता जे थोडेसे क्लिष्ट

play17:29

आहेत, परंतु त्यांच्यासोबत काम करणे चांगले

play17:30

आहे..

play17:31

तर, हा भाग होता आरडीनो सह सेन्सरचे समाकलन

play17:32

करणे.

play17:33

धन्यवाद.

Rate This

5.0 / 5 (0 votes)

相关标签
ArduinoSensor IntegrationIoT TutorialElectronicsTemperature SensorHumidity SensorDIY ProjectEducational ContentTech WorkshopMaker Community
您是否需要英文摘要?