0% found this document useful (0 votes)
7 views10 pages

Analog Input and Output Presentation

The document explains analog signals, which are continuous and represent real-world phenomena like light and sound. It details analog input and output, highlighting the use of ADC for reading data and PWM for simulating analog behavior with digital signals. Additionally, it provides examples of Arduino code for analog input and output operations.

Uploaded by

jacob raquel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views10 pages

Analog Input and Output Presentation

The document explains analog signals, which are continuous and represent real-world phenomena like light and sound. It details analog input and output, highlighting the use of ADC for reading data and PWM for simulating analog behavior with digital signals. Additionally, it provides examples of Arduino code for analog input and output operations.

Uploaded by

jacob raquel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 10

Analog Input and

Output
What is Analog?
• • Analog refers to continuous signals
that vary over time.
• • Represent real-world phenomena
like light, sound, and temperature.
• • Example: Volume knob on a
speaker.
Analog Input
• • Used to read real-world data.
• • Examples:
• - Temperature sensors
• - Light sensors
• - Potentiometers
• • Microcontrollers use ADC (Analog to
Digital Converter) to read analog
input.
Analog Output
• • Simulates analog behavior using digital
signals.
• • Common method: PWM (Pulse Width
Modulation).
• • Examples:
• - Dimming an LED
• - Controlling motor speed
• - Generating audio tones
ADC - Analog to Digital Conversion
• • Converts continuous analog
signals into discrete digital values.
• • Arduino: 10-bit resolution →
values from 0 to 1023.
• • Formula: Voltage =
(AnalogReading / 1023) *
ReferenceVoltage
PWM - Pulse Width Modulation
• • Mimics analog output using fast digital
pulses.
• • Duty cycle determines average voltage.
• • Higher duty cycle = brighter LED / faster
motor.
Arduino Example - Analog In/Out
• • Analog Input: analogRead(A0);
• • Analog Output: analogWrite(9,
128);
• • Common pins:
• - Analog In: A0 to A5
• - PWM Out: ~3, ~5, ~6, ~9, ~10, ~11

You might also like