Aight! It is time to learn about sensors now. Let’s cut to the chase!
What is a sensor?
Any device that measures physical input from its environment and converts it into data that can be interpreted by us or a machine.
Let’s make it simpler with the example of an eye.
The eye is a sensor of sight for us and the electronic counterpart of it is a camera. Both gather visual information from the surrounding environment and convert it into data that can be interpreted by their respective data processing units, i.e., brain for us and microcontroller or microprocessor for machines.
Fact: The average resolution of a human eye is approximated to be 576 megapixels meanwhile the highest resolution camera devices ever created has a resolution of 108 megapixel created by Xiaomi
Now, we know what are sensors, but why do we need sensors in robotics?
To answer this question, let’s take an example- You want your device to function according to the light, say a light follower bot. So, the bot you built must act to detect where the light is and to follow the light, it needs to maximize the input of light. As the intensity of light increases, the distance between the source and bot decreases. Isn’t it? But how will you give the intensity of light as input to the microcontroller directly as the visual data can’t be directly interpreted by a microcontroller? We need an intermediate to bridge this gap.
There exists a need to convert light intensity into signals to feed them into our ICs or a microcontroller so the data can be interpreted and output can be obtained. We need a device that can sense the intensity of light in the surroundings and provide that information in the form of electrical signals to make a robot that acts on the intensity of light. Sensors, come to the rescue. Just like you have your senses to interact with the surroundings, such as
- Eyes for visual input (discussed above)
- Ears for auditory inputs
- Tongue for the sense of taste (or sense of pH indirectly)
- Skin for the sense of touch, change in temperature, etc
- Nose for the sense of smell
Similarly, fields of electronics also have several sensors so that the ICs and microcontrollers can interact with their surroundings. Although most of the sensors provide output in the form of electrical signals, some sensors provide data in some other form too.
For example, a thermometer is a sensor or a temperature sensor that senses the temperature and provides data in the form of visual information. In our case, we are going to use an LDR(sensor) to detect the intensity of light which in return feeds that data into our device to process further.
In a nutshell, sensors are the devices that detect the alteration in electrical or physical, or other quantities and provide the compatible data to the devices you are using to process the information. For a robot utilizing electronic circuitry or system to perform any useful task or function, it needs to be able to communicate with the “real world” whether this is by reading an input signal from an “ON/OFF” switch or by activating some form of the output device to illuminate a single light.
Now, we’ve mentioned some sensors. We need you to think which electronic sensors are associated directly with our sense organs and how. This is an assignment to help you understand the relation between sensors in humans and machines.
In the next blog, we’ll learn about how to choose sensors. We’ll also classify a wide range of sensors on different bases, and how they work.
Till then, try to think about more sensors that provide the data but not in the form of electric signals.