0% found this document useful (0 votes)
2 views37 pages

3 Computer Interfacing

The document provides an overview of computer interfacing, explaining the importance of microcontrollers and their interaction with input and output devices. It details basic electronic components such as resistors, capacitors, and diodes, as well as tools like breadboards and multimeters. Additionally, it covers microcontrollers, specifically Arduino, including its components and applications, along with a project involving LED interfacing.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views37 pages

3 Computer Interfacing

The document provides an overview of computer interfacing, explaining the importance of microcontrollers and their interaction with input and output devices. It details basic electronic components such as resistors, capacitors, and diodes, as well as tools like breadboards and multimeters. Additionally, it covers microcontrollers, specifically Arduino, including its components and applications, along with a project involving LED interfacing.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

COMPUTER

INTERFACING

1
WHAT IS COMPUTER INTERFACING
COMPUTER INTERFACING
• A Microcontroller is a wonderful piece
of engineering.
• For it to do many things, it needs to
interact with the outside world(Input
and Output devices).
• The process of connecting devices
together so that they can exchange
the information is called interfacing.
• Cable used for interfacing IoT:
• USB cable
• Parallel cable
• Serial cable (RS 232)

2
COMPUTER INTERFACING

WHAT IS COMPUTER INTERFACING


Signal – an electromagnetic impulse used to
convey data
Voltage - amount of potential energy between two
points on a circuit
• Electric pressure from a power source
Ground - connection to a particular point in an
electrical or electronic circuit
• electrical ground connection also minimizes the
susceptibility of equipment to interference, reduces
the risk of equipment damage due to lightning,
eliminates electrostatic buildup that can damage
system components, and helps protect personnel
who service and repair electrical, electronic, and
computer systems.
• an electrical ground drains away any unwanted
buildup of electrical charge
• When a point is connected to a good ground, that
point tends to stay at a constant voltage, regardless
of what happens elsewhere in the circuit or system . 3
BASIC ELECTRONIC
COMPONENTS

4
BASIC ELECTRONIC COMPONENTS

RESISTOR
• Resistors are used to resist the flow of current or to control the voltage in a circuit.
• The amount of resistance that a resistor offers is measured in Ohms.
• Most resistors have colored stripes on the outside and this code will tell you it’s
value of resistance.

5
BASIC ELECTRONIC COMPONENTS

RESISTOR

6
BASIC ELECTRONIC COMPONENTS

CAPACITOR
• store electricity and then discharges it back into the circuit when there is a drop in
voltage
• capacitor is like a rechargeable battery and can be charged and then discharged
• the value is measured in F (Farad), nano Farad (nF) or pico Farad (pF) range

7
BASIC ELECTRONIC COMPONENTS

Light-Emitting Diode (LED)


• A component that emit light when electricity flows through it
• there is an anode(+) and cathode(-)
• Current always flows from the anode (+) to the cathode (-) and never in the
opposite direction.
• The longer leg of the LED is the positive (anode) side.

8
BASIC ELECTRONIC COMPONENTS

TRANSISTOR
• tiny switches that turn a current on or off when triggered by an electric signal

9
BASIC ELECTRONIC COMPONENTS

Integrated Circuit (IC)


• a circuit that’s been reduced in size to fit inside a tiny chip.
• This circuit contains electronic components like resistors and capacitors but on a
much smaller scale.
• Integrated circuits come in different variations such as 555 timers, voltage
regulators, microcontrollers and many more.
• Each pin on an IC is unique in terms of its function.

10
BASIC ELECTRONIC COMPONENTS

Switch
• Their basic function is to interrupt electric current by turning a circuit ON or OFF
• Switches can come in many forms such as pushbutton, rocker, momentary and
others

11
BASIC ELECTRONIC COMPONENTS

Potentiometer
• A variable resistor is also known as a potentiometer.
• These components can be found in devices such as a light dimmer or volume
control for a radio.
• When you turn the shaft of a potentiometer the resistance changes in the circuit.

12
BASIC ELECTRONIC COMPONENTS

Light-Dependent Resistor (LDR)


• a variable resistor but is controlled by the light.
• The resistance in the circuit changes with the intensity of the light.
• These are often found in exterior lights that automatically turn on at dusk and off
at dawn.

13
BASIC ELECTRONIC COMPONENTS

Diode
• allows electricity to flow in one direction and blocks it from flowing the opposite
way
• diode’s primary role is to route electricity from taking an unwanted path within the
circuit

14
BASIC ELECTRONIC COMPONENTS

Relay
• an electrically operated switch that opens or closes when power is applied
• relay is an electromagnet which controls a mechanical switch

15
BASIC ELECTRONIC
TOOLS

16
BASIC ELECTRONIC TOOLS

