Professional Documents
Culture Documents
Super Final Thesis
Super Final Thesis
INTRODUCTION
modern technology is so fast that most of the recent technology now is beyond the
knowledge of older generations. Automation ruled the world, replacing things that are
operated manually before. People expect more breakthroughs as time goes by.
technology keeps changing over time. People are bound to errors and inconsistencies
when they get tired, affecting the performance and decisions that it will make. Some
machines are programmed to follow only certain instructions, enabling them to focus on
specific tasks assigned to them. Through this advancement of technology human works
made easier and can be done at a short period of time, therefore more things can be
An electric fan is a device used to produce an airflow for the purpose of creating
comfort and ventilation. Electric fans are designed to create breezed and circulate air in a
region(Bai & Ku ,2008). The fan creates its cooling effect based on the speed at which its
blades rotate; hence, the speed controller is a very important part of a fan.
During hot conditions, the usage of the electric fan is a cheaper choice compared
to spending more on using an air conditioner especially in some areas where high
temperature is naturally normal. Problems such as users forget to turn off the fan when
being away is inevitable, these result in a rise of electricity bill from leaving the fan on
when it is not in use and it may cause accidents like fire hazards when the motor got
heated up. Some people might get a feeling of annoyance and perhaps frustration when
2
getting up from the seat in order to adjust the speed. This non-innovative feature makes it
unable to change the speed and turn on/off the fan automatically. This is why an
automatic temperature and occupancy control system is applied for the purpose of
The idea of this work is to construct an efficient energy generating fan with a
circuit that will automatically turn on/off and change the speed of the fan based on the
motion and on the temperature of its environment with the help of the microcontroller,
together with an additional dynamo that will generate an output voltage which is being
stored in the battery that can be used for charging small appliances. The motion and the
response to the sensed movements and with the changes in ambient temperature, by
using a microcontroller to compare their input signals and produce the required output
Objectives
temperature.
A.3 Generate electricity that will be used for charging small appliances.
A.4 Preview the status of the room temperature by the use of Android Phone
Students. This study will benefit the students because it does not use human effort
to function the fan. Since it only uses a temperature and motion signals to operate the
device, as long as it meets the said signals it will automatically function. Plus, an
additional charging port, since most of the students often use gadgets and that usually get
drained fast, not only for the automatic fan but for charging purposes also.
patients will not any more exert effort just to turn on the electric fan with the right
temperature and motion, it will automatically switch. Together with an extra charging
system to those who have drained phone batteries while waiting to their patients.
4
Person with Disability (PWD). Providing help to those who are disabled, to
improve their quality of life. To lessen their effort and feel the freshness of the air
Researchers. This study could help the researchers to improve their skills
especially in the design and improve their capability in decision making as a future
Engineer. The study also improves social skills by meeting experienced professionals
This study aims to develop an electric fan that will automatically switch on/off
when motion is applied to the 3D gesture motion sensor within a range of 12 inches. To
automatically change the speed level of the electric fan based on the environment
temperature. To operate the electric fan with the use of wirelessly connected android
phone through bluetooth connection with a maximum range of 50 meters within direct
line of sight and displays the current temperature of the room. The device together with
the electric fan has only a limited length of 3 meters from device to electric fan. By the
use of the Android phone, it is possible to control the fan in a distant by connecting the
android phone to the Bluetooth of the device. The device can also be controlled manually
by just turning the toggle switch to its manual mode operation. This innovative study is
intended for the use of students in every classroom with specified dimensions.
Definition of Terms
In order to have a clearer understanding of the study, the following terms are
operationally defined:
and user community that designs and manufactures single-board microcontrollers and
microcontroller kits for building digital devices and interactive objects that can sense and
control objects in the physical and digital world (David Kushner, 2011).
operating equipment such as machinery, processes in factories, boilers and heat treating
ovens, switching on telephone networks, steering and stabilization of ships, aircraft and
Battery Bank -is a device consisting of one or more electrochemical cells with
smartphones. When a battery is supplying electric power, its positive terminal is the
cathode and its negative terminal is the anode (Kiran Deware, 2015).
such as mobile phones, computers, and peripherals to transmit data or voice wirelessly
over a short distance. The purpose of Bluetooth is to replace the cables that normally
connect devices, while still keeping the communications between them secure ((Melanie
Pinola, 2010).
sensor. It uses a capacitive humidity sensor and a thermistor to measure the surrounding
air.
power into direct current electrical power. Dynamo is essentially just another name for
Electric fan- is a powered machine used to create flow within a fluid, typically a
gas such as air. A fan consists of a rotating arrangement of vanes or blades which act on
the air. The rotating assembly of blades and hub is known as an impeller, a rotor, or a
runner. Usually, it is contained within some form of housing or case. This may direct the
airflow or increase safety by preventing objects from contacting the fan blades
(Needham, 1986).
8
circuit. In modern terminology, it is similar to, but less sophisticated than, a system on a
based, digital integrated circuit that accepts binary data as input, processes it according
contain both combinational logic and sequential digital logic. Microprocessors operate
on numbers and symbols represented in the binary number system (Krishna Kant, 2010).
can be embedded in machines to allow for operation without detailed knowledge of their
workings. The simplest form of technology is the development and use of basic tools
(Liddell, 1980).
electronically. Relays control one electrical circuit by opening and closing contacts in
another circuit. As relay diagrams show, when a relay contact is normally open (NO),
there is an open contact when the relay is not energized. When a relay contact is
Normally Closed (NC), there is a closed contact when the relay is not energized. In either
case, applying electrical current to the contacts will change their state.
Relay Module- is a separate hardware device used for remote device switching.
With it you can remotely control devices over a network or the Internet. Devices can be
remotely powered on or off with commands coming from Clock Watch Enterprise
delivered over a local or wide area network. You can control computers, peripherals or
other powered devices from across the office or across the world.
9
a thermometer calibrated in one or more temperature scales. The most commonly used
scales are the Celsius scale, Fahrenheit scale, and Kelvin scale.
into electrical voltage. The thermoelectric effect addresses the science underlying
cooking, heating and cooling as well as the generating of electricity and measuring
temperature.
energy between two or more circuits. A varying current in one coil of the transformer
produces a varying magnetic field, which in turn induces a varying electromotive force
and electrical power. It is composed of semiconductor material usually with at least three
and is mainly used to control indoor air quality by diluting and displacing indoor
USB port - A USB port is a standard cable connection interface for personal
computers and consumer electronics devices. USB stands for Universal Serial Bus, an
10
industry standard for short distance digital data communications. USB ports allow USB
devices to be connected to each other with and transfer digital data over USB cable.
11
CHAPTER II
Related Literature
The world is a storehouse of energy. We all know that energy can neither be
created nor be destroyed but can be transformed from one form to another. But we
are wasting resources that can produce energy as if they are limitless. If we can
renew and Reuse the energy we waste, it would help in some way to the problem of
scarcity of energy, which is the major threat of the present world. By using the
concept of wind turbines wind generated electricity can be used for battery charging
and for connection with the power grid. Beside every fan, there is a tube light by a
mechanism inside the fans motor or a belt that rotates and light up the bulb or store
the energy in a battery which could be used to power up other machines (Saquib
Sensors are sophisticated devices that are frequently used to detect and
(for example: temperature, blood pressure, humidity, speed etc.) into a signal which
can be measured electrically. There are certain features which have to be considered
calibration, resolution, repeatability and lastly is cost. Sensors are classified also into
principles (Using physical and chemical effects), material and technology, property
Motion sensors are used to switch on power only when a human is detected in
the area covered. Technology has advanced enough to differentiate between humans,
animals and other objects during detection. Moreover, controls can be customized to
12
run lighting based on the availability of daylight. Organizations are using these
sensors for highly accurate lighting and another appliances’ control. Use of PIR
motion sensors in your office space can cut your electricity bill by up to 30 per cent,
depending on factors like the area covered, the frequency of electricity usage in the
covered area, load devices that the sensor is connected to and so on. PIR sensors
themselves draw less than one watt of power per hour in idle situation, so their own
electricity consumption does not impact the bill at all (Saad, 2013).
Direct Current (DC) inside the alternator. This is because all modern automobiles
powered by the rotation of the engine. This belt goes around a pulley connected to
the front of the engine's crankshaft and is usually responsible for driving a number of
other components including the water pump, power steering pump and air
conditioning compressor. For the most part, alternators are relatively small and
lightweight. Roughly the size of a coconut, the alternators found in most passenger
cars and light trucks are constructed using an aluminum outer housing, as the
lightweight metal does not magnetize. This is important since aluminum dissipates
the tremendous heat generated by producing the electrical power and since the rotor
The speed of fan will change due to the temperature of environment. The
speed of fan had been controlled by the output of Microcontroller PIC 16F877A.
The PWM signal on output Microcontroller had been settled in the different duty
cycle due to different temperature detected from temperature sensor (Hussain, 2018).
The PIR sensor response is very fast in which the fan will turn on as there is
motion detected. However, the limitation of the system is found where the fan will
13
turn off if the person that the PIR detected earlier is not moving. The fan will turn on
again if there is motion made by the user even with small movement for example
Pyroelectric (PIR) motion sensor consists of two main parts. Each of these
parts include a special material that is sensitive to infrared radiation. In this case, the
lens is not particularly affecting the operation of the sensor, so that we see two
sections of the entire module sensitivity. When the sensor is at rest, both sensors
determine the same amount of radiation. For example, it may be building radiation
crosses the first sensor sensitivity zone. Whereby two different values of the
radiation are generated in the PIR sensor module. When a person leaves the
sensitivity zone of the first sensor, the values are aligned. Then changes in the
readings of the two sensors are recorded and HIGH or LOW pulses are generated on
Passive Infrared Sensor (PIR) module is used for motion detection. It requires
10-60 seconds of settling time before starting its operation. It consists of pyroelectric
sensor that detects motion by measuring change in the infrared levels emitted by the
material from which it is made. Thermistors are broadly divided into 2 categories:
resistors which alter their resistance characteristics with temperature. The resistance
14
of NTC will decrease as the temperature increases. Many N.T.C thermistors are
made from pressed disc, rod, plate, bead, or cast chip of semiconducting material.
They work because raising the temperature of a semiconductor increases the number
of active charge carriers. It promotes them into conduction band. The more the
charge carrier that are available the more the current a material can conduct.
resistance with decrease in temperature. Most P.T.C thermistor are made from doped
unique property of this material is the sharp increase in resistance at certain critical
(Adeloye, 2017).
Related Studies
detects the presence of a human in a predefined area and can turn on the lights, fans
or any electrical appliances that we want. The device will automatically turn off the
lights, fans or electrical appliance if nobody is present in the area. PIR sensor is used
to detect the presence of a human. PIR is consist of IR sensors which are used to
detect the heat of the human body and if the presence of a human is detected then the
electrical appliances connected to this automatic switch will automatically turn on.
They used Arduino mini pro to control the PIR sensor while relay modules are used
to reduce the electricity bill from the increase of energy efficiency, abundance in
15
availability of energy being the main factor in Indonesian high energy consumption
habits. High electricity demand for consumption at current supply level in Indonesia
led to the rising cost of electricity bills. This factor is compounded by the fact that
many electric generators in Indonesia still use fossil fuels, which contributes to the
the energy efficiency. Although mostly common in developed countries, the use of
motion sensors for energy efficiency is still rare, especially in Indonesia. Despite
rising cost and supply shortages, Indonesian buildings are still of high energy
available motion sensors can contribute to reduce the electricity bill from the
increase of energy efficiency. One of the efforts to lower energy demand on the
consumer side is to use the electricity efficiently, such as turning off lights in a room
when it is not in use. This method can be simply done by turning the light switches
for office and classrooms, but difficult to do in public spaces such as toilets and
relay switch to automatically regulate the speed of the electric ceiling fan, creating
breeze to enhance convective heat transfer. The developed household electric fan
automatically changes speed in five different ascending levels with respect to the
device makes it suitable for users who may not be able to access the manual electric
Depending on the temperature of the environment, the fan automatically regulates its
16
speed, making the device safe for sleeping, very convenient for patients in the
hospital, infants and all users. The aero foil of the cross section of the applied
blades, the smooth and even three blades, the length and width of the blades all
improved the air velocity distribution of the device. The developed temperature-
20% using enhanced blades designed with due consideration to fan aerodynamics.
The ceiling fan blades spin with reduced noise and created uniform flow pattern
The world is a storehouse of energy but we are just wasting resources that can
produce energy as if they are limitless. If we can renew and reuse the energy we
waste, it would help in some way to the problem of scarcity of energy, which is the
major threat of present world. By using the concept of wind turbines Wind-generated
electricity can be used for battery charging and for connection with the power grid.
Beside every fan there is a tube light by a mechanism inside the fans motor or a belt
that rotates and light up the bulb or store the energy in a battery which could be used
to power up other machines. The rotational energy of the dynamo, can be used to
operate several small powered devices. Both dynamo and alternator can be used. The
various applications where this power can be used are charging of laptops, cell
The Power Fan works on the principle of generator. It works on the faraday’s
law of electromagnetic induction. The law state that, When a electrical conductor
placed in the strong magnetic field and when the magnetic lines of force cuts the
conductor then EMF is induced on the surface of the conductor. He assembled the
copper winding on the shaft of the fan which is connected to the ceiling. This copper
winding acts as a conductor. The copper winding is place in the circular way and
17
around which strong magnets are place in circular way as like winding. Strong
magnets are connected to the rotating disc of the fan (the disc to which blades of the
fan are connected). As this disc is rotating magnets also rotates and rotating
magnetic field (RMF) is produce. This RMF cuts the copper winding and EMF is
is an interaction between the copper winding and RMF due the mutual induction,
EMF can be generated on the copper winding. In this way we can generate electrical
power by fan. The generated EMF is carrying by wires and stored into the battery
(Deshmukh, 2016)
18
CHAPTER III
METHODOLOGY
fan. Through this, we will be able to test and to develop an automatic system that
Research Procedure
Research Locale
The main location of the research is at Eastern Visayas State University, Main
Campus, Tacloban City. The Eastern Visayas State University (EVSU) is a public
university in the Philippines and the oldest higher educational institution in the
Research Instruments
1. Multi-Tester
2. Measuring Tools
3. Sensors
4. Calibration
Toggle
Automatic Automatic
or Manual Manual
Selector
Switch
Motio Temperatur
Read Read
Motion Temp.
Is the
Is there 8 Ye temperature
No Yes No
secs. Of equal or
sensing greater than
motion? 22⁰C?
Relay for
Relay for 220V
220V will turn
will turn Relay for 220V Ye Off
Ye
Off supply will turn
Is there any On
motion being Buzze Is there any
detected which detected
cause the buzzer temperature
to buzz 3 times? below 22⁰C?
No N
For 22⁰C- For 27⁰C- For 33⁰C
26⁰C the 32⁰C the above the
fan speed is fan speed is fan speed
Low Medium is High
Relay for Relay for
220V 220V
will will
remain remain
Generating and
Charging System
Display
END
The figure shows that once a gadget is already plugged into the 220V supply,
the operator may choose on how he will operate the fan, whether in automatic mode
or in manual mode operation. In automatic mode, there are two variables that must
be considered, the motion and temperature. The motion sensor must detect first a
movement for a time period of eight seconds while the temperature sensor must
detect a temperature that is equal or greater than the set temperature which is 22⁰C. If
this condition is not met, then the fan will not operate and it will undergo again on
the reading process or the detection of required movement and temperature. If the
conditions are met, then the fan will operate at a speed which is proportional to the
detected temperature of the specific area. While the electric fan is in operation and
there are moves that are being detected by the motion sensor that causes the buzzer
to buzz 3 times then the fan will automatically turn off, the same also for the
If the operator chooses the manual mode operation, then he will just manually
control the operation of the fan by using the selector switch in turning On/Off the fan
because of the generating system being coupled to the shaft of the fan. And this
generated electricity is being regulated and is used for charging gadgets. The
temperature of the room and the battery percentage of the power bank where the
generated electricity is being stored are viewed in each box that has its own display
component.
22
CHAPTER IV
The test for the device is done by applying motion to the sensor along with the
desired set temperature to be able to operate and give the desired output of the device.
In automatic mode, the fan will operate by first applying motion that requires eight
seconds of detecting motion before it sends the signal to the microcontroller and
triggers the relay which is the main switch in turning on/off the fan. This relay that
serves as the main switch will supply power in either of the three relays when there is a
desired set temperature sensed by the temperature sensor. The fan will not operate if
the current temperature is less than the set temperature which is 22⁰C, and when the fan
is in operation and then there’s a drop of temperature the fan will automatically turn
off. And if the current room temperature is greater than the set temperature, the fan
will operate. It will operate at a low, medium and high speed depending on the
acquired temperature in the room. The device can also be controlled using an Android
phone which serves as a remote that is connected to the Bluetooth of the device. The
The electric fan can be operated manually by just changing the toggle switch in
its manual mode operation. This is to provide the user an option if he or she wants to
There are dynamos that are coupled to the shaft of the electric fan that
generates electricity during the operation of the fan. This electricity is harnessed by a
device which has a circuit that regulates the electricity produced by the dynamo to be
used for charging a power bank that serves as the storage of the generated electricity.
The stored energy in the power bank can be utilized for charging small devices.
Control Device
Charging
System USB Port for
Charging
Display
Motion Sensor
Temperature Sensor
DC Motor
Generator
In using the Android phone to manipulate the operation of the electric fan, first
is to connect it with the Bluetooth of the device. It is done by searching the name of
the Bluetooth of the device and pair it using the pins shown above which are 1234.
Once the android phone is already connected to the device then, a customized
application installed to the android phone can now be open and through it, the current
temperature of the room can be viewed as well as the buttons: Automatic and off, can
Motion. The study conducted a motion test to be able to find out the accuracy of the
motion sensor if it produces desired output for the device to function properly.
27
Functional Nonfunctional
1 second 1 ft.
2 seconds 1 ft.
3 seconds 1 ft.
4 seconds 1 ft.
5 seconds 1 ft.
6 seconds 1 ft.
7 seconds 1 ft.
8 seconds 1 ft.
The table shows that with the maximum distance of 1 ft. that is being applied to
the motion sensor, at 1 second to 7 seconds there is a time delay before the fan to operate
to prevent the things that may easily trigger the sensor when someone passes through or
The applied motion must continue up to 8 seconds of delay within the range of
the sensor to be able to trigger the sensor and operate the fan.
Temperature. The study conducted temperature test to be able to observe the accuracy
of the temperature sensor if it previews exact reading of the temperature and will deliver
the desired signal and make the fun to operate based on the acquired signal.
28
Note that the set temperature that will make the electric fan to operate is 22°C. If
the temperature becomes lower than the set value, then the fan will be nonfunctional, and
if the temperature is greater than the set value the fan will be functional given that if the
detected room temperature is at the range of 22°C to 26°C the fan will operate at low
speed, at a temperature of 27°C to 32°C the electric fan will operate at its medium speed
and above 32°C the electric fan will automatically reach its high speed.
Speed. The study conducted speed test during operation for low speed, medium speed
and high-speed operation of the fan. The test got the corresponding output voltage and
output current (produced by the two dynamos that are connected in parallel with each
other and are coupled to the rotor of the fan) based on the speed operation of the fan.
29
Where; 𝑅𝑃𝑀𝐹 = Revolution per minute of the fan 𝐷𝐹 = Shaft diameter of the fan
dynamo
Given the rpm of the fan for low, medium and high-speed operation and its shaft
diameter of 8mm that is being coupled with 2 dynamos that are connected in parallel,
with a shaft having a diameter of 2.3 mm. Using the formula above that is based on the
principle of belt drive we are able to attain the corresponding rpm of the dynamos. At
low speed operation having a 3687rpm the parallel connected dynamos produce 7.3 V
with a current 60 mA. At medium speed operation having a 4100rpm the parallel
connected dynamos produce 9.3V with a current of 70 mA and at high speed operation
having a 5148rpm the parallel connected dynamos produce 10.02 V having an output
current of 90mA.
Charging. The study conducted charging test to observe if it produces enough current
to supply the power bank, and also to provide source of power that comes from the
Power Bank
Charging
The table shows the comparison of the increase of battery percentage in charging
the power bank using single dynamo and the two parallel connected dynamos with a
constant period of time which is one hour. For the first experiment, a single dynamo is
used and the generated output voltage is being regulated to 5V and a current of 60 mA
which is used to charge the power bank in an hour. The experiment records only 4% of
increase from its current battery percentage. For the second experiment, we used two pcs
of dynamo which are parallel connected to each other to boost the current it produces. It
has also a regulated voltage of 5V and measured current of 100mA. This records of about
Mobile Phone
In a 1-hour period of time of charging the mobile phone using the regulated
power of the two parallel connected dynamos and the phone having a current battery
31
percentage of 10%, an increase 23% is obtained. Meaning from the 10% battery
Distance Test. The study conducted distance test to be able to determine if the
electric fan will still operate at a certain distance through Bluetooth connection using
android phone.
Distance Result
5 Meters Functional
10 Meters Functional
15 Meters Functional
20 Meters Functional
Through the use of an android phone, we are able to control the operation of the
fan in a specific range of distance by just connecting the android phone to the bluetooth
of the device. Based on the experiment, at 5 meters of distance from the device the fan
still operates properly, and also for 10, 15 meters. For 20 meters the use of android phone
still functional but there is a delay in receiving the signal to the device.
Product Limitations:
The study found out some limitations of the device based on the direct
1. The device will still operate properly regardless of sudden changes of temperature
2. Sensing the motion takes time and also requires limited sensing distance of 1 ft. to
3. Electricity is produced by the dynamo that is being regulated and delivers to the
storage bank. The storage bank charges faster up to 6% of battery and when it reaches
the said percentage the current generated from the dynamo will become insufficient to
CHAPTER V
This chapter presents the summary of the study based on the results presented, the
conclusion made and some of the recommendation for the improvement of the device.
Summary of Findings
1. This device energy generating electric fan with motion and thermal sensor
for charging small gadgets, senses the motion and temperature sensor and also generates
power.
2. The device attained the intended preview status of the temperature scanned
3. After the experiment was done, there were limitations that were recorded
through the conduct of direct observations of its functionalities. These are the following.
3.1 After hours of operation, the electric will heat up, because the
mechanical load applied to the shaft is not enough to match the torque of
the fan.
3.2 The temperature sensor that records the current status of the room and
is being viewed on the android screen is somewhat not accurate and has a
delay.
3.3 Power generated by the dynamo has sufficient voltage but has an
insufficient current.
34
4. In turning on the electric there is a delay before the sensor sends signal and to
be able for the electric fan to operate. After turning off the electric fan, and planning to
turn on the fan the operator must wait for about 1 minute before applying motion
Conclusion
Based on the findings of the study, the following conclusions are drawn:
1. The energy generating electric fan with motion and thermal sensor for
charging small gadgets that uses motion and temperature variables is much a convenient
way of controlling the operation of the fan compared with the normal electric fan.
of motion, temperature, speed and charging. But still there are some errors encountered
during tests specially in generating system that produces desired voltage but insufficient
much expensive than the normal electric fan but it has features that the normal electric
fan doesn’t have, like an automatic mode which has the ability to operate the device by
the use of sensors. It has a manual drive which uses the android phone that serves as a
remote connection to the Bluetooth of the device for the purpose of controlling the on
and off switch of the fan in distance. It also can generate power that is stored in a power
Recommendation
Though the project has been proven to meet the required functionalities, there is
1. Use of high mechanical load dynamo that is applied to the shaft of the electric
2. Use single but high current rating dynamo is advised to be able to charge the
power bank.
4. Use of accurate but larger reach of motion sensor in operating the electric
fan.
5. To decrease the required temperature into 22°C for the low speed operation
of the fan.
BIBLIOGRAPHY
38
Bibliography
A. Books
William, J.P. (1986); Control Systems Engineering, 2nd Ed., pp. 1-3.
(Needham (1986), Volume 4, Part 2, 99, 134, 151, 233.) Krishna Kant
Microprocessors and Microcontrollers: Architecture Programming and System
Design, PHI Learning Pvt. Ltd., 2007 ISBN 81-203-3191-5, page 61, describing
the iAPX 432.) (Pauling, Linus (1988). "15: Oxidation-Reduction Reactions;
Electrolysis.". General Chemistry. New York: Dover Publications, Inc. p. 539. ISBN
978-0-486-65622-9)
Bai, Y., & Ku, Y. (2008), Automatic room light intensity detection and control
using a microprocessor and light sensors. Retrieved from
https://www.researchgate.net/publication/4348956 Automatic room light intensity
detection and control using a microprocessor and light sensors
Saad, M., Farij, A., Salah, A. and Abdaljalil, A. (2013), “Automatic Street Light
Control System Using Microcontroller,” Retrieved from
https://www.researchgate.net/publication/321319185_Automatic_Street_Light_Control_
System_Using Microcontroller
Md Mozasser Rahman, Mohd Fahrul Radzi Bin Zakaria, Shahrul Na‟im Sidek
(2015). Sensory and Control System for Smart Fan. Retrived from
http://researchpub.org/journal/jac/number/vol4-no3/vol4-no3-1.pdf
APPENDICES
41
APPENDIX A
Bill of Materials
APPENDIX B
Material Specifications
Brief Data:
• Relay Maximum output: DC 30V/10A, AC 250V/10A.
• 4 Channel Relay Module with Opto-coupler. LOW Level Trigger expansion board,
which is compatible with Arduino control board.
• Standard interface that can be controlled directly by microcontroller (8051, AVR, *PIC,
DSP, ARM, ARM, MSP430, TTL logic).
• Relay of high-quality low noise relays SPDT. A common terminal, a normally open,
one normally closed terminal.
• Opto-Coupler isolation, for high voltage safety and prevent ground loop with
microcontroller.
43
Detailed Specifications
44
Connecting
Pins
IR TRANSMITTER IR
LED
RECEIVER
ZX Sensor Pin-out
The ZX sensor board contains two emitters and one receiver module, to determine
the position of a reflector in the Z X space, and is powered externally using a 4-pin
standard 0.025-inch dip connector.
The following is the pin configuration:
1. Pin 1: NC
2. pin 2: Input voltage (5.0 volts DC)
3. Pin 3: RX for connection to an external UART serial transmitter (TX) line
4. Pin 4: TX for connection to an external UART serial receiver (RX) line
5. Pin 5: GND for ground.
6. Pin 6: GND for ground.
7. Pin 7: DR (Data Ready) for the I2C interface.
8. Pin 8: CL (or the SCL) clock signal for the I2C interface.
9. Pin 9: DA (or SDA) data signal for the I2C Interface.
45
ARDUINO UNO
Specifications
Microcontroller ATmega328
Operating Voltage 5V
Input Voltage 7-12V
(recommended)
DC Generator
47
48
APPENDIX C
Program Codes
Arduino Codes
// Global Variables
ZX_Sensor zx_sensor = ZX_Sensor(ZX_ADDR);
GestureType gesture;
uint8_t gesture_speed;
SoftwareSerial mySerial(10, 11); // RX, TX
#define DHTPIN 9
#define DHTTYPE DHT11
DHT_Unified dht(DHTPIN, DHTTYPE);
int relay3 = 3; // declare variables for pins on the Arduino
int relay2 = 4; // declare variables for pins on the Arduino
int relay1 = 5; // declare variables for pins on the Arduino
boolean flag1 = true;
int vctr = 0;
int vctr2 = 0;
void flash()
void setup() {
49
dht.begin();
sensor_t sensor;
dht.temperature().getSensor(&sensor);
uint8_t ver;
dht.humidity().getSensor(&sensor);
delay(300);
digitalWrite(buzzer,LOW);
mySerial.begin(9600);
Serial.begin(9600);
Serial.println();
Serial.println("----------------------------------------");
Serial.println("----------------------------------------");
50
if ( zx_sensor.init() ) {
} else {
if ( ver == ZX_ERROR ) {
} else {
Serial.println(ver);
Serial.print(ZX_MODEL_VER);
while(1);
ver = zx_sensor.getRegMapVersion();
if ( ver == ZX_ERROR ) {
} else {
Serial.println(ver);
if ( ver != ZX_REG_MAP_VER ) {
Serial.print(ZX_REG_MAP_VER);
while(1);
MsTimer2::start();
void loop() {
switch ( gesture ) {
// mySerial.println("No Gesture");
delay(1000);
flag1 = true;
digitalWrite(relay1,HIGH);digitalWrite(relay2,LOW);digitalWrite(relay3,HIGH);
flag1 = false;
break;
53
digitalWrite(relay1,LOW);digitalWrite(relay2,LOW);digitalWrite(relay3,LOW);
else if(inChar == 'H') //if data fetched from app is “H” (means HIGH or
ON)
digitalWrite(relay1,HIGH);digitalWrite(relay2,LOW);digitalWrite(relay3,LOW);
digitalWrite(relay1,HIGH);digitalWrite(relay2,LOW);digitalWrite(relay3,HIGH);
flag1 = false;
digitalWrite(relay1,HIGH);digitalWrite(relay2,LOW);digitalWrite(relay3,HIGH);
flag1 = false;
digitalWrite(buzzer,HIGH); //pin 7 on
flag1 = true;
sensors_event_t event;
if(
//Serial.println(event.temperature);
if(event.temperature> 21 && event.temperature < 27){ //if temp is greater than 22 and
less than 27
digitalWrite(relay1,HIGH);digitalWrite(relay2,LOW);digitalWrite(relay3,LOW);
if(event.temperature> 26 && event.temperature < 33){ //if temp is greater than 26 and less
than 33
digitalWrite(relay1,HIGH);digitalWrite(relay2,HIGH);digitalWrite(relay3,LOW);
//delay(50000);
digitalWrite(relay1,HIGH);digitalWrite(relay2,LOW);digitalWrite(relay3,HIGH);
//delay(50000);
56
//Serial.print("Humidity: ");
//Serial.print(event.relative_humidity);
//Serial.println("%");
#End Region
57
#End Region
Sub Process_Globals
'These global variables will be declared once when the application starts.
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
End Sub
'Do not forget to load the layout file created with the visual designer. For example:
End If
End Sub
59
Sub Activity_Resume
End Sub
ast.close
End If
End Sub
End Sub
lbldata.Text = temp //change text lbl data with the value of variable
temp
Try
lbldata.Text = str.SubString(4) //change text of lbl data text to the 5th letter of str value
End If
End If
Catch
Log("Errr")
End Try
End If
End Sub
Log(LastException)
End If
End Sub
Sub mnuOpenComm
Dim l As List
l.Initialize
l.Add(PairedDevices.GetKeyAt(i))
Next
End If
End Sub
Sub mnuCloseComm_Click
ast.close
End If
End Sub
End If
End Sub
End If
End If
End Sub
End If
End If
End Sub
Try
Catch
Log("Error")
End Try
Try
Catch
65
Log("Error")
End Try
End If
End Sub
End If
End If
End Sub
66
APPENDIX C
Pictures
67
68
APPENDIX D
Curriculum Vitae
PERSONAL BACKGROUND
Gender: Male
Citezenshp: Filipino
PARENTS
EDUCATIONAL BACKGROUND
Motto: “Matter what happen in life, keep a good heart. Don’t let the darkness of
this world harden your heart.”
69
PERSONAL BACKGROUND
Gender: Male
Citizenship: Filipino
PARENTS:
EDUCATIONAL BACKGROUND
PERSONAL BACKGROUND
Gender: Male
Citizenship: Filipino
PARENTS:
EDUCATIONAL BACKGROUND
PERSONAL BACKGROUND
Alangalang Leyte
Gender: Male
Citizenship: Filipino
PARENTS:
EDUCATIONAL BACKGROUND
Training Attended: On the Job Training at LEYECO III, Tunga Leyte May - June
2018
72