Professional Documents
Culture Documents
Part 1: Terminologies:
Discuss the given terminologies below.
a. Embedded System
A software- and hardware-based system called an embedded system is created for a particular
purpose. As part of a bigger system, embedded systems might also work. Both programmable and
fixed functionality options are available for the systems. An embedded system may be used in
industrial machinery, consumer electronics, agricultural and processing sector equipment,
vehicles, medical devices, cameras, digital watches, home appliances, airplanes, vending
machines, toys, and mobile devices.
https://www.techtarget.com/iotagenda/definition/embedded-system
b. Microprocessors
The most significant component of a computer system is a microprocessor, which is in charge of
processing the particular set of commands and procedures. A microprocessor is made to carry out
logical and computational tasks using common operations like addition and subtraction, inter-
process and device communication, input/output management, etc. Thousands of transistors are
housed on an integrated circuit in a microprocessor, though the actual number depends on how
powerful the CPU is.
https://www.techopedia.com/definition/2874/microprocessor
c. Microcontrollers
An integrated circuit (IC) device known as a microcontroller is used to manage other components
of an electronic system, often through a microprocessor unit (MPU), memory, and a few
peripherals. These gadgets are designed with embedded applications in mind, which demand both
computing power and quick, responsive interaction with digital, analog, or electromechanical
parts.
https://www.allaboutcircuits.com/technical-articles/what-is-a-microcontroller-introduction-
component-characteristics-component/
e. Sensors
A sensor is a device that analyzes the physical input it receives from its environment and
translates it into information that can be understood by either a human or a machine. A glass
thermometer is an example of a simpler sensor that displays data visually. The majority of
sensors are electronic (the data is turned into electronic data). Sensors are used by humans to
measure temperature, determine distance, identify smoke, control pressure, and a variety of other
things.
https://www.fierceelectronics.com/sensors/what-a-sensor
f. Actuators
By converting the energy and signals into the system, an actuator creates motion. Either a
rotational motion or a linear motion is created by it. linear motion is produced by electric linear
actuators. In other words, linear actuators have a given distance they can move in either direction
before stopping and can move forward or backward on a fixed linear plane. On the other side,
rotary actuators generate rotary motion, which means that the actuator revolves on a circular
plane.
https://www.reac-group.com/en_en/facts/actuators/what-is-an-actuator/
An input operation is any action that transfers data from the user to the computer’s main memory
via one of the computer’s input devices.
https://eng.libretexts.org/Bookshelves/Computer_Science/Programming_Languages/
Java_Java_Java_-_Object-Oriented_Programming_(Morelli_and_Walde)/04%3A_Input_Output-
_Designing_the_User_Interface
j. A/D Converter
A device that converts continuously changing analog signals from instruments and sensors that
track conditions like sound, movement, and temperature into binary information for the computer
is known as an analog-to-digital converter (ADC). The A/D converter could be a single chip or a
circuit embedded within a chip. see sampling and codec.
https://www.pcmag.com/encyclopedia/term/ad-converter
k. D/A Converter
An apparatus that transforms digital code into analog signals, primarily for audio. The analog
waveforms that are transmitted to speakers and audio amplifiers by D/A converters (DACs) are
created from digital audio samples. Every device that sends analog speech or music to an
amplifier, speaker, or headphones, including computers, smartphones, tablets, and A/V receivers,
include a D/A converter (DAC), which may be a single chip or a circuit within a chip. See ladder
DAC, DSP, codec, PCM, and more.
https://www.pcmag.com/encyclopedia/term/da-converter
l. Fuzzy logic
The approach of logic operations known as fuzzy logic is based on many-valued logic rather than
binary logic (two-valued logic). In two-valued logic, 0 is frequently regarded as false and 1 as
true. Fuzzy logic, on the other hand, works with truth values that range from 0 to 1, and these
values are referred to as intensity (degrees of truth).
Many domains, including as control systems, neural networks, and artificial intelligence, can
benefit from the use of fuzzy logic (AI).
https://www.techopedia.com/definition/1809/fuzzy-logic
n. Real-time system
Any information processing system with hardware and software components that carry out real-
time application functions and can react to events within defined time restrictions is referred to as
a "real-time system". Air traffic control, process control, and autonomous driving systems are a
few examples of real-time systems.
https://www.intel.com/content/www/us/en/robotics/real-time-systems.html
o. Watchdog timer
Hardware called a watchdog timer (WDT) can be used to automatically detect software
irregularities and restart the CPU if any take place. A watchdog timer typically relies on a counter
that counts down from a starting value to zero. The counter's initial value is chosen by the
embedded software, which also restarts it on a regular basis. The software is assumed to be
malfunctioning and the processor's reset signal is asserted if the counter ever approaches zero
before the software resets it. It will restart the CPU (together with any embedded software it is
running) as if a person had manually cycled the power.
https://www.embedded.com/introduction-to-watchdog-timers/
EXERCISES:
1. Modify your written code/program of Running lights by removing the option.
int del = 100; //defining delay value (0.1 second)
void setup() {
// put your setup code here, to run once:
pinMode(6, OUTPUT); //defining pins (6-13) as Outputs
pinMode(7, OUTPUT);
pinMode(8, OUTPUT);
pinMode(9, OUTPUT);
pinMode(10, OUTPUT);
pinMode(11, OUTPUT);
pinMode(12, OUTPUT);
pinMode(13, OUTPUT);
EMBL01E 7
}
void loop() {
// put your main code here, to run repeatedly:
for (int i = 6; i <= 13; i++) { // For loop will count from 2 to 13 to turn ON and OFF every single
pin
digitalWrite(i, HIGH); // Turning ON 1st output (LED)
delay(del); // LED is ON for 20ms before turning OFF
digitalWrite(i, LOW); // Turning OFF 1st output (LED)
delay(del); // Waiting 20ms before running the 2nd cycle of FOR loop
}
for (int i = 13; i >= 6; i--) { // For loop will count from 13 to 2 to turn ON and OFF every single
pin
digitalWrite(i, HIGH); // Turning ON 1st output (LED)
delay(del); // LED is ON for 20ms before turning OFF
digitalWrite(i, LOW); // Turning OFF 1st output (LED)
delay(del); // Waiting 20ms before running the 2nd cycle of FOR loop
}
}
3. What function enables you to program efficiently the lighting up of several LED’s?
‘digitalWrite()’ function that can enable efficient programming of LED lighting on Arduino
The ‘digitalWrite()’ function allows you to change a digital pin's state from LOW to HIGH, It can
be used to activate or deactivate an LED. To control many LEDs simultaneously, you can specify
multiple pins in a single function call, separated by commas.
4. How would you change the amount of time each LED is ON?
By modifying the delay time in your Arduino software, you may alter the duration of each LED's
ON time. With the delay() function, the program can be stopped for a predetermined period of time
milliseconds.