You are on page 1of 13

Table of Content

Aims: .......................................................................................................................................... 2
Exercise 1 :................................................................................................................................. 2
1. The required Hardware to make this assembly circuit works well. ................................ 2
2. The steps to be followed ................................................................................................. 2
3. The proposed assembly circuit /Diagram ....................................................................... 3
4. The corresponding Arduino code to your proposed diagram. ........................................ 4
Exercise 2 ................................................................................................................................... 4
1. The required Hardware to make this assembly circuit works well. ................................ 5
2. The steps to be followed ................................................................................................. 5
3. The proposed assembly circuit /Diagram ....................................................................... 6
4. The corresponding Arduino code to your proposed diagram. ........................................ 7
Exercise 3 :................................................................................................................................. 9
1. The required Hardware to make this assembly circuit works well. ................................ 9
2. The steps to be followed ............................................................................................... 10
3. The proposed assembly circuit /Diagram ..................................................................... 10
4. The corresponding Arduino code to your proposed diagram. ...................................... 11
Exercise 4 :............................................................................................................................... 12
1. The required Hardware to make this assembly circuit works well. .............................. 12
2. The steps to be followed ............................................................................................... 12
3. The proposed assembly circuit /Diagram ..................................................................... 13
4. The corresponding Arduino code to your proposed diagram. ...................................... 14

1
Aims:
• To use an Active Buzzer with the Vibration switch sensor
• To use the Temperature and Humidity Sensor and display the results in the console as
well as on the LCD.
• To use a flame sensor to detect Fire and alert people with a passive buzzer
• To use Holzer Sensor to detect the presence of a magnet.

Exercise 1 :
In this exercise we will need to use a vibration sensor (called also: shake switch) to make a
beep sound from a buzzer while we shake the breadboard.

1. The required Hardware to make this assembly circuit works well.


• Arduino uno
• Breadboard (or breadboard shield)
• Buzzer
• Vibration/shake sensor

2. The steps to be followed


• Connect one pin of the vibration sensor to the Arduino A0 analog pin and the other to
the 5V pin.
• Now connect the buzzer, one pin to Arduino pin 8 and the other to GND.

2
3. The proposed assembly circuit /Diagram

3
4. The corresponding Arduino code to your proposed diagram.

Exercise 2
In this exercise we will need to use the temperature and humidity sensor and display the
results in the console as well as on the LCD.

4
1. The required Hardware to make this assembly circuit works well.
• Arduino uno
• Breadboard (or breadboard shield)
• Temperature and humidity sensor
• LCD Screen
• Resistor
• DIP switch

2. The steps to be followed

• LCD RS pin to digital pin 12


• LCD Enable pin to digital pin 11
• LCD Pin D4 to digital pin 5
• LCD Pin D5 to digital pin 4
• LCD Pin D6 to digital pin 3
• LCD Pin D7 to Digital Pin 2
• LCD Pin R / W to Ground
• LCD Pin VSS to Ground
• LCD Pin VCC to 5V
• 10K resistor: terminates at +5V and ground wiper on VO LCD pin (pin 3)

5
3. The proposed assembly circuit /Diagram

6
4. The corresponding Arduino code to your proposed diagram.

7
Exercise 3 :
In this exercise we will need to use a flame sensor to detect Fire and alert people with a passive
buzzer making a sound.

1. The required Hardware to make this assembly circuit works well.


• Arduino uno
• Breadboard (or breadboard shield)
• Buzzer
• Temperature sensor

9
2. The steps to be followed
• First of all, we will use the TMP36 which is a temperature
• A voltage proportional to the ambient temperature.
• We will use the analog input 0 to measure the temperature sensors
• We will connect the buzzer to D12 on the Arduino card.

3. The proposed assembly circuit /Diagram

10
4. The corresponding Arduino code to your proposed diagram.

11
Exercise 4 :
In this exercise we will need to use a Holzer sensor to detect the presence of a magnet.
Whenever a magnet moves past this sensor, it can detect it. This sensor can be used to do a lot
of different things. For instance, if we need to detect a door closing;

1. The required Hardware to make this assembly circuit works well.


• Arduino uno
• Breadboard (or breadboard shield)
• Holzer sensor
• Resistor

2. The steps to be followed


• The VCC of the sensor is connected to Arduino's 5V power pin.
• The GND of the sensor is connected to the GND pin on the Arduino.
• The Vout or signal pin of the Hall effect sensor is connected to the Arduino's interrupt
pin (digital pin 2).
• Furthermore, a 10K resistor is connected between the VCC and Vout pins of the Hall
effect sensor. This is done to pull the output of the Hall effect sensor to 5V.

12
3. The proposed assembly circuit /Diagram

13
4. The corresponding Arduino code to your proposed diagram.

14

You might also like