Arduino Module 1
Arduino Module 1
Arduino Module 1
What is a Micro-Controller?
A microcontroller is a compact integrated circuit
designed to govern a specific operation in an embedded
system. A typical microcontroller includes a processor,
memory and input/output (I/O. peripherals on a single
chip.
Figure 1. Microcontroller
What is an Arduino?
Digital Pins
● There are a total of 14 digital pins of the Arduino which can be used for
connecting the devices that require digital input from the Arduino Uno and
give the digital output. For the digital we mean that the information will be
in the form of zero and one.
● Pin 0 and 1 in the digital pins are the communication pins of the Arduino
labeled as TX and RX. Through these pins the Arduino communicates with
the different communication devices and is also used when uploading the
code to the Arduino board.
● There is a built-in LED in the Arduino Uno that is connected to pin 13 but
we can use this pin to connect other devices as well.
● The pins that are used to get the output of the Arduino in the form of
pulses are called the PWM pins and its duty cycle varies from 0 to 255. The
pins dedicated for PWM in Arduino Uno are 3, 5, 6, 9, 10, and 11.
Analog Pins
● The Arduino Uno has 6 analog pins that are mainly used to connect the
analog devices (sensors. and have the resolution of 0 to 1023. This means
that the values will be in between 0 and 1023 and in terms of voltage the 5
volts will be 1023).
● The pins A4 and A5 can be used as the SDA and SCL pins for the devices
that used I2C and TWI (Two Wire Interface. communication protocols. The
SDA pin is the data line for the connected device and SCL is the clock pin of
the connected device. Similarly, there are two other pins next to the AREF
pin that can be used for the data line and clock of the I2C devices as well.
Power Pins
● The Arduino Uno has a total of 10 pins that are used for supplying power
to the devices connected with Arduino. The maximum voltage the Arduino
Uno can supply is 5 volts and minimum voltage of 3.3 volts and there are
four ground pins in the board.
● To connect the Arduino board with the supply voltage there is one USB
port and a jack for power supply is also provided. The USB port can be used
for power as well as to upload the code to the Arduino Uno. Whereas the
jack provided for the supply is mostly used when the Arduino has to
function in standalone mode.
● To update or change the firmware of the Arduino Uno we can use the 12
header pins given on the Arduino Uno board. The in-circuit system
programming (ICSP. can be done by connecting Arduino with the device
using a programming cord).
Activity#1
In an A4 size bond paper, draw and label the different parts of Arduino
Uno. Include a legend (color coded system) that will immediately identify
the labels of pins and other parts.
Criteria
Content - 70
Creativity - 20
Use of Language - 10
100 Points
Activity#2
Criteria
Content - 30
Coherence and Cohesion - 10
Use of Language - 10
50 Points
Assessment#1
1. What is Arduino?
a. A type of computer
b. A software application
c. A microcontroller board
d. A programming language
a. 6
b. 8
c. 10
d. 14
6. What is a microcontroller?
a. A software application
b. A programming language
c. A type of computer memory
d. A type of computer processor
11. Pin 0 and 1 in the digital pins are the communication pins of the
Arduino, what is the label of these two pins?
a. A0 and D0
b. A0 and RX
c. D3 and RX
d. TR and RX
12. Which Arduino board is specifically designed for wearable projects due
to its small form factor and low power consumption?
a. Arduino Due
b. Arduino Micro
c. Lilypad Arduino
d. Arduino Leonardo
13. Which pins on the Arduino are used for I2C communication?
a. A4 and A5
b. D2 and D3
c. D10 and D11
d. D12 and D13
14. What is the maximum voltage that can be safely applied to any digital
output?
a. 3 volts
b. 5 volts
c. 9 volts
d. 3.3 volts
16. Which digital pins on the Arduino Uno support PWM output?
a. Pins 0 and 1
b. Pins 3,5,6,9,10, and 11
c. Pins 2,4,7, and 8
d. Pins 13 and A0
17. How many analog pins does the Arduino Uno have?
a. 4
b. 6
c. 8
d. 10
19. Which pin on the Arduino Uno is used for the onboard LED?
a. Pin 0
b. Pin 1
c. Pin 13
d. Pin A0
Assessment#2
• https://www.google.com