Sensors - which one to use

Electronoobs
3 Feb 201917:06

Summary

TLDRThis video script offers an extensive guide to various sensors compatible with Arduino and other microcontrollers, perfect for project enthusiasts. It covers a range of sensors from light-based to movement detectors, explaining their applications and providing example code. The script also distinguishes between sensors and detectors, emphasizing the importance of each in creating interactive projects. Viewers are encouraged to subscribe for more informative content and support the creator on Patreon.

Takeaways

  • πŸ“Ή The video provides an overview of various sensors suitable for use with Arduino and other microcontrollers.
  • πŸ” The presenter categorizes sensors into groups such as light-related, magnetic, pressure, gyro, acceleration, and general-purpose sensors.
  • 🌈 A color sensor based on the TCS3200 chip is introduced, which can detect red, green, and blue colors by applying white light and sensing the reflected frequency.
  • ❀️ A heart rate sensor is demonstrated, which combines an optical heart rate sensor with an amplification circuit for reliable pulse readings.
  • πŸ‘€ The PIR (Passive Infrared Radiation) sensor is explained, which detects movement by sensing changes in infrared radiation.
  • πŸ“ Infrared and laser-based distance sensors are showcased, which use reflected light to measure distances accurately.
  • πŸ”₯ An infrared sensor is used to detect fire by sensing the high amount of infrared light emitted by flames.
  • 🌞 The LDR (Light Dependent Resistor) is introduced, which changes its resistance based on the light intensity it receives.
  • 🧭 IMU (Inertial Measurement Unit) modules and a magnetometer are presented for detecting orientation, angle, and magnetic fields.
  • 🌑️ Atmospheric pressure sensors are discussed for measuring altitude and pressure, useful for weather stations or drones.
  • πŸ”₯ Gas sensors are mentioned for detecting changes in air composition, which can indicate air quality or the presence of specific gases.
  • πŸ“Ά An ultrasonic distance sensor is explained, which uses sound waves to measure distances to objects.
  • 🌑️ Thermocouple and thermistor sensors are introduced for temperature measurement, with the thermocouple being suitable for high-temperature environments.
  • πŸ”Œ A current sensor is demonstrated, which measures the electrical current used by a load when connected in parallel.
  • 🧲 A Hall effect sensor is presented for detecting magnetic fields, useful in various applications like switches or encoders.
  • πŸ”’ An ADC (Analog-to-Digital Converter) is highlighted for high-precision analog readings, offering 16-bit resolution for various applications.

