NOV-DEC 2024 ΜΕ 3791-MECHATRONICS and IoT - ANSWERS
NOV-DEC 2024
ΜΕ 3791-MECHATRONICS and IoT
PART A-(10 x 2 = 20 marks)
ANSWERS
1. Provide examples of optical sensors and their
applications in mechatronics.
Answer:
Examples: Photodiodes, phototransistors, and infrared sensors.
Applications: Used in object detection, position sensing, and safety systems in
automation and robotics.
2. How do brushless permanent magnet DC motors
differ from traditional brushed DC motors in terms of their construction and
operation?
Answer:
Brushless motors have no brushes and use electronic commutation; brushed motors
use mechanical commutators and brushes.
Brushless motors are more efficient, reliable, and require less maintenance.
3. Sketch the VI characteristics of a TRIAC.
Answer:

4. Draw the Darlington pair circuit.
Answer:

5. List any two communication protocols used in IoT
devices.
Answer:
1.
MQTT (Message Queuing Telemetry
Transport)
2.
CoAP (Constrained Application
Protocol)
6. Define IDE.
Answer:
IDE (Integrated Development Environment) is a software suite that combines
tools like a code editor, compiler, debugger, and build automation tools into a
single interface for software development.
7. Differentiate compiled and interpreted language.
Answer:
Compiled languages convert the entire code to machine language before execution
(e.g., C).
Interpreted languages execute code line by line during runtime (e.g., Python).
8. List the features of NodeMCU.
Answer:
1.
Built-in Wi-Fi module (ESP8266)
2.
Supports Lua scripting and
Arduino IDE
9. Mention the purpose of an electronic ignition
system in a vehicle.
Answer:
It provides precise ignition timing and better spark control, improving fuel
efficiency and reducing emissions.
10. Write the uses of ABS in vehicles.
Answer:
1.
Prevents wheel lock during
braking
2.
Enhances vehicle control and
reduces stopping distance on slippery surfaces
11. (a) Describe the working
principle of a piezoelectric sensor and its applications in mechatronics.

A piezoelectric
sensor works on the piezoelectric effect, where certain materials generate
an electrical charge when subjected to mechanical stress, such as pressure or
vibration. In a mechatronic system, these sensors are used in applications
like force measurement, vibration analysis for predictive maintenance, pressure
monitoring in industrial and automotive systems, and as accelerometers for
motion detection in smart devices, converting dynamic physical changes into
measurable electrical signals.
Working Principle
The sensor contains
a piezoelectric material, like a quartz crystal, which has an unsymmetrical
atomic arrangement.
2. Mechanical Stress:
When a mechanical
force, pressure, or vibration is applied to the material, its internal
structure is distorted.
3. Charge Separation:
This distortion
causes positive and negative electrical charges to separate on the faces of the
material, creating a net positive and negative charge on opposite sides.
4. Electrical Signal Generation:
The separation of
charges results in a voltage across the material, which is then measured.
5. Dynamic Measurement:
Since the charge generation is
proportional to the rate of change in mechanical stress, piezoelectric sensors
are highly responsive to dynamic changes in force, pressure, or vibration,
rather than static or constant forces.
Applications in Mechatronics
Used to measure and
quantify forces, tension, and compression in robotic systems, industrial
equipment, and medical devices.
Employed to monitor
changes in gas or liquid pressure in automotive and aerospace applications, as
well as industrial processes.
Detect and measure
acceleration and vibration in machinery, enabling equipment health monitoring
and predictive maintenance by identifying changes in operating conditions.
Ultrasonic Transducers:
In some medical and
industrial devices, piezoelectric transducers are used to generate and receive
ultrasonic waves for imaging or flow measurement.
Smart Devices:
Incorporated into smartwatches and
other personal devices to detect vibrations from movement and heartbeats, which
can be used for health and activity monitoring
11.b) Describe the main components
and operation of solid-state sensors, and discuss their advantages over
traditional mechanical sensors in mechatronics.
Main
components and operation of solid-state sensors
Main
components
A typical solid-state sensor is
composed of three main parts, which are often integrated onto a single
microchip.
Sensing
element: This is the core component
that directly interacts with the physical quantity being measured, also called
the "measurand". The sensing element is made from a semiconductor
material configured to exhibit a change in its electrical properties, such as
resistance, capacitance, or voltage, in response to the stimulus.
Supporting
electronics: Integrated onto the
same chip, these circuits amplify, filter, and condition the raw signal from
the sensing element. This processing ensures the signal is clean, stable, and
ready to be read by a microcontroller or other digital system.
Encapsulation/package: A protective housing or package encloses the
sensitive sensing element and electronics. This protects the device from
environmental factors like moisture, dust, and mechanical stress, ensuring
stable and reliable performance.
Operation
The operation of a solid-state sensor
follows a three-step process: sensing, signal conditioning, and output.
Sensing:
The sensing element detects a
physical stimulus. For example, in a solid-state pressure sensor, a silicon
diaphragm deforms under pressure, causing a change in the resistance of
integrated piezoresistors.
Transduction
and conditioning: The change in
the sensing element's electrical properties is a raw, often very weak, signal.
The supporting electronics perform signal conditioning, which may include:
Amplification: Increasing the signal's
strength.
Filtering: Removing unwanted noise from the signal.
Analog-to-Digital Conversion (ADC):
Converting the analog signal into a digital format that can be used by a
computer.
Output: The conditioned electrical signal is sent to an
output terminal, ready to be interpreted by a control system, such as a
Programmable Logic Controller (PLC) or microcontroller.
Advantages
and Disadvantage of Solid state sensors
|
Advantages |
Disadvantage |
|
· Higher Accuracy
– Electronic sensors provide more precise measurements. · Faster Response
Time – They react more quickly to changes in input. · Smaller Size
– Miniaturization allows compact and lightweight designs. · Digital
Integration – Easy interface with microcontrollers and digital
systems.
|
· Power Dependency
– Require external power sources, unlike passive mechanical sensors. · Susceptible to EMI
– Can be affected by electromagnetic interference. · Higher Cost
– Often more expensive initially than mechanical counterparts. · Complexity
– More complex design and integration processes.
|
12. (a) Explain the various blocks
contained in a typical data acquisition system.

A typical data acquisition (DAQ) system contains several functional
blocks that work together to collect, process, and analyze real-world physical
phenomena. The blocks form a measurement chain that converts an analog signal
into a digital format that can be stored and analyzed by a computer.
1. Transducers or sensors
This is the first block in a DAQ system, responsible for interacting with
the physical variable to be measured, such as temperature, pressure, or force.
Function: Converts a physical parameter into a measurable electrical
signal, such as voltage or current.
Examples: Thermocouples and RTDs: Convert temperature into an electrical
signal. Strain gauges and load cells: Measure stress and weight. Accelerometers:
Measure vibration and shock.
2. Signal conditioning circuitry
The electrical signals from sensors are often weak, noisy, and
non-linear, making them unsuitable for direct conversion. The signal
conditioning block prepares these signals for the next stage.
Function: Modifies the
sensor's output to make it compatible with the analog-to-digital converter
(ADC).
Common tasks:
Amplification: Increases the
signal's voltage or current to a usable level.
Filtering: Removes unwanted high-frequency electrical noise from the
signal.
Linearization: Corrects non-linear sensor responses, such as those from
thermocouples, to ensure accuracy.
Excitation: Provides power to
certain types of sensors, like strain gauges and RTDs.
3. Multiplexer (for multichannel systems)
In systems that measure multiple signals simultaneously, a multiplexer is
used to manage the data flow before the ADC.
Function: Takes multiple analog input signals from the signal
conditioning block and outputs a single channel, cycling through each input
sequentially.
4. Analog-to-Digital Converter
(ADC)
This is the critical component that bridges the analog and digital
worlds.
Function: Samples the analog signal at discrete time intervals and
converts it into a series of digital values that a computer can understand.
Key parameters:
Sampling rate: The speed at which the ADC takes samples. A higher
sampling rate is necessary for fast-changing signals to avoid aliasing
(distortion).
Resolution: The number of bits the ADC uses to represent the signal. A
higher bit count results in more precise digital values.
5. Digital processing and storage
Once the data is digitized, it is handled by the DAQ hardware and
software.
Function: The digital data is transferred to a computer via an interface
(e.g., USB, Ethernet) for logging and analysis.
Storage: Data is written to a digital storage medium, such as a hard disk
drive (HDD) or solid-state drive (SSD), for long-term storage.
Visualization and Analysis: Software processes the data, displays it on a
user interface in various formats (e.g., graphs, gauges), and allows for
mathematical and statistical analysis.
6. Display and output
The final block presents the acquired data to the user and can also
provide output for control systems.
Function: Shows the data in a human-readable format, either in real-time
or from stored files.
Examples: Digital displays, monitors, and plotters are used to visualize
the processed data. In control applications, the digital output can be
converted back to an analog signal using a Digital-to-Analog Converter (DAC) to
control other devices.
(b) Explain the construction and working of a
Wheatstone Bridge Amplifier and illustrate how they help in force measurement.
A Wheatstone bridge
amplifier uses an operational amplifier (op-amp) to measure and amplify the
small voltage changes from a Wheatstone bridge circuit, which is often
configured with strain gauges for force measurement.

Construction of a
Wheatstone bridge amplifier
A Wheatstone bridge
amplifier combines two main circuits: a Wheatstone bridge and a differential or
instrumentation amplifier.
1. The Wheatstone
bridge circuit
This consists of
four resistors arranged in a diamond shape.
- An excitation voltage (VEXcap V sub cap E cap
X end-sub
𝑉𝐸𝑋) is
applied across one pair of opposite junctions (e.g., A and C).
- The output voltage (VOUTcap V sub cap O cap U
cap T end-sub 𝑉𝑂𝑈𝑇) is measured
across the other two junctions (e.g., B and D).
- For force measurement, at least one of the
resistors is a strain gauge, a device whose resistance changes
proportionally with mechanical strain.
2. The amplifier circuit
Since the voltage
change from a Wheatstone bridge is very small (often in the millivolt range),
an amplifier is needed to produce a usable signal.
- A differential
amplifier amplifies the difference between the voltages at the output
terminals of the bridge.
- An instrumentation amplifier can be
used for higher precision, offering high input impedance and excellent
common-mode rejection.
Working of a Wheatstone bridge amplifier
The working
principle combines the strain gauge's resistance change with the amplifier's
ability to boost the resulting voltage difference.
- Initial balance: The bridge is
designed and adjusted to be in a "balanced" state when no force
is applied. In this state, the voltage at points B and D is equal,
resulting in a zero output voltage
- Force
application: A force is applied to the object to which the
strain gauge is attached.
- This
causes the strain gauge to deform (stretch or compress), changing its
electrical resistance.
- For
example, a tension force stretches the gauge, increasing its resistance,
while a compression force shortens it, decreasing its resistance.
- Bridge
imbalance: The change in the strain gauge's resistance
unbalances the Wheatstone bridge, creating a voltage difference across the
output terminals (B and D). The greater the force, the larger the change
in resistance and the higher the voltage imbalance.
- Amplification
and output: The small differential voltage from the
bridge is fed into the amplifier. The amplifier then produces a larger,
clean, and stable output voltage proportional to the applied force. This
voltage can be easily measured and interpreted by a microcontroller or
data acquisition system.
How it helps in
force measurement
The Wheatstone bridge amplifier is a cornerstone of modern force
measurement devices; such as load cells. It provides several key
benefits:
- High sensitivity and accuracy: The
bridge is sensitive enough to detect minute changes in resistance,
allowing for the accurate measurement of very small forces. With multiple
strain gauges, a "full-bridge" configuration enhances
sensitivity and compensates for temperature effects.
- Proportional
output: The amplifier's output voltage is directly
proportional to the force applied. After calibration, this output can be
converted into a precise force reading.
- Temperature
compensation: The bridge can be configured to compensate
for temperature-induced resistance changes, which might otherwise cause
measurement errors. For example, by placing two gauges under tension and
two under compression, the temperature effects cancel each other out,
ensuring the output is solely dependent on the applied force.
- Signal
conditioning: The amplifier not only boosts the signal but
can also include filtering to remove unwanted electrical noise, ensuring a
clean and reliable measurement.
Q.13 (a) Comparison of Arduino,
Raspberry Pi, and BeagleBone Boards
|
Feature |
Arduino Uno |
Raspberry Pi 4 |
BeagleBone Black |
|
Processor |
8-bit ATmega328P, 16 MHz |
64-bit Quad-core ARM
Cortex-A72, 1.5 GHz |
32-bit ARM Cortex-A8, 1 GHz |
|
RAM |
2 KB SRAM |
2–8 GB LPDDR4 |
512 MB DDR3 |
|
Input Voltage |
7–12 V DC (via adapter) / 5
V USB |
5 V (USB-C) |
5 V (via adapter or USB) |
|
Storage |
32 KB Flash (program
memory) |
microSD card + optional SSD |
4 GB eMMC + microSD slot |
|
Ports |
14 Digital I/O, 6 Analog
In, UART, SPI, I²C |
4× USB, HDMI, GPIO (40
pins), Camera & Display interface |
USB, HDMI, Ethernet, 65
GPIO, SPI, I²C, UART |
|
Networking |
No built-in (modules via
shields) |
Built-in Wi-Fi, Bluetooth,
Ethernet |
Ethernet, optional Wi-Fi
via dongle |
|
Operating System |
No OS (runs sketches) |
Linux-based (Raspberry Pi
OS, Ubuntu, etc.) |
Linux-based (Debian,
Ångström) |
Areas of Application
·
Arduino → Sensor interfacing, robotics, IoT prototypes, automation
projects.
·
Raspberry Pi → Media centers, servers, AI/ML projects, IoT gateways, edge
computing.
·
BeagleBone → Industrial control, robotics, automotive, real-time applications.
Advantages & Limitations
·
Arduino
✅ Easy to use,
low power, cheap
❌ Limited
processing power, no OS
·
Raspberry Pi
✅ High
processing power, multimedia support, networking built-in
❌ Higher power
consumption, less real-time control
·
BeagleBone
✅ Rich GPIO,
real-time processing (PRU units), industrial use
❌ Less community
support than Pi, moderate cost
Q.13 (b) Peripherals in Embedded
Systems
|
Peripheral |
Application
Example |
|
Sensors (Temperature, Pressure, Motion) |
Monitoring environment, industrial automation |
|
Actuators (Motors, Relays, Solenoids) |
Robotics, motor control, automation |
|
Display (LCD, LED, OLED, Touchscreen) |
User interface in appliances, dashboards |
|
Communication Modules (Wi-Fi, Bluetooth, Zigbee,
GSM) |
IoT devices, remote monitoring |
|
Storage Devices (EEPROM, SD Card, Flash) |
Data logging in embedded systems |
|
Input Devices (Keypad, Switches, Touch sensors) |
ATMs, security systems |
|
Audio/Video Interfaces |
Multimedia players, smart assistants |
14.
(a) Explain the components of a Linux system. List any 4 Linux Commands along
with their usage.
Components of a Linux System:
A Linux system is
made up of several key components that work together to provide a fully
functional operating system. The major components are:
1. Kernel:
o
The core of the Linux operating
system.
o
It manages hardware resources,
process management, memory management, device drivers, and system calls.
o
It acts as a bridge between
software applications and the hardware.
2.
Shell:
o
It is a command-line
interpreter that takes user commands and passes them to the kernel for
execution.
o
Popular shells include Bash
(Bourne Again SHell), Zsh, and Ksh.
3.
File System:
o
Organizes and stores files on
disk drives.
o
Linux uses a hierarchical
directory structure starting from the root directory (/).
4.
System Libraries:
o
These are special functions or
programs used by applications to perform standard tasks without rewriting code.
o
For example, the GNU C Library
(glibc) is a critical system library.
5.
User Space and
Utilities:
o
Includes all the user programs
and utilities such as editors, compilers, and shells.
o
Examples are ls, grep, and vim.
Four Linux Commands and Their Usage:
1. ls
o
Usage: ls [options] [directory]
o
Description: Lists files and
directories in the specified directory.
o
Example: ls -l lists
files with detailed information like permissions, owner, size, and modification
date.
2.
cd
o
Usage: cd [directory]
o
Description: Changes the
current directory to the specified directory.
o
Example: cd /home/user moves to the /home/user directory.
3.
mkdir
o
Usage: mkdir [directory_name]
o
Description: Creates a new
directory.
o
Example: mkdir new_folder creates a directory named new_folder.
4.
rm
o
Usage: rm [options] file_name
o
Description: Removes files or
directories.
o
Example: rm file.txt
deletes the file named file.txt. Use rm -r
directory_name to remove directories
recursively.
14. (b) With neat diagram, explain the
working principle of the ultrasonic distance sensor. Write an Arduino based
program to measure distance using ultrasonic sensor.
Working Principle of Ultrasonic Distance
Sensor:
·
The ultrasonic sensor (such as
HC-SR04) measures distance by sending out an ultrasonic pulse and measuring the
time it takes for the echo to return after hitting an object.
·
It consists of two main parts: Transmitter
and Receiver.
·
The transmitter emits an
ultrasonic sound wave at a frequency typically around 40 kHz.
·
The wave travels through the
air, hits an object, and bounces back to the receiver.
·
The sensor calculates the
distance using the formula:
Distance=Time taken by echo×Speed of sound2\text{Distance}
= \frac{\text{Time taken by echo} \times \text{Speed of sound}}{2}Distance=2Time taken by echo×Speed of sound
·
The division by 2 is because
the time recorded is for the round trip (to the object and back).

Arduino Program to Measure Distance Using Ultrasonic Sensor:
// Define pinsconst int trigPin = 9;const int echoPin = 10; void setup() { Serial.begin(9600); // Start serial communication at 9600 baud pinMode(trigPin, OUTPUT); // Set trigPin as output pinMode(echoPin, INPUT); // Set echoPin as input} void loop() { long duration; float distance; // Clear the trigPin by setting it LOW digitalWrite(trigPin, LOW); delayMicroseconds(2); // Trigger the sensor by setting the trigPin HIGH for 10 microseconds digitalWrite(trigPin, HIGH); delayMicroseconds(10); digitalWrite(trigPin, LOW); // Read the echoPin and return the sound wave travel time in microseconds duration = pulseIn(echoPin, HIGH); // Calculate the distance in centimeters distance = (duration * 0.0343) / 2; // Print the distance on Serial Monitor Serial.print("Distance: "); Serial.print(distance); Serial.println(" cm"); delay(500); // Wait for half a second before next measurement}
Comments
Post a Comment