e
p s t e pos t e po e supp y p t o tage bet ee a d 0
(in this project, we use +5V);
• The V
pin is the temperature sensor analog output of no more than 6V (5V for
this project);
• The GND pin is the device ground pin to be connected to the power supply
negative terminal.
The accuracy specifications of the LM35 temperature sensor are given with respect to
a simple linear transfer function:
V
out
= 10mV
∘
C
×
T
where
V
is the temperature sensor output voltage in millivolts (mV) and
T
is the
temperature in °C.
Figure
2.1.10
: (a) a 5-mm common cathode RGB LED and (b) its pin configuration
(
https://www.sparkfun.com/products/105
).
In an RGB LED, each of the three single-color LEDs has two leads, the anode (or
positive pin) where the current flows in and the cathode (or negative pin) where the
current flows out. There are two types of RGB LEDs: common anode and common
cathode. Assume we use the common cathode RGB LED as show in Figure 2.1.10 but
the other type would also work. The common cathode (–) pin 2 will connect to the
ground. The anode (+) pins 1, 3, and 4 will connect to the digital output pins of the
microcontroller.
Dostları ilə paylaş: