Mechatronics Chapter 2 - Part I - Sensors
Mechatronics Chapter 2 - Part I - Sensors
Contents
4/13/2023 10:09 AM 2
Introduction to Power Systems
❑Power systems: are used to transmit and control power.
4/13/2023 10:09 AM 3
Introduction to Power Systems
3. Load requiring mechanical power of either rotary or linear motion.
Classification of power systems
❑ In engineering applications, there exist different types of power systems:
mechanical, electrical, and fluid.
4/13/2023 10:09 AM 4
1. Mechanical Power Systems
• The mechanical power systems use mechanical elements to transmit and
control the mechanical power.
• The drive train of a small car is a typical example of a mechanical power
system. The gearbox is connected to the engine through the clutch the
input.
4/13/2023 10:09 AM 5
1. Mechanical Power Systems
4/13/2023 10:09 AM 6
2. Electrical Power Systems
❑ These systems offer advantages such as high flexibility and a very
long power transmission distance, but they produce mainly rotary
motion.
❑ Rectilinear motion, of high power, can be obtained by converting the
rotary motion into rectilinear motion by using a suitable gear.
❑ An electric motor converts electricity into mechanical energy,
providing a power source for machinery. But, an electric generator
converts mechanical energy into electricity.
4/13/2023 10:09 AM 7
3. Hydraulic Power Systems
❑ The hydraulic power systems transmit mechanical power by increasing the energy
of hydraulic liquids.
❑ Two types of hydraulic power systems are used: hydrodynamic and hydrostatic.
❑ Hydrodynamic (also called hydrokinetic) power systems transmit power by
increasing mainly the kinetic energy of liquid.
❑ Generally, these systems include a hydrodynamic pump, a turbine, and additional
control elements. The applications of hydrodynamic power systems are limited to
rotary motion
4/13/2023 10:09 AM 8
3. Hydraulic Power Systems
❑ In the hydrostatic power systems, the power is transmitted by increasing
mainly the pressure energy of liquid. These systems are widely used in
industry, mobile equipment, aircrafts, ship control, and others.
❑ The hydrostatic power systems, which are commonly called hydraulic
power systems.
4/13/2023 10:09 AM 9
Components of Hydraulic Systems
Elements of Hydraulic System:
4/13/2023 10:09 AM 10
Components of Hydraulic Systems
Hydraulic Pumps:
The combined pumping and driving motor unit is known as a hydraulic pump.
They can be of two types:
1. Centrifugal pumps: Centrifugal pump uses rotational kinetic energy to
deliver the fluid.
The rotational energy typically comes from an engine or electric motor.
4/13/2023 10:09 AM 11
Components of Hydraulic Systems
2. Reciprocating pumps: The reciprocating pump is a positive plunger
pump.
• It is also known as positive displacement pump or piston pump. It is
often used where relatively small quantity is to be handled and the
delivery pressure is quite large. The construction of these pumps is
similar to the four-stroke engine.
4/13/2023 10:09 AM 12
Components of Hydraulic Systems
• Hydraulic cylinder is a linear actuator which extend forward and retract
backward to transfer power by pressurized hydraulic fluid.
• Basic hydraulic system pneumatic system components Hydraulic
cylinder are consist of two main elements is barrel and piston attached
piston rod. There are also other elements like Rod end port, cap end port,
piston seal, tie rod, O-ring, Rod seal etc.
4/13/2023 10:09 AM 13
Components of Hydraulic Systems
Hydraulic
System
4/13/2023 10:09 AM 15
Advantages and disadvantages of Hydraulic Systems
Advantages of Hydraulic Systems:
• The hydraulic system uses incompressible fluid which results
in higher efficiency.
• It delivers consistent power output which is difficult in
pneumatic or mechanical drive systems.
• Hydraulic systems employ high-density incompressible fluid.
The possibility of leakage is less in a hydraulic system as
compared to that in a pneumatic system.
• The maintenance cost is less.
• These systems perform well in hot environmental conditions.
4/13/2023 10:09 AM 16
Advantages and disadvantages of Hydraulic Systems
Disadvantages of Hydraulic Systems:
• The material of storage tank, piping, cylinder, and piston can be corroded
with the hydraulic fluid. Therefore one must be careful while selecting
materials and hydraulic fluid.
• The small impurities in the hydraulic fluid can permanently damage the
complete system, therefore one should be careful and suitable filter must
be installed.
• The leakage of hydraulic fluid is also a critical issue and suitable
prevention method and seals must be adopted.
4/13/2023 10:09 AM 17
4. Pneumatic Power Systems
❑ Pneumatic systems are power systems using compressed air as a working
medium for the power transmission. Their principle of operation is
similar to that of electric power systems.
❑ The air compressor converts the mechanical energy of the prime mover
into mainly pressure energy of compressed air.
❑ This transformation facilitates the transmission and control of power. An
air preparation process is needed to prepare the compressed air for use.
4/13/2023 10:09 AM 18
4. Pneumatic Power Systems
❑ The air preparation includes filtration, drying, and the adding of
lubricating oil mist. The compressed air is stored in the compressed air
reservoirs and transmitted through rigid and/or flexible lines.
❑ The pneumatic power is controlled by means of a set of pressure, flow,
and directional control valves. Then, it is converted to the required
mechanical power by means of pneumatic cylinders and motors
(expanders).
4/13/2023 10:09 AM 19
Components of Pneumatic System: Air preparation
4/13/2023 10:09 AM 20
Components of pneumatic Systems
4/13/2023 10:09 AM 21
Pneumatic System
Video
4/13/2023 10:09 AM 22
Pneumatic cylinders
4/13/2023 10:09 AM 23
Pneumatic cylinders
4/13/2023 10:09 AM 24
Pneumatic Directional Control Valve
4/13/2023 10:09 AM 25
Advantages and disadvantages of Pneumatic Systems
Advantages of Pneumatic Systems:
• Its design is simple.
• Efficient and High effectiveness.
• Availability of source is infinite.
• High reliability & durability.
• Safety aspects.
• Economical.
• Air can be stored.
• Simple selection of pressure & speed.
• Eco friendly.
4/13/2023 10:09 AM 26
Advantages and disadvantages of Pneumatic Systems
Disadvantages of Pneumatic Systems:
• Relatively low accuracy.
• Low loading.
• The processing required before use.
• Uneven moving speed.
• Needs air-producing equipment installation.
• Easy to leak.
• Less operating pressure.
• Simple condenses.
4/13/2023 10:09 AM 27
Difference between Pneumatic and Hydraulic System
4/13/2023 10:09 AM 28
Hydraulic Cylinder Force Calculation Formula
F=PxA
4/13/2023 10:09 AM 29
Hydraulic Cylinder Force Calculation Formula
Example:
Hydraulic cylinder achieves a pressure of 10,000 psi. and, the
diameter of piston is 2.56”. Calculate the force applied on
cylinder.
4/13/2023 10:09 AM 30
Hydraulic Cylinder Force Calculation Formula
Example:
Hydraulic cylinder achieves a pressure of 10,000 psi. and, the
diameter of piston is 2.56”. Calculate the force applied on
cylinder.
Solution
F = PxA = ……….
4/13/2023 10:09 AM 31
Sensors
4/13/2023 10:09 AM 32
Introduction to Sensors
In virtually every engineering application there is the need to measure
some physical quantities, such as displacements, speeds, forces, pressures,
temperatures, stresses, flows, and so on.
Physical Measurement
phenomenon Output
4/13/2023 10:09 AM 34
Introduction to Sensors
❑On the other hand, a transducer is a device that converts one form of energy into another
form of energy.
❑Sensors are transducers when they sense one form of energy input and output in a
different form of energy.
4/13/2023 10:09 AM 35
Terminologies of Sensor selection criteria
- Difference between the maximum and minimum value of the
sensed parameter
-The smallest change the sensor can differentiate
- Difference between the measured value and the true value
- Ability to reproduce repeatedly with a given accuracy
- Ratio of change in output to a unit change of the input
- A nonzero value output for no input
- The time lag between the input and output
4/13/2023 10:09 AM 36
Sensor selection criteria
The frequency range between the lower and upper cutoff
frequencies.
The relationship between physical input signal and
electrical output signal.
- The range in which the sensor performs as specified.
- The range of input for which there is no output.
random fluctuation in the value of input that causes random fluctuation
in the output value.
4/13/2023 10:09 AM 37
Types of Sensor
1. Acceleration Sensors
• Measurement of acceleration is important for systems subject to shock and
vibration. Although acceleration can be derived from the time history data
obtainable from linear or rotary sensors, the accelerometers whose output
is directly proportional to the acceleration is preferred.
• Two common types include the seismic mass type and the piezoelectric
accelerometer.
4/13/2023 10:09 AM 38
Types of Sensor
• The seismic mass type accelerometer is based on the relative
motion between a mass and the supporting structure. The natural
frequency of the seismic mass limits its use to low to medium
frequency applications.
• The piezoelectric accelerometer is compact and more suitable for
high frequency applications.
4/13/2023 10:09 AM 39
Types of Sensor
2. Pressure Sensors
• Pressure is defined as the force per unit area that one
material exerts on another.
• Pressure is exerted on the side walls of the container as
well as the bottom.
• Pressure sensors usually consist of two parts: The first
converts pressure to a force or displacement, and the
second converts the force or displacement to an electrical
signal.
4/13/2023 10:09 AM 40
Types of Sensor
2. Pressure Sensors
• Pressure measurements are made only for gases and liquids.
The simplest pressure measurement yields a gauge pressure,
which is the difference between the measured pressure and
ambient pressure.
• At sea level, ambient pressure is equal to atmospheric
pressure and is assumed to be 101.3 kilo Pascals (kPa).
4/13/2023 10:09 AM 41
Types of Sensor
TYPES OF PRESSURE SENSOR
4/13/2023 10:09 AM 42
Types of Sensor
1. Absolute pressure sensor– A sensor that measures input pressure in
relation to a zero pressure. For the Absolute Pressure Sensor it is obvious
that the pressure range needs to be greater than 115 kPa in order to exceed
the Zero Pressure Level of anywhere.
Use the absolute pressure sensor to calculate altitude.
The equation for converting pressure to altitude is:
Pr essure
Altitude = −26,216 ln
Zero Pr essureLevel
4/13/2023 10:09 AM 43
Types of Sensor
• Differ with gauge pressure which measure
pressure in the open atmosphere, the absolute
pressure should be measured in a relative
vacuum.
• Before measurement, if we call the vacuum as
reference point, so all absolute pressure we
measured will be bigger than the reference
point.
• On the other hand, we need to find way to
guarantee the measurement accuracy, so all
factors that can affect the precision need to be
taken into consideration.
4/13/2023 10:09 AM 44
Types of Sensor
MPX4115 Absolute Pressure Sensor
Features
• Pressure Range From 0 to 115 kPa.
• 1.5% Maximum Error over 0 to 85 C.
• Ideally suited for Microprocessor or Microcontroller-Based
Systems.
• Temperature Compensated Over – 40 to +125 C.
• Maximum Power Rating of 50MW.
• High Sensitivity of 46 mv/kPa.
4/13/2023 10:09 AM 45
Types of Sensor
2. Differential pressure sensor – A sensor that is designed to accept
simultaneously two independent pressure sources. The output is proportional
to the difference between the two sources.
• We will use the differential pressure sensor to calculate indicated airspeed.
• From pressure difference we can calculate air speed: The equation for
converting the pressure difference to airspeed is:
2 Dynamic Pr essure
Velocity = 2.237
Density
4/13/2023 10:09 AM 46
Types of Sensor
MPX5050D Differential Pressure Sensor
Features
• Pressure Range From 0 to 50 kPa
• 2.5% Maximum Error over 0 to 85 C
• Ideally suited for Microprocessor or Microcontroller-Based
Systems
• Temperature Compensated Over – 40 to +125 C
• Maximum Power Rating of 50 MW
• High Sensitivity of 90 mv/kPa that would be able to measure
velocity from 0-640 MPH
4/13/2023 10:09 AM 47
Types of Sensor
Measuring principle of pressure sensor
Bourdon Tubes:
• A Bourdon tube is a short bent tube,
closed at one end. When the tube is
pressurized, it tends to straighten out. This
motion is proportional to the applied
pressure.
4/13/2023 10:09 AM 48
Types of Sensor
4/13/2023 10:09 AM 49
Types of Sensor
Force collector type - Pressure Transducer:
• These types of electronic pressure sensors generally use a
force collector (such a diaphragm, piston, bourdon tube, or
bellows) to measure strain (or deflection) due to applied force
over an area (pressure).
4/13/2023 10:09 AM 50
Types of Sensor
Force collector type - Pressure Transducer:
• To calculate pressure, the pressure transducer contains a force
collector such as a flexible diaphragm which deforms when
pressurized and a transduction element that transforms this
deformation into an electrical signal.
• The shape and methods of transductions are optimized to the
requirements of the process that is being measured.
4/13/2023 10:09 AM 51
Types of Sensor
3. Temperature sensor
• Temperature sensors give an output proportional to temperature.
• Most temperature sensors have a positive temperature
coefficient (desirable), which means that the sensor output goes
up as the temperature goes up.
• But some sensors have a negative temperature coefficient, which
means that the output goes down as the temperature goes up.
4/13/2023 10:09 AM 52
Types of Sensor
Bimetallic Temperature Sensors
• The bimetallic temperature sensor consists of a bimetallic strip
wound into a spiral.
• The bimetallic strip is a laminate of two metals with different
coefficients of thermal expansion.
• As the temperature rises, the metal on the inside expands more
than the metal on the outside and the spiral tends to straighten out.
• These sensors are typically used for on-off control.
4/13/2023 10:09 AM 53
Types of Sensor
Bimetallic Temperature Sensors: Bimetallic Thermometer
4/13/2023 10:09 AM 54
Types of Sensor
Bimetallic Temperature Sensors: Bimetallic Thermometer
• Bimetallic thermometer consists of a
bimetallic strip , which
• Is constructed by bonding together
with two thin strips of two different
metals, such that, they cannot move
relative to each other.
• As the temperature applied to the strip
increases, there will be deflection of
free end of strip.
• Length of both metals will change
according to their individual coefficient
of thermal expansion.
4/13/2023 10:09 AM 55
Types of Sensor
Bimetallic Temperature Sensors: Bimetallic Thermometer
Helix Type Bimetallic Thermometer
• Operating range: 30𝑜 𝐶 to 300𝑜 𝐶
• Bimetallic strip is wound in the form of helix.
• One end of helix is fastened to the casing of bulb
and another end is connected to pointer.
• When the bimetallic helix is heated, difference in
thermal expansion of metal causes it to unwound.
• Due to this, pointer moves or sweeps over a circular
scale to indicate the measured value of temperature.
4/13/2023 10:09 AM 56
Types of Sensor
Bimetallic Temperature Sensors: Bimetallic Thermometer
Helix Type Bimetallic Thermometer
4/13/2023 10:09 AM 57
Types of Sensor
Bimetallic Temperature Sensors: Bimetallic Thermometer
SPIRAL Type Bimetallic Thermometer
• Operating range: 30𝑜 𝐶 to 550𝑜 𝐶
• The spiral bimetallic element is attached to the
pointer mounted in housing with a scale.
• When the spiral bimetal is heated, it bends in the
direction of metal having low thermal coefficient of
expansion, rotates in clockwise direction.
• Thus, the pointer attached to it also moves on
calibrated scale, indicating the temperature reading.
4/13/2023 10:09 AM 58
Types of Sensor
Bimetallic Temperature Sensors: Bimetallic Thermometer
SPIRAL Type Bimetallic Thermometer
4/13/2023 10:09 AM 59
Types of Sensor
4/13/2023 10:09 AM 60
Types of Sensor
4/13/2023 10:09 AM 61
Types of Sensor
4/13/2023 10:09 AM 62
Types of Sensor
Thermocouples
• A thermocouple is a device which is used to measure
temperature.
• It is essentially one of the temperature measurement sensors.
• It is used in all the industries where the control of
temperature or heat flow is required for the processes.
4/13/2023 10:09 AM 63
Types of Sensor
Thermocouples - Application areas:
• Industries such as; chemical, • Also, used in regular everyday
process, oil and gas, metal appliances like stove, toasters,
extraction, petroleum, furnace etc.
petrochemical, pharmaceuticals,
cement, glass, ceramics, power
generation, paper and pulp and etc.
4/13/2023 10:09 AM 64
Types of Sensor
Thermocouples
• Thermocouples are the most versatile, inexpensive, and have a
wide range (up to 1200 ˚C typical).
• A thermocouple simply consists of two dissimilar metal wires
joined at the ends to create the sensing junction.
• When used in conjunction with a reference junction, the
temperature difference between the reference junction and the
actual temperature shows up as a voltage potential.
4/13/2023 10:09 AM 65
Types of Sensor
Principle of Thermocouple
4/13/2023 10:09 AM 66
Types of Sensor
Working of Thermocouple
• The dissimilar metal wires in the thermocouple are
joined to form a junction. Joining them completes a
thermoelectric circuit. When the temperature at the
junction will increase then a current is produced.
• The junction at which temperature increases is called
the hot junction and there is one more junction at the
other end called cold junction. The cold junction will
also have a certain temperature.
4/13/2023 10:09 AM 67
Types of Sensor
Working of Thermocouple
• Essentially there is a temperature difference in the circuit. The heat
flows from the hot side to the cold side, at an atomic scale the
charge carriers also diffuse from hot end to cold end.
• It means the temperature difference has created a voltage in the
circuit.
• The relationship between voltage and temperature difference can
be quantified and the thermocouple calibrated for use.
4/13/2023 10:09 AM 68
Types of Sensor
Types of Thermocouple
4/13/2023 10:09 AM 69
Types of Sensor
Advantages of thermocouple Disadvantages of thermocouple
4/13/2023 10:09 AM 70
Types of Sensor
Thermistors
• The word “Thermistor” is a combination of the words “Thermal” and
“resistor“.
• A thermistor is a type of resistor whose resistance changes with the
change in temperature.
• It is a passive component that does not require an extra power source to
operate. They are inexpensive and accurate in measuring temperature.
But they do not operate well in extreme conditions such as very high or
very low temperatures.
4/13/2023 10:09 AM 71
Types of Sensor
Thermistors
• Temperature plays a vital role in the operation of any electronic circuit.
• Each electronic component has its thermal limit and safe operating
temperature range that needs to be maintained for smooth and precise
operation.
• To monitor the temperature, various sensors are used where a
thermistor is an efficient and cost-effective solution.
4/13/2023 10:09 AM 72
Types of Sensor
Thermistors: Types
4/13/2023 10:09 AM 73
Types of Sensor
Thermistors: Working
• The thermistor is used for measuring temperature. The working
principle behind the temperature measurement is its resistance.
• A thermistor is made of semiconductor material whose resistance
greatly depends on the surrounding temperature.
• They significantly vary with the temperature.
• Depending on the material used, the resistance may either increase
or decrease with an increase in temperature called the PTC and
NTC thermistor.
• This change in resistance can be calibrated and measured to
calculate the exact temperature of the environment in a circuit.
4/13/2023 10:09 AM 74
Types of Sensor
Thermistors: Types of Thermistor
There are two types of thermistors
• PTC (Positive Temperature Coefficient) Thermistor
• NTC (Negative Temperature Coefficient) Thermistor
To understand the basic difference between PTC and NTC
thermistors we can use this linear equation for the relation between
the change in temperature and resistance.
dR = k dT
4/13/2023 10:09 AM 75
Types of Sensor
Thermistors
• dR = Change in resistance
• k = Temperature Coefficient
• dT = Change in Temperature
4/13/2023 10:09 AM 76
Types of Sensor
Thermistors
• They are good for very high sensitivity measurements in a limited
range of up to 100 ̊C.
• The relationship between the temperature and the resistance is
nonlinear.
Resistance
(Ohms)
Temperature (oC)
4/13/2023 10:09 AM 77
Types of Sensor
Advantages of thermistors Disadvantages of thermistors
4/13/2023 10:09 AM 78
Types of Sensor
Infrared type sensors: An infrared (IR) sensor is an electronic device used
to measure and detect infrared radiation in its surrounding environment.
Infrared radiation - also known as infrared light - refers to electromagnetic
radiation that has wavelengths longer than those of visible light.
VCC - Voltage Common Collector
4/13/2023 10:09 AM 79
Types of Sensor
Infrared type sensors: Infrared type sensors use the radiation heat to
sense the temperature from a distance.
• These noncontact sensors can also be used to sense a field of vision to
generate a thermal map of a surface. VCC - Voltage Common Collector
4/13/2023 10:09 AM 80
Types of Sensor
Types of IR sensors
1. Active IR sensors and 2. passive IR sensors.
Active infrared sensors
• Active infrared sensors emit and detect
infrared radiation. They have two parts: there’s
a light emitting diode (LED) and a receiver.
• When an object comes close to the sensor, the
infrared light from the LED bounces off of the
object and is detected by the receiver.
• Active IR sensors thus behave as proximity
sensors, and are commonly used in obstacle
detection systems such as robots.
4/13/2023 10:09 AM 81
Types of Sensor
Types of IR sensors
1. Active IR sensors and 2. passive IR sensors.
Passive infrared sensors
• Only detect infrared radiation; they do not
emit it from an LED. PIR sensors are mainly
used in PIR-based motion detectors.
4/13/2023 10:09 AM 82
Electrical circuit and Components
Advantages of Infrared sensor Disadvantages Infrared sensor
• No contact with the product • High initial cost
required • More complex - support electronics
• Response times as fast or required
faster than thermocouples • Measuring accuracy affected by dust,
• No corrosion or oxidation to smoke, background
affect sensor accuracy • Radiation, etc.
• Good stability over time
• High repeatability
4/13/2023 10:09 AM 83
Types of Sensor
4. LOAD SENSORS
• Load sensors measure mechanical force.
• The forces can be large or small for example, weighing heavy
objects or detecting low-force tactile pressures.
• Once the amount of tension (stretching) or compression
(squeezing) displacement has been measured, the force that
must have caused it can be calculated using the mechanical
parameters of the system.
4/13/2023 10:09 AM 84
Types of Sensor
4. LOAD SENSORS
FORCE SENSORS: Force is proportional to displacement.
4/13/2023 10:09 AM 85
Types of Sensor
4. LOAD SENSORS
Mechanical types
• Measuring systems involving some form of
spring such as in a simple spring balance scale.
• The deflection of a spring is directly
proportional to the applied force so if the
movement is shown on a scale, the scale
represents force.
4/13/2023 10:09 AM 86
Types of Sensor
4/13/2023 10:09 AM 87
Types of Sensor
What are the Different Types of Load Cells?
There are four common types of these sensors; they are:
– Pneumatic
– Hydraulic
– Strain gauge
– Capacitance
• Capacitance is the
ability of a component
or circuit to collect and
store energy in the form
of an electrical charge.
4/13/2023 10:09 AM 88
Types of Sensor
Their Working Principles
4/13/2023 10:09 AM 89
Types of Sensor
4. LOAD SENSORS
Hydraulic types
• Referred to as hydraulic load cells.
• The cell is a capsule filled with liquid.
• When the capsule is squeezed, the liquid
becomes pressurized.
4/13/2023 10:09 AM 90
Types of Sensor
4. LOAD SENSORS
Hydraulic types
• The pressure represents the force
and may be indicated with a
calibrated pressure gauge.
• The pressure produced is given by
P = F/A where F is the force and A
the piston area.
4/13/2023 10:09 AM 91
Types of Sensor
Hydraulic Load Cell
4/13/2023 10:09 AM 92
Types of Sensor
4. LOAD SENSORS
4/13/2023 10:09 AM 93
Types of Sensor
Pneumatic Load Cell: Working Principles
4/13/2023 10:09 AM 94
Types of Sensor
Strain gauge Load Cell
A typical load cell consists of a metal
cylinder with strain gauges fixed to it.
4/13/2023 10:09 AM 96
Types of Sensor
4. LOAD SENSORS
4/13/2023 10:09 AM 97
Types of Sensor
Capacitance Load Cell
4/13/2023 10:09 AM 98
Types of Sensor
4/13/2023 10:09 AM 99
Types of Sensor
5. FLOW SENSORS
• Flow sensors measure the quantity of fluid material passing by a point in a certain time.
Usually, the material is a gas or a liquid and is flowing in a pipe or open channel.
• The flowing of solid material, such as gravel traveling on a conveyer belt, will not be
considered here.
• The best type of flow sensor is pressure type flow sensor. This type of flow sensor is
based on the fact that pressure in a moving fluid is proportional to the flow.
• The pressure is detected with a pressure sensor; based on the physical dimensions of the
system, the flow can be calculated.
Solution
To get started you have your ARDUINO UNO board in front of you, a
computer and a standard USB cable (A plug to B plug): the kind you would
connect to a USB printer.
The open-source Arduino environment makes it easy to write code and
upload it to the I/O board. It runs on Windows, Mac OS X and Linux. The
environment is written in Java and based on Processing, and other open
source software
4/13/2023 10:09 AM 114
Measure physical property using Microprocessor
Connecting the board
The Arduino Uno automatically draws power from either the USB connection of a
computer or an external power supply. Connect the Arduino board to your computer
using the USB cable. The green power LED (labelled PWR) should turn on.
Click on the Start Menu, and open the Control Panel. While in the Control Panel, navigate
to System and Security.
Next, open the Device Manager which you will find under System. Look under Ports (COM
& LPT). You should see an open port named "Arduino UNO (COMxx)“.
In some cases you won’t find “Arduino Uno”, instead you will find “Unknown device” at
the top.
Right click on the "Arduino UNO (COMxx)" port and choose the "Update Driver Software“
option. Next, choose the "Browse my computer for Driver software" option. Finally,
navigate to and select the Arduino Uno's driver file, named "ArduinoUNO.inf", located in
the "Drivers" folder of the Arduino Software download (not the "FTDI USB Drivers
"subdirectory).
Windows will finish up the driver installation from here. Cases you won’t find “Arduino
Uno”, instead you will find “Unknown device” at the top.
Windows will finish up the driver installation from here.
1. Resistor • Package Dimensions: 4.72 x 3.15 x 1.97 10 Pieces 1. Screw terminal block • Package Dimensions: 4.8 x 3.23 x 1.26 2 Pieces
inches; 4.59 Ounces shield for Arduino inches; 2.4 Ounces
(Optional) • Item model number: DIY-SCREW-
• Item model number: DIY-RESISTOR-
KIT-30 SHIELD-UNO
• A resistor is an electrical
component that limits or
regulates the flow of electrical
current in an electronic circuit.
6. Jumper Wires
• A jumper wire is an electric wire
that connects remote electric
circuits used for printed circuit
boards.
• By attaching a jumper wire on the
circuit, it can be short-circuited and
short-cut (jump) to the electric
circuit.
How it Works
• The force sensor has two pins. Since it is a kind of
resistor, we do not need to distinguish these pins. They
are symmetric.
• The forces sensor is basically a resistor that changes its
resistance depending on how much it has been pressed.
• The harder you press on the sensor, the lower the
resistance between the two terminals will be.
Serial.begin(9600);
void loop() {
delay(1000);
}
134
Measure physical property using Microprocessor
Temperature sensor(LM35) with Arduino Uno
void setup()
Code {
pinMode(A0, INPUT);
Serial.begin(9600);
}
void loop()
{
unsigned long startTime;
startTime = millis();
int Temperature = analogRead(A0);
float new_Temperature = (5*Temperature*100)/1023;
Serial.print(startTime/1000);
Serial.print(" ");
Serial.print("TEMPERATURE: ");
Serial.print(Temperature);
Serial.print("˚c");
Serial.println();
delay(1000);
}
4/13/2023 10:09 AM 135
Measure physical property using Microprocessor
Pressure sensor (MPX4115A ) with Arduino Uno
void setup()
Code {
pinMode(A0, INPUT);
Serial.begin(9600);
}
void loop()
{
unsigned long startTime;
startTime = millis();
int pressure = analogRead(A1);
float new_pressure = ((pressure/1024)+0.095)/0.0009;
Serial.print(startTime/1000);
Serial.print(" ");
Serial.print("PRESSURE: ");
Serial.print(pressure);
Serial.print("millibar");
Serial.println();
delay(1000);
}
4/13/2023 10:09 AM 136
CHAPTER TWO - PART II- ACTUATORS
Continued…