Electronics & Robotics
Electronics & Robotics
Electronics & Robotics
1
Page
Electronics & Robotics
⋯
Electronic circuits ⇨
o An electronic circuit consists of components (as resistors, transistors,
capacitors, and diodes) which affects the flow of charge in many ways.
A datasheet ⇨
2
Page
Electronics & Robotics
⋯
Breadboard ⇨
o This is a platform used to build and test electronic circuits, without
soldering electronic components on it.
Electronics Elements ⇨
o Resistor
o Capacitor
o Inductor
3
Page
Electronics & Robotics
⋯
o Diode
o Transistor
Ohm's law ⇨
o Ohm's law is an empirical law relating the voltage (V) across an element
to the current (I) through it:(V is directly proportional to I).
o One Ohm ⇨ is the resistance between two points where 1 volt (1V) of
applied potential energy will push 1 ampere (1A) of current.
ሺ𝑉 = 𝐼 𝑅ሻ
Resistors ⇨
4
Page
Electronics & Robotics
⋯
o Resistors are electrical components (contain no source of power) that are
commonly used of all the electronic components to reduce the voltage or
current signal passing within a closed circuit.
Capacitors ⇨
5
Page
Electronics & Robotics
⋯
Polarized capacitors (large values, > 1 μF)
o This capacitor has positive and negative polar, and you should connect
this kind of capacitors so that the positive polar has always higher
voltage than the negative one.
o In this capacitor; the (1st) number is the (1st) digit, the (2nd) number is the
(2nd) digit, and the (3rd) number is the number of zeros to give the
capacitance in (pf).
o Any letters indicate tolerance and voltage rating (The prefix is the voltage
rating & the suffix is the tolerance).
6
Page
Electronics & Robotics
⋯
The Diode ⇨
o p-type material ⇨ is doped with acceptor impurities. Thus, holes are the
dominant majority carriers.
7
Page
Electronics & Robotics
⋯
o n-type material ⇨ is doped with donor impurities. Thus, electrons are the
dominant majority carriers.
o Switching diodes ⇨
These also called small signal diodes, are a single p-n diode in a
discrete package.
8
Page
Electronics & Robotics
⋯
o Zener diodes ⇨
o Diode applications ⇨
Power conversion.
Radio demodulation.
Over-voltage protection.
Logic gates.
Temperature measuring.
9
Page
Electronics & Robotics
⋯
The Seven-Segment LED.
10
Page
Electronics & Robotics
⋯
There are two Types of BJT; The (npn) type consists of two n-Regions
separated by a p-Region. The (pnp) type consists of two p-Regions
separated by a n-Region.
o Regions of operation ⇨
Cut-off ⇨ Base lower than emitter, but collector is higher than base.
It means conventional current does not go through transistor.
11
Page
Electronics & Robotics
⋯
o Transistor parameters: alpha (α) and beta (β).
o BJT as an Amplifier ⇨
In a class A amplifier, the transistor conducts for the full cycle of the
input signal (360°) – used in low-power applications.
12
Page
Electronics & Robotics
⋯
The transistor is operated in the active region, between saturation
and cutoff.
13
Page
Electronics & Robotics
⋯
It is used in timer and time delay circuits.
o Jumper wires ⇨ are simply wires that have connector pins at each end,
allowing them to be used to connect two points to each other.
What is Arduino? ⇨
14
Page
Electronics & Robotics
⋯
o Arduino boards are able to (read inputs) - light on a sensor or a finger on
a button and turn it into (an output) - activating a motor or turning on
an LED.
15
Page
Electronics & Robotics
⋯
Arduino Types ⇨
Digital I/O 14 54 54 20
Image
Arduino UNO ⇨
16
Page
Electronics & Robotics
⋯
o 14 digital input/output pins.
o 6 analog inputs.
o Notice that ⇨ (Reset switch) when this switch is clicked, it sends a logical
pulse to (reset pin) of the microcontroller, and now run the program
again from start.
17
Page
Electronics & Robotics
⋯
o (Digital pins) ⇨ when used as output, these pins act as power supply
source for the components connected to them. when used as input, these
pins read the signals from the component connected to them.
Arduino Software ⇨
o IDEs are built to work with specific application platforms and remove
barriers involved in the lifecycle of software development.
o IDEs are used in development teams to build new software, apps, web
pages, and services, and they help by providing one tool with all the
features and removing the need for integrations.
18
Page
Electronics & Robotics
⋯
Arduino Programming Language ⇨
Basic syntax ⇨
o {} Curly braces always come in pairs; they are used to define the start
and end of functions, loops, and conditional statements.
19
Page
Electronics & Robotics
⋯
o (/**/) Multi-line comment.
Arithmetic operators ⇨
o (=) Assignment operator stores the value to the right of the equal sign in
the variable to the left of the equal sign.
Control structures ⇨
o (If) Tests whether a certain condition has been reached and used in
conjunction with a comparison operator.
20
Page
Electronics & Robotics
⋯
o (switch case) Allows you to specify different code that should be executed
in various conditions.
Comparison Operators ⇨
Boolean Operators ⇨
Constants ⇨
21
Page
Electronics & Robotics
⋯
o (High & Low) ⇨ When reading or writing to a digital pin, there are only
two possible a pin can take.
Data types ⇨
22
Page
Electronics & Robotics
⋯
o (Local) ⇨ is a variable that only visible to the function in which it is
declared and define it inside a function.
o (Static) ⇨ keyword that is used to create variables that are visible to only one
function.
Digital I/O ⇨
23
Page
Electronics & Robotics
⋯
o analogRead (pin) ⇨ Reads the value from the specified analog pin and returns
a value between 0 and 1023.
Math ⇨
24
Page
Electronics & Robotics
⋯
o map (value, fromLow, fromHigh, toLow, toHigh) ⇨ Re-maps a number
from one range to another. That is, a value of fromLow would get
mapped to toLow, a value of fromHigh to toHigh.
Serial communication ⇨
25
Page
Electronics & Robotics
⋯
Defining your own ⇨
o This could be used to make your code more organized and efficient.
o This is a function that searches for a given string within another string.
If the search string is found its position is returned.
Arduino Examples ⇨
o Blinking LED.
o LED with Pushbutton Switch.
o LED with ON –OFF Pushbuttons.
o LED with Potentiometer for Lighting Speed Control.
o Photoresistor as Light Sensor.
o Light Effects using PWM.
o Temperature Sensor.
26
Page
Electronics & Robotics
⋯
o Light Sensor.
o Computer Interfacing with LED.
o DC Motor.
o Servo Motor.
o LCD Screen.
o Bluetooth.
o Ultrasonic Sensor.
27
Page
Electronics & Robotics
⋯
28
Page
Electronics & Robotics
⋯
o volt.
o watt.
o amp.
o Ω.
volt.
watt.
amp.
Ω.
29
Page
Electronics & Robotics
⋯
o The electrical resistance measurement unit is …………….
volt.
watt.
amp.
Ω.
transistor.
resistance.
diode.
capacitor.
o The element that does not allow electricity to pass through but stores
electrical energy in the form of a charge is ………………
30
Page
Electronics & Robotics
⋯
crystalline germanium and silicon.
magnetic file.
the Diode.
capacitor.
Diod
Transistor.
variable resistor.
All of these.
amplify current.
acts as switch.
smooth the current in the circuit.
smooth the voltage in the circuit.
31
Page
Electronics & Robotics
⋯
o The functions of resistor is except…………
Resistor.
LED.
Photocell.
Source.
32
Page
Electronics & Robotics
⋯
o The image is a symbol for a:
Diode.
LED.
Source.
Photocell.
circuit board.
Breadboard.
microcontroller board.
Integrated Circuit + IC base.
33
Page
Electronics & Robotics
⋯
o What are they?
Internal Circuit.
Integrated Circuit.
Industrial Control.
Internal Combustion.
34
Page
Electronics & Robotics
⋯
o One of the example of an active electronic component
Transformer.
inductor.
capacitor.
transistor.
Zener diode.
35
Page
Electronics & Robotics
⋯
Unipolar transistor.
Bipolar transistor.
Rectifier diode.
Zener diode.
Varicap Diode.
Rectifier diode.
Tunnel Diode.
o The order of coloured rings in a carbon resistor is red, yellow, blue and
silver. The resistance of the carbon resistor is :
24×106 Ω±5%
24×106 Ω±10%
34×104 Ω±10%
26×104 Ω±5%
36
Page
Electronics & Robotics
⋯
o One of the example of a passive electronic component
Transistor.
Resistor.
tunnel diode.
vacuum tube.
472 pF
47 nF
37
Page
Electronics & Robotics
⋯
4.7 nF
472 nF
Series
Parallel
1
4
3
2
38
Page
Electronics & Robotics
⋯
Drain, Gate, Source.
Emitter, Base, Collector.
Anode, Cathode, Triode.
Diode.
Capacitor.
Resistor.
Transistor.
4
1
2
6
39
Page
Electronics & Robotics
⋯
o Zener diode is used for?
Filter circuit.
Rectifier circuit.
Regulator circuit.
Impedance circuit.
NPN
PNP
GDS
CBE
Collector, Emitter.
Anode, Cathode.
40
Page
Electronics & Robotics
⋯
Drain, Gate.
Cathode, Base.
Oscillator.
Amplifier.
Rectifier.
Modulator.
Oscillator.
Regulator.
Rectifier.
Filter.
41
Page
Electronics & Robotics
⋯
o When a junction diode is reverse biased, what causes current across the
junction?
Diffusion of charges.
Nature of material.
Drift of charges.
Both drift and diffusion of charges.
Chip.
Insulator.
Semiconductor.
Metal.
Rectifiers.
42
Page
Electronics & Robotics
⋯
LED lamps.
Logic gates.
All of the mentioned.
Base.
Collector.
Emitter.
depletion region.
43
Page
Electronics & Robotics
⋯
o A power transistor is a
24
30
40
60
44
Page
Electronics & Robotics
⋯
o A circuit consisting of three resistors with a value of: 30 Ω, 100Ω, and 150
Ω connected in parallel, so its equivalent resistance is ……….. .
2 Ω.
200 Ω.
2.2 Ω.
20 Ω.
4.100 Ω.
40.10 Ω.
4100 Ω.
0.410 Ω.
45
Page
Electronics & Robotics
⋯
o When three Capacitors with the values 30 μf, 50 μf, and 75 μf are
connected in series, the equivalent Capacitance equals ……….. .
155 μf.
150 μf Ω.
15 μf.
o.067 μf
o When three Capacitors with the values 30 μf, 50 μf, and 75 μf are
connected in parallel, the equivalent Capacitance equals ……….. .
155 μf.
150 μf Ω.
15 μf.
o.067 μf.
46
Page
Electronics & Robotics
⋯
o A resistance consists of the following colors: red - red - red, so its value
equals..................
2220 Ω.
2200 Ω.
2oo2 Ω.
2020 Ω.
0.5 A.
2 A.
8 A.
6 A.
47
Page
Electronics & Robotics
⋯
o A circuit consisting of three resistors with a value of: 30 Ω, 100 Ω, and
150 Ω connected in series, so its equivalent resistance is ……….. .
130 Ω.
200 Ω.
280 Ω.
20 Ω.
Electron sources.
Switches.
Batteries.
Bees.
Voltage.
48
Page
Electronics & Robotics
⋯
Both Voltage and Current.
Current.
None of the Above.
ATmega328p
ATmega2560
49
Page
Electronics & Robotics
⋯
ATmega32114
AT91SAM3x8E
Arduino boards are able to read analog or digital input signals from
different sensors
Arduino IDE uses a simplified version of C++, making it easier to
learn to program.
Arduino provides a standard form factor that breaks the functions of
the micro-controller into a more accessible package.
All of the above
hardware
software
Both A and B
50
Page
Electronics & Robotics
⋯
None of the above
14
12
16
20
51
Page
Electronics & Robotics
⋯
o What language is a typical Arduino code based on?
C/C++
Java
Python
Assembly Code
The IDE executes the code while the compiler gives a graphical
environment for writing the code
The compiler executes the code while the IDE gives a
graphical environment for writing the code
The compiler links the code to the respective files and the IDE takes it
from there
The compiler and the IDE are the same thing
52
Page
Electronics & Robotics
⋯
o Arduino Codes are referred to as ________ in the Arduino IDE.
drawings
notes
sketches
links
Editor->Compiler->Preprocessor
Editor->Preprocessor->Compiler
Preprocessor->Editor->Compiler
Compiler->Preprocessor->Editor
o What are two modes that the pinMode() method sets for a particular pin?
53
Page
Electronics & Robotics
⋯
TX and RX
READ and WRITE
o What are the voltage levels that can be detected if a pin is set to OUTPUT
using the pinMode() method and the analogRead() method is used, in the
Arduino Uno?
0 and 5V
0 to 5.1V
0 to 5V
0 to 10V
o How many times does the setup() function run on every startup of the
Arduino System?
1
2
3
4
54
Page
Electronics & Robotics
⋯
o What is the operating frequency of the Arduino UNO Board?
20 MHz
16 Mhz
6 MHz
10 MHz
Yes
No
Yes, but it needs to be called at least once
Yes, but it needs to be commented out
1
2
55
Page
Electronics & Robotics
⋯
3
4
Switch-case
For loop
While loop
Continue
56
Page
Electronics & Robotics
⋯
o What is the unit of delay in the code given below?
void setup() {
Serial.begin(9600);
}
void loop() {
digitalWrite(10,HIGH);
delay(1000);
digitalWrite(10,LOW);
delay(1000);
}
o Microseconds
o Milliseconds
o Seconds
o Minutes
57
Page
Electronics & Robotics
⋯
o How many times can a variable declared ‘const’ be fed a value in any
program?
0
1
26
30
Microcomputer
Microprocessor
Microcontroller
Microbot
o hardware
58
Page
Electronics & Robotics
⋯
o software
o hardware and software
o input and output
ATmega 328
ATmega 382
ATmega 238
Atmega 283
6
5
2
0
59
Page
Electronics & Robotics
⋯
o A micro-controller is.................
loop()
setup()
(output)
(input)
60
Page
Electronics & Robotics
⋯
o A function is a series of programming statements that can be called by
name. Which command is called repetitively over and over again as long
as the Arduino has power?
loop()
setup()
(output)
(input)
loop()
setup()
delay()
stop()
61
Page
Electronics & Robotics
⋯
o What does this sketch do?
A robot.
Sensor.
Actuators.
62
Page
Electronics & Robotics
⋯
Transistor
Relay.
Key.
Sensor.
Transistor.
MS.
DMM.
LED.
LDR.
63
Page
Electronics & Robotics
⋯
o The light-sensitive diode is symbolized by................
Answer (D)
Answer (A)
Answer (c)
64
Page
Electronics & Robotics
⋯
o Transistor ( P N P ) is symbolized by …………….. .
Answer (A)
Arduino Mega.
Arduino Uno.
C) Arduino Nano.
d) Arduino Mini.
Stepper Motor.
Geared Motor.
Servo Motor.
65
Page
Electronics & Robotics
⋯
DC Motor.
relay
key
sensor
transistor.
o If we start by writing HIGH out on the pin connected to the LED. What
will it make the LED do? (HIGH means putting 5V out on the pin)
o If we start by writing LOW out on the pin connected to the LED. What
will it make the LED do? (LOW means putting 0V out on the pin)
66
Page
Electronics & Robotics
⋯
Turn the LED on
Turn the LED off
Arduino Board
Sensor
Shields
None of the above
o How many GND pins are there in a power pins of an Arduino UNO
board?
1
2
3
4
67
Page
Electronics & Robotics
⋯
o What is the default file name use in saving an Arduino code?
arduino_date
file_date
procodes_date
sketches_date
o What tool is mainly used for testing projects and the Programmer section
in this panel is used for burning a bootloader to the new microcontroller?
Help
Scratch
Tools
Verify
o Which of the following is not part of the main section of Arduino IDE?
Menu Bar
68
Page
Electronics & Robotics
⋯
Output Pane
Serial Monitor
Text Editor
Analog Pins
Digital Pins
Microcontroller
Power Pins
Arduino IDE
System Programmer
Arduino Coder
Arduino Developer
69
Page
Electronics & Robotics
⋯
o What is an electrical circuit?
o What is an LED?
a light
a light emitting diode
a part of a circuit
True
False
70
Page
Electronics & Robotics
⋯
o The (+) column on your breadboard represents the positive charge or
power to your circuit.
True
False
input
output
command
variable
buttons, leds
smartphone
sensors
71
Page
Electronics & Robotics
⋯
all of the above
Alphabets
Capital and small letters
Combination of Numbers and Alphabets
Numbers
o int LED1=4;Is that necessary to label LED into LED1, LED2, LED3 and
so on....
YES
NO
Analog Pin
72
Page
Electronics & Robotics
⋯
5V
Ground
Digital Pin
Output
Input
pinMode
digitalWrite
Blinking
Switch OFF
Switch ON
Sequence
73
Page
Electronics & Robotics
⋯
o delay (1000); 1000 in delay is equivalent to how many second?
10s
2s
60s
1s
LED Switch Off at the beginning, wait for 60s and then switch ON.
LED Switch ON at the beginning, wait for 10s and then Switch OFF.
LED Switch ON at the beginning, wait for 1s and then switch ON.
LED Switch ON at the beginning, wait for 1s then switch OFF
74
Page
Electronics & Robotics
⋯
R1: int Led1=4;
R2: void setup(){
R3: digitalWrite (LED1, High);
R4: }
o LED1 was not declared above void setup. Which row is the error?
R1
R2
R3
R4
int Led1=4;
void setup(){
digitalWrite (LED1, High);
}
o Find the errors?
LED 1
75
Page
Electronics & Robotics
⋯
DigitalWrite
Low
Void Setup
76
Page
Electronics & Robotics
⋯
inductive
capacitive
resistive
infinite
lower sideband
upper sideband
both sidebands
carrier
77
Page
Electronics & Robotics
⋯
o In amplitude modulation, how much of the transmitted power is in the
carrier?
one-half
three-quarters
one-third
two-thirds
balanced demodulator
balanced modulator
beat frequency oscillator
notch filter
78
Page
Electronics & Robotics
⋯
o Which of the following is not a major benefit of SSB?
pilot carrier
suppressed carrier
composite carrier
sideband carrier
amplitude modulated
79
Page
Electronics & Robotics
⋯
frequency modulated
SSB
DSB
A3F
J3E
F2D
G7E
amplitude modulation
pulse modulation
frequency modulation
80
Page
Electronics & Robotics
⋯
phase modulation
Continuous
Discrete
Bits
Bytes
Analog data
Digital data
Analog Signals
Digital Signals
81
Page
Electronics & Robotics
⋯
o Completion of one full pattern is called a
period
Cycle
Frame
Segment
Digital data
Analog Data
Digital Signal
Analog Signal
Digital-to-digital
Digital-to-analog
82
Page
Electronics & Robotics
⋯
Analog-to –analog
Analog-to-digital
Digital-to-digital
Digital-to-analog
Analog-to-analog
Analog-to-digital
Digital-to-digital
Digital-to-analog
Analog-to –analog
Analog-to-digital
83
Page
Electronics & Robotics
⋯
o AM and FM are examples of ________ encoding.
o Digital-to-digital
o Digital-to-analog
o Analog-to –analog
o Analog-to-digital
Amplitude
Frequency
Bit rate
Baud rate
PSK
ASK
84
Page
Electronics & Robotics
⋯
FSK
QAM
200 samples/sec
500 samples/sec
1000 samples/sec
1200 samples/sec
o If the baud rate is 400 for a 4-PSK, the bit rate is ______ bps.
100
400
800
1600
85
Page
Electronics & Robotics
⋯
o Determine the channel capacity of a 4 kHz channel with S/N = 10 dB.
8.02 kbps
4.17 kbps
13.74 kbps
26.58 kbps
o If the bit rate for an ASK signal is 1200 bps, the baud rate is
300
400
600
1200
o Which encoding method uses alternating positive and negative values for
1’s?
NRZ-I
86
Page
Electronics & Robotics
⋯
RZ
Manchester
AMI
4
5
6
7
AMI
B8ZS
RZ
87
Page
Electronics & Robotics
⋯
Manchester
1
3
4
5
16 bits/cycle
4 bits/cycle
8 bits/cycle
2 bits/cycle
88
Page
Electronics & Robotics
⋯
o In _________ transmission, bits are transmitted simultaneously, each
across its own channel .
Asynchronous serial
Synchronous serial
Parallel
A and B
2
3
4
All of the above
1
89
Page
Electronics & Robotics
⋯
0
Undefined
Either 1 or 0 depending on the coding scheme
o The majority of the pins f the EIA-RS-232 interface are used for _____
purpose.
Control
Timing
Data
Testing
DB-15
DB-25
DB37
DB-9
90
Page
Electronics & Robotics
⋯
o If you have two close, compatible DTEs that can communicate data that
do not need to be modulated. A good interface would be ________.
A null modem
An EIA-RS-232 modem
A DB-45 connector
A transceiver
To narrow bandwidth
To simplify encoding
To increase data rate
To reduce the error rate
o In trellis coding. The number of the data bits is _____ the number of
transmitted bits.
91
Page
Electronics & Robotics
⋯
Equal to
Less than
More than
Double that of
V.33
V.34
V.39
V.37
Digital
Analog
PSK
QAM
92
Page
Electronics & Robotics
⋯
o For digital communications, determine signal to noise ratio in dB which
would be required for an ideal channel with a bandwidth of 2500 Hz.
5
9.54 dB
4.77 dB
3.4
5.0 V
0.5 V
0.005 V
0.05 V
93
Page
Electronics & Robotics
⋯
o Determine the bandwidth efficiency for QPSK modulation scheme at a
transmission rate of 10 Mbps.
2 bits/cycle
4 bits/cycle
8 bits/cycle
16 bits/cycle
Digital, analog
Analog, digital
PSK, FSK
FSK, PSK
94
Page
Electronics & Robotics
⋯
o Which of the following modulation techniques are used by modems?
16-QAM
FSK
8-PSK
All of the above
24 Mbps, 48 dB
48 Mbps, 24 dB
24 Mbps, 24 dB
48 Mbps, 48 dB
95
Page
Electronics & Robotics
⋯
o Which of the following modems uses FSK modulation?
Bell 103
Bell 201
Bell 212
All of the above
EIA-RS-449
EIA-RS-232
EIA-RS-423
RS-422
50
96
Page
Electronics & Robotics
⋯
400
500
4000
107.5 kHz
3.57 MHz
357.14 kHz
1.075 MHz
o The maximum data rate for RS-442 is ________ times that of the
maximum RS-423 data rate.
0.1
10
100
97
Page
Electronics & Robotics
⋯
500
o For an Ethernet bus that is 500 meters in length using a cable with a
velocity factor of 0.66, and a communication rate of 10 Mb/s, calculate
the total number of bits that would be sent by each station before it detects
a collision, if both stations begin to transmit at the same time.
25 bits
bits
19 bits
41 bits
98
Page
Electronics & Robotics
⋯
o An asynchronous communications system uses ASCII at 9600 bps with
eight bits, one start bit, one stop bit and no parity bit. Express the data
rate in words per minute. (Assume a word has five characters and one
space).
9600 wpm
57600 wpm
160 wpm
11520 wpm
12.8 kbps
6.4 kbps
36.144 kbps
18.072 kbps
99
Page
Electronics & Robotics
⋯
o For a binary phase shift keying (BPSK) modulation with a carrier
frequency of 80 MHz and an input bit rate of 10 Mbps. Determine the
minimum Nyquist bandwidth.
40 MHz
10 MHz
20 MHz
50 MHz
100
Page
Electronics & Robotics
⋯
o For a quaternary phase shift keying (QPSK) modulation, data with a
carrier frequency of 70 MHz, and input bit rate of 10 Mbps, determine the
minimum Nyquist bandwidth.
10 MHz
5 MHz
20 MHz
40 MHz
o 12 voice channels are sampled at 8000 sampling rate and encoded into
8-bit PCM word. Determine the rate of the data stream.
768 kbps
12 kbps
12.8 kbps
46.08 kbps
101
Page
Electronics & Robotics
⋯
o The encoding method specified in the EIA-232 standard is _________.
NRZ-I
NRZ-L
Manchester
Differential Manchester
5 kHz
10 kHz
20 kHz
2.5 kHz
102
Page
Electronics & Robotics
⋯
8.8 dB
16.16 dB
21.81 dB
18.8 dB
20
36
25
19
30 kHz
15 kHz
60 kHz
45 kHz
103
Page
Electronics & Robotics
⋯
104
من حفر النار ؛ اللهم اغفر له و ارحمه و اعف عنه و اكرم منزله.
Page