I'd like to make something similar, but using sensors that may be used with an Arduino or another microcontroller.
Obviously, there are many sensors, and I can obtain them all, but I'd want to show you the sensors that I have in my workshop, show you an example code for each, and discuss how to utilize each of them.
We have a number of sensors, and some of them have digital outputs, analog outputs, or I- square C or SPI communication capabilities.
This will be another basic blog, but it will give you an idea of the kinds of projects you might do with an Arduino and some sensors.
Please double- check that you have clicked the subscribe button and the notification bell to get future posts from me.
Let's get started, thanks to all of my patrons for their support.
So, what is a sensor, exactly?
Even a push button, for example, may deliver a message.
It was able to tell if I had pressed the button or not.
Although this is self- evident, we don't normally refer to a push button as a sensor.
A detector is the output of the sensor process that determines if something is there or not.
his entire module, for example, is a so- called movement detector.
When it detects movement, it produces a large amount of energy.
If it doesn't detect any movement, it will alert you.
So, first and foremost, differentiate between a sensor and a detector.
A sensor is a device that delivers data or information based on its surroundings or circumstances, whereas a detector is a device that offers the detection output, such as an Arduino.
I attempted to divide my sensors into three groups.
Light- related sensors are first, followed by magnetic pressure, gyro and acceleration sensors, and finally a universal sensor that may be used for a variety of purposes.
Let's start from the beginning.
Okay, folks, the next item on the list is this heart rate sensor, which combines a basic optical heart rate sensor with an amplification and noise suppression circuit to provide rapid and straightforward pulse readings.
Make the connections and upload the Arduino code to the Arduino in this example.
After that, execute the code and obtain the serial data from the Arduino.
The cardiac pulses might be printed on the screen.
Isn't this very cool?
The PIR sensor, also known as a passive infrared radiation sensor, monitors changes in radiation.
We can sense movement by detecting changes in infrared radiation since our bodies emit heat in the form of infrared radiation.
So connect the Arduino to the computer and execute the example code.
In this case, I activate this light whenever I detect movement.
As you can see, I switch on the LED by moving my hand.
This sensor might be utilized in a variety of applications, such as turning on lights, setting a motion- activated alarm, and so on.
This infrared distance sensor is the next light- based sen based sensor.
Infrared light is utilized a lot, as you can see.
Because we are generally surrounded by visible light, which causes a lot of noise, this is the case.
This module will emit an infrared beam, which is ok.
The bounce beam of light is then detected.
One runs from 15 centimetres to 1 meter, and the other goes from 1 centimetre to 10 centimetres.
It will emit an analogue signal based on the distance.
This type of sensor was employed in my 3D scanner project since it has good precision when sensing tiny distances.
By connecting the serial monitor to an Arduino and sketching an example code, you may shorten the distance between the serial monitor and the LCD screen.
To figure out how to map the distance in Arduino code, you'll need the distance to voltage graph.
More information may be found in the code.
Okay, I also have a VL 53 L0 chip and a laser- based distance sensor.
This is one of the smallest laser- based distance sensor systems available.
Because it is so little, you could put it on any type of PCB and use it to detect distances or motions.
It sends data via an excellent cuesta communication system, and under ideal conditions, it can measure up to 2 meters.
The distance is measured by detecting the reflected laser beam.
Connect it to an Arduino board.
Install the required library (which you can find below) and execute the code to output a distance in millimetres to the serial monitor or, if you have one, to the LCD screen.
This module provides excellent distance precision, so keep that in mind while planning your project.
It is very inexpensive, costing only a few bucks.
This direct infrared sensor is another light- weight sensor.
This module includes an infrared LED that emits infrared light, as well as a photo transistor that detects the light reflected by an object in front of it.
I had nearly given up hope that this type of sensor, like these little modules, might be employed as a switch, where the emitter and receiver are one in front of the other and can attack if something gets in between them.
I've used this sensor in a variety of projects, including the encoded DC motor for various apps and the infrared remote, which uses infrared light to send and receive data.
As you can see, I was on the verge of giving up.
We could detect fire, for example, since it releases a lot of infrared light.
We can measure the voltage drop and see how it changes based on the light if we download the sample code and upload it to the Arduino.
We can attach this to an Arduino and use it to detect visible light, and perhaps even make a light- falling robot or anything else you can think of.
Okay, I also have an atmospheric pressure sensor, which will detect pressure and allow us to compute height.
Connect the module to the Arduino and then install the required libraries, which are also available below.
The code that prints the pressure and altitude (approximately)
This module might be used in a weather station project or for a drone, allowing you to implement the altitude hold setting.
More information is available at the following page.
Okay, gentlemen, we've reached the end of the list of sensors, which are fairly generic.
Let's have a look at this gas sensor first.
You might detect certain sorts of gases in the air you breathe depending on the type of sensor you use, such as flammable gases, air quality, or alcohol detection, however in this situation, the sensor will detect variations in the typical air proportion of gases.
It might also have an analog or direct detecting signal, which could be high or low, indicating if the typical air valves are operating correctly or whether the air is clean.
By connecting this module to an Arduino and uploading the code, it will print the angle grid from the sensor, and by adjusting the threshold values, it will be able to detect changes in air quality or any other gas using a particular gas sensor.
As you can see, the analog output increases as I release the guess from this lighter, indicating that there is a gas leak.
The common distance sensor that uses ultrasonic pulses is the next example.
It transmits a sound wave through the text, which is bounced, and counts the time it takes for it to return, and we can compute the distance to the item in front of the sensor by knowing the speed of sound.
I've written a whole guide on how to create a sensor similar to this one, so go to that blog for more information.
I've got a thermocouple voltage sensor presently.
A thermocouple is a component that, when heated, causes a tiny voltage drop on these contacts.
Because the voltage loss is so minimal, we can measure temperatures by knowing the temperature vs voltage drop connection.
This sort of sensor, which employs the Mac sixty- sixth amplifier, is required.
As a result, attach a k- type thermocouple to this module and link it to the Arduino.
This is the 49- hole sensor I used for my POV clock project as well as the electrical speed controller for the sensors.
Its output is linear.
You could use this as a switch, an encoder on a motor shaft, or any other idea you have if I link this analog output to an Arduino and use the magnetic fields.
You may also get a digital kind with a high or low output, which indicates whether the magnet is close to the component or not.
For a range of 0 to 5 volts, 16 bit ABC will give me 65 thousand points.
That's merely 75 microvolts of resolution.
It also has four separate analog inputs and employs fantastic, wild communication.
If you need a process, this is a fantastic module to use.
As you can see, it displays the analog value from this potentiometer into the screen or the serial monitor with a high degree of precision, so keep this module in mind if you need high precision for your analog readings.
There are many more on the market, so I hope this blog has given you an idea of how many sensors are available and how to utilize them.
Also, don't forget to hit the "like" button and tell your friends about this blog.
Post a Comment
If You Have Any Doubts, please Let Me Know