Q & A

  • What is the main purpose of the video?

    -The main purpose of the video is to introduce various types of sensors that can be used with Arduino or other microcontrollers, provide example code for each, and discuss their applications.

  • What is the difference between a sensor and a detector as explained in the video?

    -A sensor is the device that gives information or data according to the surroundings or situation, while a detector is a device, such as an Arduino, that processes the sensor's data to give a detection output, indicating if something is or is not present.

  • What type of sensor is used to detect movement in the video?

    -A PIR (Passive Infrared Radiation) sensor is used to detect movement by sensing changes in infrared radiation.

  • How does the color sensor based on the TCS3200 chip work?

    -The color sensor applies white light and senses the response frequency of each color that is reflected. Different colored objects absorb different frequencies, allowing the sensor to detect the color.

  • What is the purpose of the heart rate sensor in the video?

    -The heart rate sensor combines an optical heart rate sensor with an amplification and noise-cancellation circuit to provide reliable pulse readings.

  • How does the infrared distance sensor measure the distance to an object?

    -The infrared distance sensor sends an infrared beam, detects the reflected beam, and measures the distance based on the angle at which the light touches the sensor.

  • What is the VL53L0 chip used for in the video?

    -The VL53L0 chip is used in a laser-based distance sensor to measure distances up to 2 meters with high precision.

  • What is the function of the direct infrared sensor in the video?

    -The direct infrared sensor uses an infrared LED to send light and a photo transistor to detect the reflected light. It can be used as a switch or to detect the presence of an object.

  • How does the LDR (Light Dependent Resistor) work?

    -The LDR changes its resistance value according to the amount of light it receives, which can be measured by creating a voltage divider and observing the voltage drop.

  • What is the purpose of the IMU (Inertial Measurement Unit) module in the video?

    -The IMU module, such as the MPU6050 or MPU9265, senses gyro forces and accelerations, which can be used to calculate angles and detect movements or changes in orientation.

  • How does the magnetometer sensor work?

    -The magnetometer sensor, like the HMC5883, measures the Earth's magnetic field, which can be used to create a compass and determine orientation or direction.

  • What is the atmospheric pressure sensor used for in the video?

    -The atmospheric pressure sensor measures air pressure to determine altitude or to be used in weather station projects.

  • How does the gas sensor detect changes in the air quality?

    -The gas sensor detects changes in the normal air percentage of gases, which can indicate the presence of specific gases or air quality changes.

  • What is the principle behind the ultrasonic distance sensor?

    -The ultrasonic distance sensor sends a sound wave, measures the time it takes for the wave to bounce back, and calculates the distance based on the speed of sound.

  • How does the thermocouple voltage sensor measure temperature?

    -The thermocouple creates a small voltage drop when heated, and by knowing the temperature versus voltage drop relation, the sensor can measure temperature.

  • What is the function of the thermistor in the video?

    -The thermistor is a temperature-dependent resistor that changes its resistance value with temperature changes, allowing temperature measurement when used with a voltage divider.

  • How does the current sensor module work?

    -The current sensor module, using the MAX471, measures the current that a load uses when connected in parallel with it.

  • What is theιœε°”δΌ ζ„Ÿε™¨ (Hall sensor) used for in the video?

    -The Hall sensor detects magnetic fields and can be used as a switch or an encoder on a motor shaft, providing a linear output based on the magnetic field strength.

  • What is the purpose of the 8-bit ADC mentioned in the video?

    -The 8-bit ADC is used for analog-to-digital conversion, providing 256 points for a range from 0 to 5 volts, but the video also mentions a 16-bit ADC for higher precision.

  • How does the 16-bit ADC improve precision in analog readings?

    -The 16-bit ADC provides 65,536 points for a range from 0 to 5 volts, offering a resolution of only 75 microvolts, which is much more precise than a standard 10-bit converter.

Outlines

00:00

πŸ” Introduction to Sensor Types for Arduino Projects

The script introduces a variety of sensors suitable for use with Arduino and other microcontrollers. It aims to provide examples, sample code, and discuss the applications of each sensor. The narrator emphasizes the difference between sensors, which gather data from the environment, and detectors, which process this data to indicate the presence or absence of certain conditions. The video is sponsored by JLCPCB, offering affordable PCB services, and encourages viewers to subscribe for future content.

05:01

🌈 Exploring Light-Related Sensors and Their Applications

This section delves into various light-related sensors, including a color sensor based on the TCS3200 chip, a heart rate sensor with an optical detector, and a PIR (Passive Infrared Radiation) sensor for motion detection. The script explains how these sensors work, for instance, the color sensor analyzing reflected light frequencies and the PIR sensor detecting changes in infrared radiation. It also mentions the need for additional software like Processing for certain sensors and provides schematics and code for testing these sensors with Arduino.

10:03

πŸ“‘ Discussing Advanced Sensor Modules for Motion and Environment Sensing

The script moves on to discuss more complex sensors such as the IMU (Inertial Measurement Unit) modules, which can detect gyro forces and accelerations, and magnetometers for measuring the Earth's magnetic field. It also covers atmospheric pressure sensors for altitude measurements and gas sensors for detecting changes in air composition. Each sensor's functionality is explained, along with potential applications like drone navigation, weather stations, and air quality monitoring. The importance of using specific libraries and the process of connecting these sensors to Arduino are highlighted.

15:03

