SANJIVANI FAB LAB

Week 9: Input Devices

This week, Dr. Shantanu Kadam and I collaborated on an assignment focused on signal measurement using a digital storage oscilloscope (DSO) and a multimeter. While the task was insightful, we realized our understanding of sensors is limited, marking the beginning of a new journey for us.

Ultrasonic Sensor

This sensor measures distance by emitting sound waves and calculating the time it takes for them to bounce back. It is commonly used in parking systems, obstacle detection, and robotics.

The HC-SR04 ultrasonic module stands out for its expansive detection range, spanning from 2cm to 400cm , with a remarkable accuracy of up to 3mm. Consequently, it proves to be particularly well-suited for scenarios that demand precise distance measurements.

Description Description

It all starts when the trigger pin is set HIGH for 10µs. In response, the sensor transmits an ultrasonic burst of eight pulses at 40 kHz. This 8-pulse pattern is specially designed so that the receiver can distinguish the transmitted pulses from ambient ultrasonic noise.

These eight ultrasonic pulses travel through the air away from the transmitter. Meanwhile the echo pin goes HIGH to initiate the echo-back signal.

If those pulses are not reflected back, the echo signal times out and goes low after 38ms (38 milliseconds). Thus a pulse of 38ms indicates no obstruction within the range of the sensor.

Descriptive text about the GIF

Calculating the Distance

The width of the received pulse is used to calculate the distance from the reflected object. This can be worked out using the simple distance-speed-time equation we learned in high school. An easy way to remember the equation is to put the letters in a triangle.

Descriptive text about the GIF

We connected the trigger pulse pin to the DSO to observe its response. By carefully probing the signal, we were able to see the waveform, gaining insights into its behavior and characteristics. This process allowed us to understand the interaction between the trigger pulse and the oscilloscope's display, providing valuable data for our assignment.

image

We observed the trigger pulse on the Arduino board and measured its corresponding response on the echo board. By analyzing the signals on both boards, we gained a better understanding of the interaction and timing relationships of voltage pulse between the components.

image

DTH 11 Sensor

DHT11 Module features a temperature & humidity sensor complex with a calibrated digital signal output. The exclusive digital-signal-acquisition technique and temperature & humidity sensing technology ensure high reliability and excellent long-term stability. This sensor includes an NTC for temperature measurement and a resistive-type humidity measurement component for humidity measurement.

The DHT11 module has a total of 3 pins. In which two are for power and one is for communication. The pinout of a DHT11 Sensor module is as follows:

image

Similary we used the multimeter and observe the voltage in the data pin when it shorted with ground

image

Damaged sensor module shows the Zero '0' voltage on the out/data pin, observed commonly

During our observation of the DTH sensor while it was communicating with the Arduino, we noticed that it exhibited a response influenced by a delay. This response was characterized by the generation of square-like pulses. These pulses seemed to reflect the sensor's data transmission behavior, providing us with an interesting insight into its operation and timing dynamics.

PIR Sensor

PIR stands for Passive Infrared Sensor. It is an electronic device used to detect motion by measuring changes in infrared (IR) radiation in its surrounding environment.

Sensor measures infrared light radiating from objects. PIR sensors mostly used in PIR-based motion detectors. Also, it used in security alarms and automatic lighting applications

image

Typically 5-12 meters (16-40 feet) and angle from 90° to 180°

Generally, PIR sensor can detect animal/human movement in a requirement range. PIR is made of a pyroelectric sensor, which is able to detect different levels of infrared radiation. The detector itself does not emit any energy but passively receives it

Based on the movement, we observed certain voltage spike waveforms on the DSO when moving a hand over the PIR sensor. These spikes corresponded to the sensor detecting changes in infrared radiation caused by motion within its working range. The angle of the sensor’s working range significantly influenced its detection sensitivity, typically covering a field of view of 90° to 180°.

The step voltage responses observed in the DSO reflected the sensor's reaction to sudden changes in motion within its detection range. The waveform characteristics, such as amplitude and frequency of the spikes, provided valuable insights into the sensor's sensitivity and operational behavior under varying angles and movement patterns.

Learned in this week

😀 We also gained an understanding of the working operations of various sensors and how to trace their responses using DSO

😀 We also learned to use a multimeter to check whether the sensor was functioning or dead. By measuring parameters such as continuity, voltage, or resistance, we could determine the sensor's operational status 😀

😀 Learned to use XIAO RP2040

Happy Learning

😀 Suith Mayakrishnan 😀