Documente Academic
Documente Profesional
Documente Cultură
Contents
Example 1:
A R1 B R2 C
1k 1k
5V
R3
1k
0
Figure 1.1.1: Schematic 1
Based on Figure 1.1.1, there are total of 4 nodes. They are node A, node B, node C and GND.
Example 2:
A R1 B R2 C
1k 1k
5V
C1 1uF L1 10uH
0
Figure 1.1.2: Schematic 2
Based on Figure 1.1.2, there are total of 4 nodes. They are node A, node B, node C and GND.
It is noticed that a point is counted as a node regardless what kind of components connected to
the point.
Copyright © USM IEEE R&D
Updated 8th January 2017 1
ARDUINO MODULE (BEGINEER) OOI YOONG KHANG
TRY THIS!
Find the number of nodes of the following circuits:
(i)
R1 R2
1k 1k
5V
R3 R4
1k 1k
R5
3.3V 1k
0
Figure 1.1.3: Schematic 3
Answer: ____________________
(ii)
R1 R2
1k 1k
V1
5V R3
1k
R4
1k
V2
5V R5
1k
R6
1k
0
Figure 1.1.4: Schematic 4
Answer: ____________________
Shorter leg
65
100Ω × 10 it.
150Ω × 10
1kΩ × 10
10kΩ × 10
100kΩ × 10
1MΩ × 10
2.1 Arduino
2.2 Breadboard
TRY THIS!
A: _________________________
B: _________________________
C: _________________________
D: _________________________
E: _________________________
2.3 Resistor
3.0 Projects
3.1 Insert Library
1. Open the CapacitiveSensor.rar file and click “Extract To” as shown in Figure 3.1.1.
2. Select the location of your libraries folder in Arduino folder installed. The location will
be in C:\Program Files(x86)\Arduino\libraries. Press “OK” after the folder is selected.
Click “Tools” on Menu bar and check for the “Board” and “Port” are selected correctly.
3. Do take note that the character/alphabet used in the programming is case sensitive. For
example, setup() and Setup() are two different things. If your program is written with void
Setup() or void Loop(), an error will be occurred when you compile your program.
2. Write the program as shown below and upload into Arduino board.
2. Write the program as shown below and upload into Arduino board.
TRY THIS!
1. Set pin 5 as INPUT for tact switch and pin 8 as OUTPUT for LED.
2. Write a program that when user press the tact switch and release hand, the LED will light
ON. When user press again the tact switch and release hand, the LED will light OFF.
2. Write the program as shown below and upload into Arduino board.
2. Write the program as shown below and upload into Arduino board.
Off speaker
3.9 Karaoke
TRY THIS!
1. Set pin 8, pin 9 and pin 10 as OUTPUT for LEDs and set pin 11 as OUTPUT for speaker.
2. Write a program to play a music and blink the LEDs together.
2. Write the program as shown below and upload into Arduino board.
3. Write the program as shown below and upload into Arduino board.
TRY THIS!
1. Set pin 2 as OUTPUT source and pin 4 and pin 6 as INPUT source. Set pin 11 as OUTPUT
for speaker.
2. Write a program to play a sound when touch each wire.
3.13 LCD
1. Build the circuit according to the schematic shown below.
2. Write the program as shown below and upload into Arduino board.
3.14 Timer
TRY THIS!
1. By using LCD, display a timer that count from 30 seconds to 0 and keep repeat count
from 30 seconds again.
Section 2.2
A: 5 V
B: No Voltage
C: 3.3 V
D: No Voltage
E: 0 V
Section 3.6
Section 3.9
Section 3.12
Section 3.14