πŸ”§ General Purpose Sensors and Their Versatile Uses

The final part of the script covers a range of general-purpose sensors, including distance sensors using ultrasonic pulses, thermocouples and thermistors for temperature measurement, current sensors for measuring electrical load, and Hall effect sensors for detecting magnetic fields. The script provides insights into how these sensors can be used in various projects, such as creating a POV clock or an electronic speed controller. It also mentions the use of an ADC (Analog-to-Digital Converter) for higher precision in analog readings. The video concludes by encouraging viewers to support the project on Patreon and to engage with the content by subscribing, liking, and sharing.

Mindmap

Keywords

πŸ’‘Sensors

Sensors are devices that detect changes in the environment and convert those changes into a signal. In the context of the video, sensors are used with Arduino or other microcontrollers to gather data for various projects. Examples include a PIR sensor detecting movement or a light sensor responding to different colors.

πŸ’‘Arduino

Arduino is an open-source electronics platform based on easy-to-use hardware and software. It is used in the video as the central microcontroller to which various sensors are connected to perform tasks such as detecting movement or measuring distances.

πŸ’‘Microcontrollers

Microcontrollers are small computers that are used to control a variety of electronic devices and systems. In the video, microcontrollers like Arduino are mentioned as the platform for interfacing with various sensors to create interactive projects.

πŸ’‘Digital Output

Digital output refers to a type of signal that a sensor can provide, typically in the form of a binary high (1) or low (0) state. In the video, a movement detector is described that gives a high output when movement is detected and a low output when there is no movement.

πŸ’‘Analog Output

Analog output is a continuous signal that can vary within a given range, as opposed to the discrete states of digital output. The video mentions sensors like the infrared distance sensor, which provides an analog output representing the distance to an object.

πŸ’‘I2C Communication

I2C, or Inter-Integrated Circuit, is a two-wire serial communication protocol used for attaching low-speed peripherals to a microcontroller or computer. The video describes sensors that use I2C to send data to the Arduino, such as the APDS-9960 color sensor.

πŸ’‘Magnetic Sensor

A magnetic sensor is a device that detects the presence of a magnetic field and responds to it. In the video, a magnetometer is mentioned, which measures the Earth's magnetic field to create a compass or detect orientation.

πŸ’‘Gyro Sensor

A gyro sensor measures angular velocity and can be used to determine the orientation of an object. The video discusses the MPU-6050, which is an IMU (Inertial Measurement Unit) that includes a gyro sensor to detect movements and calculate angles.

πŸ’‘Atmospheric Pressure Sensor

This type of sensor measures the pressure of the atmosphere, which can be used to determine altitude. The video mentions using an atmospheric pressure sensor to get altitude data, which can be useful for weather stations or drone applications.

πŸ’‘Thermistor

A thermistor is a type of resistor whose resistance changes with temperature. The video describes using a thermistor to create a voltage divider, where the output voltage changes with temperature, allowing the Arduino to measure the temperature.

πŸ’‘Current Sensor

A current sensor is used to measure the amount of electric current flowing through a circuit. In the video, the MAX471 current sensor is mentioned, which can be used to measure the current used by a load when connected in parallel with it.

πŸ’‘Analog-to-Digital Converter (ADC)

An ADC is a device that converts continuous analog signals into discrete digital values. The video mentions using a 16-bit ADC for higher precision in analog readings, such as measuring the value from a potentiometer with greater accuracy than the Arduino's built-in 10-bit ADC.

Highlights

Introduction to a variety of sensors compatible with Arduino and other microcontrollers.

Explanation of the difference between sensors and detectors, emphasizing the role of the sensor in data collection and the detector in processing.

Demonstration of a movement detector module using a PIR (Passive Infrared Radiation) sensor to detect changes in infrared radiation for motion sensing.

Overview of light-related sensors, including a color sensor based on the TCS3200 chip that senses reflected frequencies of red, green, and blue colors.

Introduction to a heart rate sensor that combines optical sensing with amplification and noise cancellation for reliable pulse readings.

Discussion on the use of PIR sensors for detecting movement and their applications in various projects such as lighting and alarms.

Explanation of infrared distance sensors and their use in measuring distances with high accuracy, suitable for projects like 3D scanners.

Introduction to a laser-based distance sensor with the VL53L0 chip, highlighting its small size and ability to measure distances up to 2 meters.

Description of an infrared sensor used for detecting the presence of objects and its potential applications in switches and remote controls.

Presentation of an LDR (Light Dependent Resistor) and its use in detecting light changes for applications like light-following robots.

Overview of IMU (Inertial Measurement Unit) modules like the MPU6050 and MPU9265 for sensing gyro forces and accelerations.

Introduction to a magnetometer for measuring the Earth's magnetic field, useful for creating compasses and drone navigation.

Discussion on atmospheric pressure sensors for measuring altitude and their potential use in weather stations and drones.

Overview of gas sensors for detecting specific types of gases or changes in air quality, with demonstrations of their sensitivity to gas leaks.

Explanation of ultrasonic distance sensors and their method of measuring distances by timing the echo of a sound wave.

Introduction to thermocouple voltage sensors for measuring temperatures in high-temperature environments up to 700 degrees.

Description of thermistors as temperature-dependent resistors for temperature measurement in projects requiring precise temperature sensing.

Overview of current sensors using the MAX471 for measuring the current used by a load, useful for projects involving power management.

Introduction to Hall effect sensors for detecting magnetic fields, with applications in switches and encoders for motor shafts.

Discussion on the use of 16-bit ADCs for high-precision analog readings, highlighting their advantage over the 10-bit ADCs in Arduinos.

Transcripts

play00:00

if you remember a few weeks ago I've

play00:02

made a video about types of displays

play00:04

that you could use in your project

play00:06

well I like to do the same but with

play00:08

sensors that you could use with Arduino

play00:10

or other microcontrollers obviously

play00:13

there are a lot of sensors and I can get

play00:16

them all but I would like to show you

play00:18

the sensors that I have around my

play00:19

workshop show you an example code for

play00:22

each and talk about the use of each of

play00:23

these sensors we have a lot of sensors

play00:26

and some of these have a digital output

play00:28

or an analog output or some sort of I

play00:31

square C or SPI communication this will

play00:34

be another basic video but in this way

play00:37

you could make an idea of what projects

play00:39

you could start with an Arduino and some

play00:40

sensors I hope this will help beginners

play00:43

or for those who are not beginners well

play00:45

see some more sensors that we have on

play00:47

the market before we start make sure you

play00:50

hit the subscribe button and the

play00:51

notification bell in order to see my

play00:53

future videos also thanks to all my

play00:55

patrons for the support so let's get

play00:57

started

play01:04

[Music]

play01:06

this video is sponsored by gel CPCB

play01:09

that offers the most economic prices for

play01:12

PCB services right now with only two

play01:14

dollars for ten PCBs of ten by ten

play01:16

centimeters the finish of their PCB is

play01:19

very professional and high quality so

play01:21

just upload the Gerber files to GL CPC

play01:23

b.com select the thickness the size the

play01:26

quantity and so on and place your order

play01:28

for amazing prices what's up my friends

play01:32

welcome back so I have a bunch of

play01:34

sensors here my table a breadboard my

play01:37

oscilloscope and an Arduino for tests I

play01:40

won't go with each other we know code

play01:42

step by step but I'm sharing below the

play01:44

schematic for each example and the code

play01:46

with comments for each line so make sure

play01:48

you read that before uploading the code

play01:51

so what could be a sensor I mean even a

play01:54

push button could send something it

play01:56

could detect if I push the button or not

play01:58

that's pretty obvious but we don't

play02:01

usually refer to a push button as a

play02:03

sensor more as a detector so a detector

play02:06

is the result after the sensor process

play02:08

to say if something is or is not for

play02:11

example this entire module is a

play02:12

so-called movement detector if it

play02:14

detects movement it gives a high output

play02:16

if we don't have movement the output is

play02:19

low so we couldn't call this a sensor

play02:22

but inside this module we have a PIR

play02:24

sensor or a passive infrared radiation

play02:27

sensor this will sense the amount of

play02:29

infrared radiation and give that amount

play02:32

to an integrated chip this one here and

play02:34

that will calculate the difference and

play02:36

say if there was movement or not so the

play02:39

detection process needs a sensor a

play02:41

device or module that could sense the

play02:43

events or changes from the environment

play02:45

and then send that information so let's

play02:48

just make the difference between the

play02:49

sensor and a detector the sensor is the

play02:52

device itself that gives information or

play02:54

data according to the surroundings or

play02:56

situation and the detector will be a

play02:58

device so let's say an Arduino for

play03:00

example that will give the detection

play03:02

output I've tried to separate my sensor

play03:05

in three packs here I have those who are

play03:07

light related sensors then I have the

play03:10

magnetic the pressure the gyro and

play03:12

acceleration sensors and this final

play03:14

group well is just general sensor with

play03:17

all kind of purposes

play03:18

let's start with this back here first we

play03:22

have a color sensor that is based on the

play03:24

TCS 3200 chip with photo dial turns for

play03:27

red green and blue colors

play03:29

this module will apply white light and

play03:32

sense the response frequency of each

play03:33

color that is reflected of course a red

play03:36

object will absorb all the colors but

play03:38

the red one and so on so you should run

play03:41

this example that will print the

play03:43

response for each color and place a red

play03:45

green and blue color in front of the

play03:46

sensor and note on the ranges of each

play03:48

color so you could then detect the

play03:50

colors for example here I place the blue

play03:52

side of this Ruby cube and I can see

play03:54

that a blue response is getting lower

play03:56

note down the values for each color you

play04:00

have the schematic an example code and

play04:02

the full tutorial about this below okay

play04:05

guys next we have this heart pole sensor

play04:08

it combines a simple optical heart rate

play04:10

sensor with an amplification and noise

play04:13

cancellation circuit making this fast

play04:15

and easy to get reliable pulse readings

play04:17

you will also need to install processing

play04:20

for this example make the connections

play04:23

and upload the Arduino code to the

play04:24

Arduino then run the processing and get

play04:27

the serial data from the Arduino and we

play04:29

could print the heart pulses to the

play04:30

screen this is pretty nice right

play04:34

ok guys next we have the PIR sensor or a

play04:37

passive infrared radiation sensor

play04:40

detects radiation changes and since our

play04:43

bodies radiate heat in the form of

play04:44

infrared radiation we can detect

play04:46

movement by detecting these changes in

play04:48

the infrared radiation so make the

play04:51

connections to the Arduino and run the

play04:53

example code the sensor will give the

play04:55

high output each time it detects

play04:57

movement in this example I turn on this

play05:01

led each time that I detect movement as

play05:03

you can see here I move my hand and I

play05:06

turn on the LED this sensor could be

play05:10

used in so many application where you

play05:12

could turn on lights set an alarm

play05:13

activated by movement and so on

play05:16

ok the next light based sensor is this

play05:19

infrared distance sensor as you can see

play05:22

infrared light is used very often that

play05:25

is because we are usually already

play05:27

surrounded by visible light and that

play05:29

will result in a lot of noise

play05:31

okay this module will send an infrared

play05:33

beam then it detects the bounce beam of

play05:36

light and depending on where the light

play05:38

touches the sensor it can detect the

play05:40

bounce angle and by that the distance to

play05:42

the object these sensors can be quite

play05:45

accurate I have one that goes from 15

play05:48

centimeters up to 1 meter and another

play05:50

one that goes from 1 centimeter to 10

play05:52

centimeters it will give an analogue

play05:55

output according to the distance here I

play05:59

have it connected to my low scope and as

play06:01

