LAB ACTIVITY 5 Analog Input
LAB ACTIVITY 5 Analog Input
Experiment Number 5
Analog Input
Fig. 1
Discussion:
Design and write the program for an Arduino based system to read two
analog signals continuously. Pin 13 is ON when Sig1>Sig2. Otherwise, pin
13 is OFF.
Page 1 of 4
Prepared By; Jonel R Macalisang
Equipment:
• Arduino UNO board
• npn transistor
• DC motor
• DC power supply
Theory:
When the load requires an amount of current greater than that can be
supplied by the output pins of the Arduino card, then a driving circuit
must be used.
The driving circuit connects/disconnects the load to an external power
supply under the control of an Arduino output pin.
This switching action is implemented by using a transistor or a relay.
Procedure:
1. Connect the circuit of Fig.1.
2. Write a program to turn the CD motor ON and OFF every 1 second.
3. Connect the circuit of Fig. 2, and repeat step 2.
Fig. 1 Fig. 2
Discussion:
1. Compare between using transistors and relays from the driving
capability, size, and cost points of view.
Page 2 of 4
Prepared By; Jonel R Macalisang
Results and Discussion of Method of Exercises (Individual)
(Screenshot, Code and Discussion, follow the guidelines below.)
Page 3 of 4
Prepared By; Jonel R Macalisang
Page 4 of 4
Prepared By; Jonel R Macalisang