• Pin 1 of the temperature sensor goes to the +5V power supply on the Arduino
UNO board;
• Pin 2 of the temperature sensor goes to the analog pin A0 on the Arduino UNO
board;
• Pin 3 of the temperature sensor goes to one of the ground pin GND on the
Arduino UNO board;
• Digital I/O pin 2 on the Arduino UNO board connects with pin 4 (the blue LED) of
the RGB LED through a 220 Ω resistor;
• Digital I/O pin 3 on the Arduino UNO board connects with pin 3 (the green LED)
of the RGB LED through a 220 Ω resistor;
Figure
2.1.12
: Wiring diagram for setting up the test platform.
The Arduino is wired to a
breadboard with three resistors and the LM35 temperature sensor.
• Digital I/O pin 4 on the Arduino UNO board connects with pin 1 (the red LED) of
the RGB LED through a 220 Ω resistor; and
• Pin 2 (cathode) of the RGB LED connects to the ground pin GND on the Arduino
UNO board.
An electronics breadboard (Figure 2.1.13) is used to create a
prototyping circuit
without soldering. This is a great way to test a circuit.
Each plastic hole on the
breadboard has a metal clip where the bare end of a jumper wire can be secured.
Columns of clips are marked as +, −, and a to j; and rows of clips are marked as 1 to
30. All clips on each one of the four power rails on the sides are connected. There are
typically five connected clips on each terminal strip.
Loading [MathJax]/jax/output/HTML-CSS/fonts/TeX/fontdata.js
How can we help you?
☰
(a) (b)
Figure
2.1.13
: A breadboard: (a) front view (b) back
view with the adhesive back
removed to expose the bottom of the four vertical power rails on the sides (indicated
with arrows) and the terminal strips in the middle. (Picture from Sparkfun,
https://learn.sparkfun.com/tutorials/how-to-use-a-breadboard/all
).
Dostları ilə paylaş: