Академический Документы
Профессиональный Документы
Культура Документы
Signal
The signals are time-varying “quantities” which convey some sort of information. Signals
are passed between devices in order to send and receive information through their outputs and
inputs terminals. Signal could be in two forms; analog and digital.
We live in an analog world. For example, there are an infinite amount of colors to paint
an object, there are an infinite number of tones that we can hear, and there are an infinite
number of smells that we can smell. The color, sound and smell signals can come in
infinite possibilities of values. Meanwhile, digital signals deal in the realm of the discrete or finite,
meaning there is a limited set of values they can be. For example, a Boolean values can either be
in two form which is 0 or 1.
Working with electronics system means dealing with both analog and digital signals,
inputs and outputs. Our system normally have to interact with the real, analog world in some
way, but most of our computers or processors are purely digital components. In electronics
system, analog signal is represented by a range of voltage such as 0V to 5V, while the digital signal
is represented by two level of voltage such as 0V and 5V. Figure 1 below, illustrates the voltage
measurement of analog and digital value in electronics system.
1
ADVANCED ENGINEERING TOPICS
Analog Signals
Analog signal varies over time. A time-versus-voltage graph of an analog signal should
be smooth and continuous. While these signals may be limited to a range of maximum and
minimum values, there are still an infinite number of possible values within that range. Graph in
Figure 2 shows an example of an analog signal ranging from -120V to 120V.
Digital Signals
Digital signals must have a finite set of possible values. Most commonly digital signals will be one
of two values. Timing graphs of these signals look like square waves. Graph in Figure 3 shows an
example of digital signal with two possible values of 0V and 5V.
2
ADVANCED ENGINEERING TOPICS
Hence, we can conclude that the major difference between analog and digital waves is that
analog signal are smooth and continuous, while digital signal are stepping, square, and discrete.
Arduino UNO has built in AD converters to received analog inputs through the pin A0 to
A5. The AD converter convert analog input with a range 0V to 5V to a 10-bit digital signals that
represent a digital value of 0 to 1023.
3
ADVANCED ENGINEERING TOPICS
Components Used:
1. 1 Arduino UNO
2. 1 Push Button
3. 1 2.2kΩ Resistor
4. 1 seven segment LED
5. 1 Breadboard
6. Some Jumper Wires
Instructions:
1) Construct the circuit as shown Figure 5 below:
2) Program the Arduino UNO to display the state of the button press. Display ‘1’ in the seven
segment display when the button is pressed and ‘0’ when the button is released. Print the
button state into the serial monitor. Refer the program in the following page if you need
help.
4
ADVANCED ENGINEERING TOPICS
5
ADVANCED ENGINEERING TOPICS
3) Test and verify the functionality of the system by pressing the button and observing the
seven segment display. Use the Arduino serial plotter to plot the graph of the button
press.
Components Used:
1. 1 Arduino UNO
2. 1 Potentiometer
3. 1 seven segment LED
4. 1 Breadboard
5. Some Jumper Wires
6
ADVANCED ENGINEERING TOPICS
Instructions:
1) Construct the circuit as shown Figure 6 below:
2) Program the Arduino UNO to display the analog input signal level from the potentiometer.
Divide the analog input value by 102.4 to scale down the 0 to 1024 value to 10 levels.
Print the analog input value into the serial monitor. Refer the program in the following
page if you need help.
7
ADVANCED ENGINEERING TOPICS
8
ADVANCED ENGINEERING TOPICS
3) Test and verify the functionality of the system by adjusting the potentiometer and
observing the seven segment display. Use the Arduino serial plotter to plot the graph of
the analog input.
Exercises
1) Replace the push button and the potentiometer in Practice 2.1 and 2.2 by a suitable
sensors and test it.
2) Change the behavior of the system in Practice 2.1 to increase the number displayed in the
seven segment by one everytime the button is pressed.
3) Change the behavior of the system in Practice 2.2 to display a changing alphabets (A to J)
instead of numbers.