you can see by moving an object in front

play06:03

of the sensor the output value will

play06:04

change I've used this kind of sensor in

play06:07

my 3d scanner project since it has some

play06:10

decent precision when measuring small

play06:11

distances connected to an Arduino and a

play06:14

plot example code and you could bring

play06:16

the distance to the serial monitor or to

play06:18

the LCD screen you will need the

play06:21

distance to voltage graph in order to

play06:23

know how to map the distance in the

play06:24

Arduino code read the code for more ok I

play06:29

also have this laser based distance

play06:31

sensor with the VL 53 L 0 chip this is

play06:34

one of the smallest packages on the

play06:36

market for a laser based distance sensor

play06:38

as you can see it is very small so you

play06:41

could place this one on any kind of PCBs

play06:43

and detect the distances or gestures it

play06:46

uses a nice cuesta communication to send

play06:48

the data and it could measure up to 2

play06:50

meters in perfect conditions it measures

play06:53

the distance by detecting the reflected

play06:55

laser beam connect it to the Arduino

play06:58

install the needed library that you

play06:59

could also find below and run the code

play07:01

that will print a distance in

play07:02

millimeters to the serial monitor or to

play07:05

the LCD screen if you have one this

play07:07

module has a very good precision for

play07:08

distance so have this chip in mind when

play07:10

preparing your project it is also quite

play07:13

cheap just a few dollars another light

play07:17

weight sensor is this direct infrared

play07:18

sensor this module has an infrared LED

play07:21

that will send an infrared light then we

play07:25

have the photo transistor that will

play07:26

detect the light it reflects on an

play07:28

object in front of it this kind of

play07:31

sensor could also be used as a switch as

play07:33

these small modules do where the emitter

play07:35

and the receiver are one in front of

play07:36

each other and could attack when

play07:38

something is in between them I've used

play07:41

this sensor in a lot of projects such as

play07:43

the encoded DC motor to come

play07:45

apps or the infrared remote to send and

play07:47

receive data using infrared light as you

play07:50

can see almost lost hope more infrared

play07:52

light we get the higher will be the

play07:54

output or if we have the module into

play07:57

digital mode it will switch to high when

play07:59

we are close enough to the sensor this

play08:02

module has an amplifier and by setting

play08:05

the threshold with this potentiometer we

play08:07

could detect stuff

play08:08

for example fire emits a lot of infrared

play08:11

light so we could sense fire if we want

play08:14

download the example code and upload it

play08:16

to the Arduino and you could print the

play08:18

analog output to the serial monitor or

play08:20

to the LCD screen and then you could

play08:21

activate stuff for example turn on LED

play08:24

when we detect fire finally the last

play08:28

light based sensor is this LDR or light

play08:30

dependent resistor this resistor will

play08:33

change its value according to the amount

play08:35

of light that it receives so if I create

play08:38

a voltage divider and apply 5 volts to

play08:40

it we could measure the voltage drop and

play08:42

see how it changes according to the

play08:43

light we can connect this to an Arduino

play08:46

and detect the visible light and maybe

play08:48

create a light falling robot or any

play08:50

other idea that you have you have the

play08:53

schematic and a simple example code

play08:55

below together with the full tutorial on

play08:57

my webpage electronic comm ok guys now

play09:01

we have this other group here I have an

play09:04

IMU module and a magnetometer we've seen

play09:07

this immune module in a lot of past

play09:09

tutorials this is the APU 6050 and I

play09:12

also have the APU 9265 module it can

play09:16

sense gyro forces and accelerations with

play09:19

these values we could calculate the

play09:20

angle as well below this video you have

play09:23

a few examples this module uses a nice

play09:26

Christi communication to send the data

play09:28

to the microcontroller so connected to

play09:31

the Arduino and you could for example

play09:32

print the orientation angle to the Shura

play09:34

monitor or to the LCD screen you could

play09:38

also print the raw values of

play09:39

accelerations or gyro data you could use

play09:43

this sensor with drones that must fly

play09:45

horizontal also you could detect

play09:48

accidents by sensing the accelerations

play09:50

and when the peak is detected well that

play09:53

must be a fast change of acceleration so

play09:55

it might be an accident

play09:57

you could also detect if something moved

play09:59

if you detect gyro or acceleration

play10:02

changes that means that the object on

play10:04

which the module is placed moved this is

play10:07

a very interesting module okay guys I

play10:10

also have this magnetometer this module

play10:13

is the h MC

play10:14

58 83 and it uses a nice racy

play10:17

communication to send the data this

play10:20

measures the earth magnetic field so we

play10:22

could create a compass and attack where

play10:24

is north and by that orient us in space

play10:27

this could also be used with drones

play10:29

together with a GPS module so we could

play10:32

know the location of the drone you could

play10:34

also use this to make measurements of

play10:36

the earth magnetic field

play10:38

connect the I square see pins as in the

play10:40

schematic below and upload the example

play10:42

code that will print the magnetic values

play10:44

and that's it ok guys now I have this

play10:48

atmospheric pressure sensor it will

play10:51

measure the pressure so with that we

play10:52

could get the altitude the higher in the

play10:55

air we are the lower will be the

play10:57

pressure since we have less air above us

play10:59

pushing us downwards the module has a

play11:02

nice Cristy communication as well so

play11:04

connect that to the Arduino and then

play11:06

install the needed libraries that you

play11:08

could also find below run the code that

play11:11

will print the pressure and approximated

play11:12

altitude you could use this module for a

play11:16

weather station project or for a drone

play11:18

so you could implement the altitude hold

play11:20

configuration for that drone check more

play11:23

details in the link below ok guys we

play11:27

finally have the last group of sensors

play11:29

which are quite general let's start with

play11:32

this gas sensor now depending on the

play11:35

type of sensor you could detect specific

play11:37

types of gases as for example in

play11:39

flammable gases air quality or alcohol

play11:42

detection in the air that you excel but

play11:45

in this case this sensor will detect the

play11:47

changes in the normal air percentage of

play11:49

gases it uses an amplifier it could have

play11:53

an analog signal as well or directly the

play11:55

detection signal which could be high or

play11:57

low meaning that the normal valves of

play11:59

air are not right or that the air is

play12:01

clean connect this module to the Arduino

play12:04

and upload the code it will print the

play12:07

angle grid from the sensor and by

play12:09

setting the threshold values

play12:11

could detect the air quality changes or

play12:12

any other gas by using a specific gas

play12:14

sensor as you can see when I release

play12:18

guess from this lighter the analog

play12:19

output increases and that means that we

play12:22

have a gas leak

play12:25

okay the next example is the common

play12:27

distance sensor using ultrasound pulses

play12:29

it sends a sound wave the text the

play12:32

bounced wave and it calculates the time

play12:34

it took this out to get back and by

play12:36

knowing the speed of sound we can get

play12:38

the distance to the object in front of

play12:40

the sensor I've made a full tutorial on

play12:43

how to make a sensor like this one so

play12:44

check that video for more details

play12:47

connect the module and upload a code and

play12:49

it will print a distance in centimeter

play12:51

onto the serial monitor or to the LCD

play12:53

screen if you have one read more about

play12:56

this on my webpage and read the lines in

play12:58

the example code for more okay now I

play13:02

have a thermocouple voltage sensor the

play13:05

thermocouple is a component that will

play13:07

create a small voltage drop on these

play13:08

connectors when it's heated up by

play13:11

knowing the temperature versus the

play13:13

voltage drop relation we can measure

play13:15

temperatures since the voltage drop is

play13:18

very very small we need this kind of

play13:20

sensor that uses the Mac sixty 675

play13:22

amplifier so connect a k-type

play13:25

thermocouple to this module and make the

play13:27

connections to the Arduino then upload

play13:30

the code and run it and it will print

play13:31