Breadboard
• Breadboards are an essential tool for prototyping and building temporary circuits.
• These boards contain holes for inserting wire and components.
• Because of their temporary nature, they allow you to create circuits without
soldering.
• The holes in a breadboard are connected in rows both horizontally and vertically
as shown below.

17
BASIC ELECTRONIC TOOLS

Digital Multimeter
• A multimeter is a device that’s used to measure electric current (amps), voltage
(volts) and resistance (ohms).
• It’s a great for troubleshooting circuits and is capable of measuring both AC and DC
voltage.

18
BASIC ELECTRONIC TOOLS

Wire Cutter
• Wire cutters are essential for stripping stranded and solid copper wire.

19
BASIC ELECTRONIC TOOLS

Soldering Iron
• When it’s time to create a permanent circuit, you’ll want to solder the parts
together.
• To do this, a soldering iron is the tool you would use.
• A soldering iron isn’t any good unless you have solder to go with it.
• You can choose leaded or lead-free solder in a few diameters.

20
BASIC ELECTRONIC TOOLS

Screwdriver

21
BASIC ELECTRONIC TOOLS

PLIERS

22
MICROCONTROLLERS

23
MICROCONTROLLERS

Microcontroller
• Microcontroller is a small and low-cost microcomputer, which is designed to
perform the specific tasks of embedded systems.
• Microcontroller is a compressed micro computer manufactured to control the
functions of embedded systems in:
• office machines
• Robots
• home appliances
• motor vehicles, and
• several other gadgets

24
Applications of Microcontroller
MICROCONTROLLERS
• Light sensing and
controlling
devices like LED
• Temperature
sensing and
controlling
devices
• Fire detection
and safety
devices
• Measuring
devices like
Voltmeter.

25
MICROCONTROLLERS

ARDUINO
• prototype platform based on an easy-
to-use hardware and software.

• It consists of a circuit board, which


can be programed (referred to as a
microcontroller) and a ready-made
software called Arduino IDE
(Integrated Development
Environment) which is used to write
and upload the computer code to the
physical board.

26
MICROCONTROLLERS

ARDUINO
• Arduino boards can read analog or
digital input signals from different
sensors and turn it into an output such
as activating a motor, turning LED on/off
and many other actions.
• board functions can be control by
sending a set of instructions to the
microcontroller on the board via Arduino
IDE (referred to as uploading software).
• uses a USB cable.
• Arduino IDE uses a simplified version of
C++.

27
MICROCONTROLLERS

Components of Arduino board


1. Power USB - Arduino board can be
powered by using the USB cable from
the computer
2. Power (Barrel Jack) - Arduino boards
can be powered directly from the AC
main power supply by connecting it to
the Barrel Jack
3. Voltage Regulator - The function of the
voltage regulator is to control the
voltage given to the Arduino board and
stabilize the DC voltages used by the
processor and other elements

28
MICROCONTROLLERS

Components of Arduino board


4. Crystal Oscillator – Arduino calculates
time using crystal oscillator
5 & 17. Arduino Reset - You can reset your
Arduino board, i.e., start your program from
the beginning
6. Supply 3.3 output volt
7. Supply 5 output volt
8. Ground (GND)
9. Vin - This pin also can be used to power
the Arduino board from an external power
source, like AC mains power supply

29
MICROCONTROLLERS

Components of Arduino board


10. Analog pins - Arduino UNO board has
five analog input pins A0 through A5. These
pins can read the signal from an analog
sensor like the humidity sensor or
temperature sensor and convert it into a
digital value.
11. Main microcontroller - brain of the
board. The main IC (integrated circuit).
12. ICSP pin
13. Power LED indicator - LED should light
up when you plug your Arduino into a power
source to indicate that your board is
powered up correctly. If this light does not
turn on, then there is something wrong with
the connection 30
MICROCONTROLLERS

Components of Arduino board


14. TX and RX LEDs
15. Digital I/O - Arduino UNO board has 14
digital I/O pins. These pins can be
configured to work as input digital pins to
read logic values (0 or 1) or as digital output
pins to drive different modules like LEDs,
relays, etc. The pins labeled “~”
16. AREF

31
LED INTERFACING
WITH ARDUINO

32
LED INTERFACING WITH ARDUINO

Prerequisites
• Knowledge in C/C++ programming

• basic understanding of microcontrollers and electronics

33
LED INTERFACING WITH ARDUINO

Materials Needed
• Arduino Microcontroller
• USB A to B Cable (printer cable)
• 6 pcs LEDs
• 6 pcs Resistor (330 ohms)
• Breadboard
• Small wires/Jumper Wires

34
LED INTERFACING WITH ARDUINO

CIRCUIT DIAGRAM

35
LED INTERFACING WITH ARDUINO

PICTORIAL DIAGRAM

36
LED INTERFACING WITH ARDUINO

SOURCE CODE

37

You might also like