Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
32 views6 pages

"Bathroom Ventilation Fan": Design Laboratory No.5

This document describes a student project to design an improvised baggage handling system. It presents the problem statement, which is to create a baggage counter system for places like malls and airports. It then details the procedures and testing, which includes connecting an ultrasonic sensor and DC motor using Arduino, and programming the design. Code snippets and diagrams of the final design output are also provided. The learning experiences section explains how DC motors and ultrasonic sensors work.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views6 pages

"Bathroom Ventilation Fan": Design Laboratory No.5

This document describes a student project to design an improvised baggage handling system. It presents the problem statement, which is to create a baggage counter system for places like malls and airports. It then details the procedures and testing, which includes connecting an ultrasonic sensor and DC motor using Arduino, and programming the design. Code snippets and diagrams of the final design output are also provided. The learning experiences section explains how DC motors and ultrasonic sensors work.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

“Bathroom Ventilation Fan”

Design Laboratory No.5

Edwin Q. Deviza Jr. BSECE – 4


Arlyn Grace Escuton BSECE - 4

Gelvie Lagos | ECE 4204 | March 5, 2018

1
INTRODUCTION
Taking extra precautions in terms of baggage handling and
baggage problems can make a difference when shopping at malls.
A baggage handling system (BHS) is a type of conveyor system
installed that transports checked luggage from baggage counter to
areas where the bags can be loaded based on the size of your baggage.
A BHS automatically stores your baggage to the box where the size of
your baggage fit with its respective control number.
Although the primary function of a BHS is the transportation of bags,
a typical BHS will serve other functions involved in making sure that a bag
gets to the correct location in the baggage counter. Sortation is the
process of identifying a bag and the information associated with it, to
decide where the bag should be directed within the system.
There is an entire process that the BHS controls. From the moment the
bag is set on the inbound conveyor, to the gathering conveyor, through
sorting until it arrives at the designated area, the BHS has control over the
bag.

PROBLEM STATEMENT
This project aims to create an improvised baggage counter system
for malls, airports and any other places that need such system.

2
PROCEDURES AND TESTING
1. Based on the problem, the materials that you will be needing are DC motor,
ultrasonic sensor, and male to female and male to male connecting wires.
2. Connect the circuit as shown below:

Figure 1

3. Create sketch or program of the design


a. Start by defining variables with their designated configuration. Start a new
Arduino project, and begin with these lines:

int motor= 3;
int trig= 5;
int echo= 6;

int maximumRange = 100;


int minimumRange = 0;
long duration, distance;

b. Next, let’s add the setup function, where’ll we configure the output for
the segment and input for the button. Since you have created variables
to represent the pin numbers, you can now refer to the pins by name
instead.

void setup() {

pinMode (trig, OUTPUT);


3
pinMode (echo, INPUT);
pinMode (motor, OUTPUT);

c. Creating the program of the using Arduino 1.6.8. Create a separate


function for changing the lights the underwater swimming pool light. In
every color signifies different functions.

In coding for the program of the design, you have to think for the logic of
your output first. The c language in Arduino 1.6.8 is case sensitive so be
careful and study the programming well. After you program, verify if it has
problems and the software will show the errors. If no errors identified.
Upload the program for testing.

void loop() {
long duration, distance;
digitalWrite (trig, LOW);
delay (2000);
digitalWrite (trig, HIGH);
delay (2000);
digitalWrite (trigLOW);
digitalWrite (motor, HIGH);
delay (60000);
digitalWrite (motor, LOW);
while (1);

duration= pulseIn (echo,HIGH);


distance= (duration/2)/29.1;
Serial.println (distance);
}

d. Make sure to double check the connections that you followed that is given by
the figure above made in fritzing. The connection is very simple so it easy to
copy. Just a simple series and parallel circuit of the resistor together with the
LEDs. Make sure to connect the connecting wires to PWM pins. Don’t forget to
put the ground.

4
CODES AND FINAL DESIGN OUTPUT
int motor= 3;
int trig= 5;
int echo= 6;

int maximumRange = 100;


int minimumRange = 0;
long duration, distance;

void setup() {

pinMode (trig, OUTPUT);


pinMode (echo, INPUT);
pinMode (motor, OUTPUT);

void loop() {
long duration, distance;
digitalWrite (trig, LOW);
delay (2000);
digitalWrite (trig, HIGH);
delay (2000);
digitalWrite (trigLOW);
digitalWrite (motor, HIGH);
delay (60000);
digitalWrite (motor, LOW);
while (1);

duration= pulseIn (echo,HIGH);


distance= (duration/2)/29.1;
Serial.println (distance);
}

5
DESIGN OUTPUT:

Figure 2

LEARNING EXPERIENCES
This project makes use of the servo motor, controlled by a joystick. Servo motors
are small in size but are energy efficient and power, while a joystick is serves as a
control stick used to pilot. This improvised lawn mower device is a device which aids a
person in cutting grass, as efficient as the original one but environment- friendly,
economically- friendly and user- friendly.

A direct current, or DC, motor is the most common type of motor. DC


motors normally have just two leads, one positive and one negative. If you
connect these two leads directly to a battery, the motor will rotate. If you
switch the leads, the motor will rotate in the opposite direction.
HC-SR04 ultrasonic ranging sensor is an economical sensor that
provides 2cm to 400cm of non-contact measurement functionality with a
ranging accuracy that can reach up to 3mm. Each HC-SR04 module
includes an ultrasonic transmitter, a receiver and a control circuit. There
are only four pins that you need to worry about on the HC-SR04: VCC
(Power), Trig (Trigger), Echo (Receive), and GND (Ground).

You might also like