the temperature as you can see I heat up

play13:34

the thermocouple and I get the real

play13:36

value of the temperature this kind of

play13:39

component is very useful when working

play13:41

with high temperatures since it would

play13:43

withstand up to 700 degrees okay now in

play13:47

the same way I have this thermistor

play13:49

which is a temperature dependent

play13:51

resistor as in the example with the

play13:53

light dependent resistor we could create

play13:55

a voltage divider and we will see that

play13:57

the output voltage will vary depending

play13:58

on the temperature if we know that our

play14:01

mister response we can measure the

play14:03

temperature with the Arduino as you can

play14:06

see when I heat up the thermistor the

play14:08

resistance will change and as you can

play14:10

see on the oscilloscope the voltage

play14:12

divider output will change as well more

play14:14

information below okay I also have this

play14:17

current sensor this module uses the max

play14:20

471 current sensor

play14:23

connect this module in parallel with the

play14:25

load and it will measure the current

play14:27

that the load uses I make the

play14:30

connections and I add a resistor as a

play14:32

load and I use this power controller to

play14:34

variety applied voltage from the battery

play14:36

after I upload an example code it will

play14:39

print the current values and as you can

play14:41

see I increase the voltage and the

play14:42

current increases as well and that gets

play14:44

printed onto the screen this is another

play14:47

very useful sensor for your projects

play14:49

now here we have a whole sensor the

play14:53

small component could detect magnetic

play14:55

fields I've used this kind of sensor for

play14:57

my POV clock project and for the sensors

play14:59

electronic speed controller this is the

play15:02

49 a hole sensor and this one has a

play15:05

linear output if I make the connections

play15:08

to 5 volts and ground as you can see

play15:10

when I place a magnet goes to this

play15:11

module the output will increase or

play15:13

decrease I could connect this analog

play15:16

output to an Arduino and by dead the

play15:18

tech magnetic fields you could use this

play15:21

as a switch or an encoder on a motor

play15:23

shaft or any other idea that you have

play15:25

once you know how to measure the output

play15:27

you could use this for any project it is

play15:29

very easy to use you also have the

play15:32

digital type where the output is high or

play15:34

low and that means that the magnet is

play15:36

close to the component or not ok so

play15:39

finally I have an 8 DC now you could say

play15:42

that this is not a sensor but

play15:44

technically it sends the unlock value

play15:46

you could use the ADC of the Arduino but

play15:49

that is only a 10 bit converter for more

play15:51

precision I have this 16 bits ABC this

play15:54

will give me 65 thousand points for a

play15:56

range from 0 to 5 volts that is a

play15:59

resolution of only 75 micro volts it

play16:03

uses a nice crazy communication as well

play16:05

and it has four different analog inputs

play16:07

this is a great module if you want

play16:09

procedure I make the connections and now

play16:12

as you can see it prints the analog

play16:14

value from this potentiometer to the

play16:15

screen or to the serial monitor with

play16:17

very high precision so have this module

play16:20

in mind when you want good precision for

play16:22

your analog reads so that's it my

play16:24

friends these are more or less the

play16:26

sensors that I have right now laying

play16:27

around my workshop there are much more

play16:29

on the market so I hope that this video

play16:31

helped you to make an idea of the amount

play16:33

of sensors and how to use each one of

play16:35

them consider supporting

play16:37

my project on patreon if you liked this

play16:39

video make sure to subscribe and

play16:41

activate your notification bell for

play16:42

future videos also click the like button

play16:45

like crazy and share this video with

play16:46

your friends and remember that you'll

play16:48

help on patreon means a lot for me and

play16:50

will keep these kind of videos going so

play16:52

thanks again and see you later guys

play16:55

[Music]

Rate This
β˜…
β˜…
β˜…
β˜…
β˜…

5.0 / 5 (0 votes)

Related Tags
ArduinoSensorsTutorialDIYTechnologyElectronicsInfraredGas DetectionDistance MeasuringMagnetic Field