CPE006 - Using Arduino: Technological Institute of The Philippines Manila Computer Engineering Department
CPE006 - Using Arduino: Technological Institute of The Philippines Manila Computer Engineering Department
t=0.8
t=0.4
S = -100
Analog Signal are everywhere
• Temperature readings
• Pressure
• Humidity
• Wind Speed
• Noise/Speech/Sounds
• etc
Arduino Analog Input
• Arduino has a building Analog port
• Analog port (PORTC) has 5 pins (A0-A5) which can also be
used as digital input if needed.
AnalogRead()
• Reads the value from the specified analog pin and convert to 10-bit
digital value.
• Analog input obtained from this port are automatically mapped into 10bits
value, 0-1023. That means that it yields to 5 volts / 1024 units or, .0049 volts
(4.9 mV) per unit.
Arduino Serial Monitor
• Like the HyperTerminal in Windows XP,
Arduino Serial Monitor allows you to
manipulate the Arduino board under the
windows environment.
• During the sketch uploading, the Arduino
Uno is connected to your computer using
Universal Asynchronous
Receiver/Transmitter (UART) and UART to
USB Bridge chip.
• Serial Monitor connects to your Arduino
over the same serial port (com).
In this Activity:
• Potentiometer
• Joystick
• Liquid Crystal Display
• Temperature Sensor
• Humidity Sensor
Potentiometer
2 General Types of Potentiometer
1. Rotary Type
2. Slide Type
Configurations
Coding the Potentiometer
Joystick A joystick is a hand switch actuated by a lever free
to move in more than one axis of motion. One or
more several switch contact mechanisms are
actuated depending on which way the lever is
pushed, and sometimes by how far it is pushed