Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

Laboratory Activity No.

Acceleration/Tilt Measuring Instrument

Name: ___________________________ Rating: ________________


Section: __________________________ Date: __________________

Objectives:

This experiment will enable the student


1. To measure Tilt angle using the accelerometer.
2. To interface an accelerometer, LCD display and Arduino the process
3. To create a tilt measuring instrument

Equipment and Materials:

Qty Equipment/Materials
1 Personal Computer
1 Arduino microcontroller
1 LCD Display
1 Accelerometer
1 USB cable
1 Power supply
1 Breadboard
8 Alligator clips
1 set Connecting wires

Introduction:

In this activity we will going to create a linear displacement measuring device or


instrument. The instrument is compose of the ultrasonic sensor, the LCD as the indicator or
display and the Arduino microcontroller as the processor.
We will use the ultrasonic sensor to measure the distance of the object in front of it.
The sensor will release an ultrasonic sound to its transmitter that will hit the object in front.
The sound will reflect back to the sensor and will received by the receiver part. The sensor
will record the time it takes for the sound to return. Considering the speed of sound as
constant, the time will be used to compute the distance travelled by the sound and also the
basis as the distance of the object to the sensor. All computation will be handled by the build
in library for ultrasonic in the Arduino program.
The liquid crystal display (LCD) provides the display to indicate the amount of linear
distance does the ultrasonic sensor acquired. To display the information received by the
Arduino from the potentiometer a build in library in Arduino programming will be used to
control the output display.
Procedures:
A. Set-up
1. Connect the computer and Arduino microcontroller using USB serial cable

2. Connect the accelerometer to the microcontroller as shown below.

3. Then connect the LCD display to the microcontroller as shown below.


B. Arduino Program:
1. Write the program below to the microcontroller. Explain what does the code will do
in the system?

Data:

1. Explain line by line what does the code do?


____________________________________________________________________
____________________________________________________________________
____________________________________________________________________
____________________________________________________________________
____________________________________________________________________
____________________________________________________________________
____________________________________________________________________

2. Run the program and turn the knob of the potentiometer to into it counter clockwise
most direction. What is the reading in the LCD display?
____________________________________________________________________
____________________________________________________________________

3. Gently rotate the knob of the potentiometer clockwise. What is happening to LCD
display reading?
____________________________________________________________________
____________________________________________________________________
____________________________________________________________________

4. What is the LCD reading once the potentiometer reaches the clockwise most
rotation?
____________________________________________________________________
____________________________________________________________________
____________________________________________________________________

You might also like