Write Up 2
Write Up 2
INTRODUCTION
In general, electric circuit systems have modernized our world in ways never thought possible
before the discovery of electricity. 20th century inventors such as Thomas Edison and Nikola
Tesla can be thought of as the figureheads that have pushed us to this era and it is easy to see that
their hard work will have a ripple effect for generations to come. Before the invention of
electricity, little could be done after the sun came down and the light sources that were there,
though they sufficed for a time, were unreliable in their safety and such like things. Electricity
did not just bring light to homes; it also powered most machines that lead to the now famous
industrial revolution, thereby revolutionizing the way people lived. A very important facet of the
industrial revolution is the lighting of the houses and various rooms. For purposes of home
wiring, automation has often proved to provide the essential requirement of enabling lighting
prospects for the various working environments. In the various home environments, nowadays,
there is demand for Voice controlled switch systems, through which, one can easily manage the
different electric appliances by the use of the voice. Initially, voice enabled lighting system was
designed for the people seeking luxury and sophisticated home (Rodden & Benford, 2010). But
there was always a need to develop Voice controlled lighting system for the people with special
needs like elderly and disabled. According to the report published by the WHO, around 785
million people of 15 years and older live with disability, of these, the world health survey reports
that 110million people have significant difficulties in function. In order to assist the old people
and the people with disability, automation technologies are adopting voice controlled or voice
recognition systems (Cook & Das, 2011). The main idea is to control and monitor home lighting
1
by using speech recognition. Currently, the Voice controlled products are only limited to the use
sophisticated instruments. As a result, the motivation to build a simple system that can control
the on and off properties of various lights of the room becomes of essence. It is impossible for
any users to understand the instructions or algorithm of programming. What they can do is
control the elements with human languages and signal of body. Therefore, the users require the
system to identify the human languages instead of machine instructions or other 2 programming
languages. The main goal of the project is to bring the right kind of convenience to the living
space of the individuals and in the process, provide the interaction with the home living
environment. In that accord, it is quite clear that the people living with disabilities have a hard
time maneuvering in the house for purposes of lighting the various lighting switches. Thus, the
purpose of the design is to change the lighting conditions of the house in accordance with the
mood of the people in the house who live with disabilities. The project therefore considers the
use of voice in the various homes of residence. For use with computers, analog audio must be
converted into digital signals. This requires analog to digital conversion. For a computer to
decipher the signal, it must have a digital database, or vocabulary, of words or syllables, and a
speedy means of comparing this data with signals. The speech patterns are stored on the hard
drive and loaded into memory when the program is run. A comparator checks these stored
patterns against the output of the A/D converter. In practice, the size of a voice-recognition
program's effective vocabulary is directly related to the random access memory capacity of the
computer in which it is installed. A voice-recognition program runs many times faster if the
entire vocabulary can be loaded into RAM, as compared with searching the hard drive for some
of the matches. Processing speed is critical as well, because it affects how fast the computer can
search the RAM for matches. All voice-recognition systems or programs make errors. Screaming
children, barking dogs, and loud external conversations can produce false input. Much of this can
2
be avoided only by using the system in a quiet room. There is also a problem with words that
sound alike but are spelled differently and have different meanings -- for example, "hear" and
"here." This problem might someday be largely overcome using stored contextual information.
However, this will require more RAM and faster processors than are currently available in
personal computers. Through, the use of the voice therefore, many of the projects related to
automation can be achieved easily to bring about easier life projects. Even though the technology
is developing in our day to day life, there is no help coming into existence for the people who are
physically not good on the basis of technology. As the speech enabled, home automation system
deploys the use of voice to control the devices. It mainly targets the physically disabled and
elderly persons. The home automation will not work if the speech recognition is poor. The
speech given by the user will be given as input to the Microphone. Microphone recognizes the
speech given by the person and sends it to the recognizing module. It searches for the nearest
word even if there are any disturbances in it. If the command (ON/OFF) is given, the action is
done. Similarly, the line following robot functions with respect to the speech commands given to
it. The line following robot moves forward and backward with the help of sensors and a motor
driver board. Home is the place where one desires to be rest after a long tiring day. People come
home exhausted after a long hard-working day. Some are way too tired that they find it hard to
move once they land on their couch, sofa or bed. So, any small device/technology that would
help them switch theirs lights on or off, or play their favorite music etc. on a go with their voice
with the aid of their smart phones would make their home more comfortable. Moreover, it would
be better if everything such as warming bath water and adjusting the room temperature were
already done before they reach their home just by giving a voice command. So, when people
would arrive home, they would find the room temperature, the bath water adjusted to their
suitable preferences, and they could relax right away and feel cozier and rather, feel more
3
homely. Human assistants like housekeepers were a way for millionaires to keep up their homes
in the past. Even now when technology is handy enough only the well to do people of the society
are blessed with their new smart home devices, as these devices costs are a bit high. However,
not everyone is wealthy enough to be able to afford a human assistant, or some smart home kit.
Hence, the need for finding an inexpensive and smart assistant for normal families keeps
growing.
In the present day, traditional (manual) method of switching is limited to only physically fit
persons. Through a report of the how many Nigerians are faced with different forms of
disabilities, it becomes quite important to come up with a system that can effectively provide for
easier home and work experience. Thus, the objectives of this project. Considerably, a very
important point of disability that has for a long time been confirmed is that of the older people.
This type of disability makes the people affected not to work on their tasks effectively hence the
lack of agility and mobility for the various 3 working experiences. Moreover, with the rising
levels of lifestyle diseases, it is quite significant to note that most of the people above the age of
twenty are constantly reporting mobility related issues. Out of all these adults, others are born
with the inability to effectively walk or coordinate within various room environments. Of all
these, others do not really get the chance to get the most effective gain out of the available
technology. There is, therefore, need to have a Voice controlled lighting system for the elderly
Example
At the point when Steve O'Hear moved into his new home in London fifteen years back, he
couldn't kill the lights on and: The switches were past his span. O'Hear utilizes an electrical
4
wheelchair, and despite the fact that the switches were fabricated lower than common to suit
him, they were still too high. For a considerable length of time, he needed to depend on another
person to turn the lights on - that is until he introduced Internet-associated lights that he could
Brilliant homes, loaded down with cutting edge apparatuses that can be controlled remotely, are
being proclaimed as the influx without bounds. They're additionally a potential distinct
PROPOSED SOLUTION
The Voice controlled lighting system uses voice recognition python programming language to
articulate the voice of the person speaking and effectively come up with the command to enable
the person control the lighting system effectively. Throughout the project design and
programming language while at the same time integrating the python program and libraries in the
ultimate design of the required software. Of essence is the use of the various vocabulary
templates that would include specific words and phonemes. In the end, there would be a user
aspect of the voice recognition system that would control the lighting of the house by the
manipulating of the relay board. Through the use of the relay board, the control of the various
lights of the house would be easier. Through the web server we can instruct the microcontroller
to switch on/off the lighting system. After getting the instruction through the Wifi module the
microcontroller gives the signal to the relay board. The relay then turns the lights on/off
depending on the voice commands from the user. When a low voltage signal is given to the
relay, the lights are turned off and when a high voltage signal is given it is turned on.
5
1.3 AIMS AND OBJECTIVEs
Aim:
The complete Voice controlled lighting system should be able to turn the lights ON/OFF in a
Objectives
To use Wifi connection to control the lights via a web server from anywhere in a room.
To use a relay board to control the switching on and off of specific bulbs and fan.
This study aims controlling of lighting system in a home by the use of our voice. The user need
not to have an immense knowledge over the language of English. Just by saying the lighting
point name and the corresponding command assigned to that particular point, and telling it to
turn on or off will enable the user to have complete control over the lighting system without any
effort. This system, though primarily aimed to reduce human effort, will be of much importance
to the elderly and persons with disabilities. It will enable them to control their lighting system
6
with ease, without going through much pressure or stress of moving about. Moreover, the entire
system is very flexible and scalable. Any number of lighting points can be added as and when
required. Henceforward, 46 the systems find use not only in houses but also in many offices
where appliances such as fans or lights on multiple floors can be controlled by a person on any of
the floors, saving manual labour and human effort to switch on or off the electronic appliances,
thereby saving time. Due to the inexpensive materials used in the construction and further cost
optimization if the device is taken to the market, it finds application in a wide area. Scalability of
the project would be considerably easier as the device can be used in every building using
This field of home automation is Fastly emerging in technology making homes safer and better
places to live. These features help users to virtually monitor and control home attributes like
VOICE CONTROL: also called voice assistance, is a user interface that allows hands-free
operation of a digital device. Voice control does not require an internet connection to work.
Communication is one way (person to device) and all processing is done locally.
SMART HOME TECHNOLOGY: refers to a suite of devices, appliances or systems that tap
into a common network and that you can control independently via a remote control or voice
control. For example, you can have your home’s thermostat, audio speakers, TVs, lights,
security, locks and appliances all connected to the smart home network.
7
YORUBA LANGUAGE: is probably the most scholastically studied indigenous west African
language, which makes it one of the easiest African Language to learn. Yoruba is one of the
three main Language spoken in Nigeria; the most populous country in Africa.
RELAY: A network of actuators that switches the lights connected to it on or off. It performs the
ESP: It wirelessly receives speech commands as the input from the Android device’s speech
recognition application and activates the relay according to the command. It is the brain of the
ARDUINO UNO: The Arduino UNO is categorized as a microcontroller that uses the
ATmega328 as a controller in it. The Arduino UNO board is used for an electronics project and
websites and software, automate tasks, and conduct data analysis. Python is a general-purpose
language, meaning it can be used to create a variety of different programs and isn't specialized
8
CHAPTER TWO
LITERATURE REVIEW
A smart home refers to a convenient home setup where appliances and devices can be
automatically controlled remotely from anywhere with an internet connection using a mobile or
other networked device. Devices in a smart home are interconnected through the internet,
allowing the user to control functions such as security access to the home, temperature, lighting,
and a home theater remotely. Smart homes can feature either wireless or hardwired systems or
both wireless systems are easier to install. Putting in a wireless home automation system with
features such as smart lighting, climate control, and security can cost several thousand dollars,
making it very cost-friendly. The downside to wireless systems is you likely need strong Wi-Fi
coverage and broadband service throughout your entire house. This may require you to invest in
range extenders or hardwired wireless access points. Wireless smart home systems are generally
more appropriate for smaller existing homes or rental properties due to their smaller size.
Hardwired systems, on the other hand, are considered more reliable and are typically more
difficult to hack. A hardwired system can increase the resale value of a home. In addition,
hardwired smart home systems can easily be scaled; therefore, it is often the default method
when designing a new build or performing a major renovation. There is a drawback—it's fairly
expensive. Installing a luxury and hardwired smart system can cost homeowners tens of
thousands of dollars. In addition, you must have space for network hardware equipment
including ethernet cables. Smart homes can choose to have smart speakers, lights, thermostats,
9
doorbells, or home hubs. Smart technology can also extend to kitchen appliances or outdoor or
landscaping equipment. New innovations are continually evolving what is in a smart home.
Smart home technology has long been the subject for futurists predicting robot butlers and the
like. While we may not have “The Jetsons” style tech available to us just yet, smart home
technology has come a long way in recent years. Let’s take a look back at the journey of smart
home technology, uncover some of the trends in this industry’s development, and take stock of
Smart home technology, as we know it today, began in 1975 with the invention of X10. X10 is a
devices and control modules installed in the home. While advanced for their time, these systems
tended to be expensive and often required professional installation. X10 opened up the
possibility of remote control for hundreds of devices. But it had many problems. It was slow,
completely unencrypted, and unreliable due to signal loss and interference. If your neighbour had
an X10 system, it’s possible they could end up turning your lights on and off as well as their
own!
In the early 2000s, wireless technologies such as Z-wave and Zigbee unlocked previously
impossible smart home capabilities. With no cables to route through walls, smart homes were
now for the DIY crowd. This era saw a proliferation of competing standards and even more
proprietary, incompatible systems, but it also marked the first steps towards security in the smart
10
home. Both Zigbee and Z-wave have supported encrypted communication since the
beginning.Despite the competing standards of this era, the Z-Wave alliance remains a great
example of companies working together to promote interoperability. There are now thousands of
certified Z-wave devices on the market, which all work together by design.
Smart home systems today are more open to the end user than ever before. While the smart
homes of yesterday were expensive, rigid systems, smart home systems today can be quite
budget friendly and extendable by the end user. The DIY community of smart home enthusiasts
has grown rapidly in this current era, with open source projects, such as openHAB and Home
Assistant showing how open source software can be a perfect match with the smart home.
Despite all of these advances, smart home technology is still criticized for its lack of universal
standards, its unreliability, and the spotty security of devices and hubs that are all too often
released only to be left unmaintained and unsupported. In a business where margins can be low,
the cost of supporting devices in the field can be too high. Devoting software engineers to
maintaining and patching existing software is expensive. Using a secure, reliable OS like Ubuntu
Core can reduce those maintenance costs, and free engineers up to focus on R&D instead of
maintenance.
1. Smart Lighting Solutions You might not realize it, but smart technology has integrated nearly
11
3. Smart Home Appliances.
3. Security System.
i. Costs
12
CHAPTER THREE
METHODOLOGY
3.1 PREAMBLE
This chapter presents full explanation and description of how the project will be carried out and
the procedures and techniques involved in the system design. In order to achieve this, System
Development Life Cycle (SDLC) model will be adopted and this involves the following stages.
i. System Investigation
v. System Testing
Before the commencement of this project, the existing system was carefully investigated. It was
observed that most processes of the department are done manually and some information is not
13
readily accessible to the students or website visitors. So, an automated is needed to make the
This is another stage of the development where extensive work was carried out on the problem of
The existing system was a manual one. Whatever be the process involved in the system were
done manually. There were lot of complexities involved in the system. Its not easy to use for
When controlling electronics manually, there are several common problems that can arise:
1. Human Error: Human error is one of the most common problems faced when controlling
electronics manually. An individual operating the electronics may accidentally press the wrong
button or enter the wrong command, which can result in incorrect or unintended actions.
2. Limited Precision: Controlling electronics manually can be imprecise, particularly when trying
to make very fine adjustments. This can be problematic in situations where precision is critical,
3. Limited Speed: Manual control of electronics can also be slower than automated control. This
can be a problem in situations where quick and precise actions are necessary.
14
4. Limited Range: Depending on the complexity of the electronics being controlled, manual
control may not be able to access the full range of functions available. This can limit the
usefulness of the electronics and prevent them from being used to their full potential.
5. Safety Concerns: Depending on the type of electronics being controlled, manual operation can
pose safety risks. For example, operating high-voltage electrical equipment or handling
6. Fatigue: Manual control can also lead to operator fatigue when the task is repetitive and
requires sustained attention over time. This can increase the likelihood of human error and
reduce productivity.
Overall, automated control systems can help to overcome these problems by providing more
The new system titled “VOICE CONTROL HOME AUTHOMATION SYSTEM IN YORUBA
LANGUAGE” was hence proposed to remove all the drawbacks discussed above. Information is
a vital ingredient for the operation and management of any organization. Thus any system should
have the ability to provide error free filtered information after processing the required data. This
system as been taken up with a view for developing a more sophisticated system that can be
easily handled by any kind of users. The proposed system aims at efficient and timely
information for decision-making, integrate with other functions and reduce redundant work.
Planning: This is the initial stage where the approach to the project was determine which was a
backward design approach that places more focus on the student that the lecturer’s.
15
Software Design: This stage require the use of prototyping tool in other for the project to be a
product of creativity and to be affirmative. This process involved the use of a design tool called
visual code to design the layout of the project and Arduino uno to give instruction to the system.
Development: The purpose of this stage is to convert the system design prototype into working
information system that addresses all documented system requirements. At this stage the project
was developed with the use of web technologies like HTML, CSS, PYTHON AND C++.
Testing: At this stage the developed system was tested to ensure that it meets the design
requirements. Two levels of testing were carried out program testing. The program test was
carried out to test the performance of the code written for each of the module of the system while
the system testing was carried out to test how the modules of the system where working together.
Landing page
This is the phase where each code written for each function in the system was tested in order to
check for bugs and to ascertain that it gives the desired result. The software will be tested with in
order to evaluate its compliance with the specified requirement. This will be done through the
use of properly selected input data to ensure reliability and accuracy of output. All varying data
which will be used in testing the system’s performance gives the assurance that the new system
16
These are tools that are necessary for the workability of the proposed system: these tools are
i. Laptop or Smartphone
v. Wooden Box
vi. MODEM
vii. BOLB
x. Battery
i. C++
ii. PYTHON
iii. HTML
iv. CSS
17
3.3 Flowchart for the developed system
18
START
Voice
detection
Detected?
Signal to
microcontroller
End
19
Start equipment
<<include>>
Connecting equipment
User
<<include>> Arduino
Control equipment
20
CHAPTER FOUR
A voice-controlled home automation system is a smart home solution that allows you to control
various devices and appliances in your home using voice commands. The system typically
consists of a central hub or controller that connects to your home's Wi-Fi network and
communicates with various smart devices such as lights, thermostats, security cameras, and
entertainment systems. You can control the system using your voice through a smart speaker or
other compatible device that is integrated with the system. You can issue commands to turn on or
of flights, play music or videos, and perform other tasks by simply speaking out loud. The
system can also be programmed to perform certain actions automatically, based on specific
triggers or schedules. For example, you could set the system to turn off all the lights in your
home when you leave for work in the morning, or to adjust the thermostat to a certain
temperature at a specific time of day. Voice-controlled home automation systems are designed to
be user-friendly and intuitive, making it easy for anyone to control their home's smart devices
and appliances with minimal effort and with their native language.
Laptop
21
ANDRIOD
1. HTML
2. CSS
3. PYTHON
4. C++
22
4.3 Output
Every routine and sub-routine used in the system will be display in the appendix
23
Fig 4.2: Front View of the System
24
CHAPTER FIVE
5.1 SUMMARY
The project is to build a Voice Control Home Automation System Using Microcontroller ESP
and Relay module. This project utilizes a microcontroller and Relay module. A microcontroller
So in this system the microcontroller controls the function of the lights. Relay module is an easy
to use Wireless Fidelity (WIFI), designed for transparent wireless serial connection setup. This
5.2 Conclusion
The Voice Controlled Lighting System was built and implemented successfully. The system is
specially designed for the persons with special needs and the elderly. The use of voice
commands eliminates the need to use remote controllers and other electronic device, such as the
manual switch, and makes it easy to interact with the system to perform automation and control
of the lighting system. The system is highly flexible and scalable since it can use other means of
wireless transfer to the microcontroller other than Bluetooth and can be designed to switch as
5.3 Recommendation
Expanding the project with security sensitive functionality on the voice application would
introduce the need for some type of user authentication. Only a specific user should be able to
issue voice commands. One way to implement this security would be to use speaker
25
identification which is the process of determining the identity of a speaker. This process would
give the system the capability of blocking access to the voice commands from unauthorized
users.
26
REFERENCES
A. H. a. C. I., “A remote controller for home and office appliances by telephone,” IEEE
A. M. K. Rupam Kumar Sharma, “Android interface based GSM home security system,” in
B.-R. L. J.-L. P. a. C. J. L. Shih-Pang Tseng, “An Application of Internet of Things with Motion
Balasubramanian, J., & Morton, J. (2018). U.S. Patent No. 9,930,753. Washington, DC: U.S.
Bellia, L., Fragliasso, F., & Riccio, G. (2018). Daylight fluctuations effect on the functioning of
Cook, D., & Das, S. K. (2011). Smart environments: Technology, protocols and applications
27
Furui, S. (2010). Digital speech processing: synthesis, and recognition. CRC Press. GTM, 01
2014.
Harada, Y., Brother Industries Ltd. (2016). Power supply system. U.S. Patent 9,473,015.
Hinton, G., Deng, L., Yu, D., Dahl, G. E., Mohamed, A. R., Jaitly, N., ... & Kingsbury, B.
(2012). Deep neural networks for acoustic modeling in speech recognition: The shared
views of four research groups. IEEE Signal processing magazine, 29(6), 82-97.
Jinsoo Han, Haeryong Lee and Kwang-Roh Park, " Remote-controllable and energy-saving room
K. TWEED, “Efficiency Along for the Ride at the 2014 Consumer Electronics Show,”
And Wellness Based On Wireless Sensors Network And Mobile Technology,” in XVIII
And Wellness Based On Wireless Sensors Network And Mobile Technology,” in XVIII
Mahesh.N.Jivani, “GSM Based Home Automation System Using App-Inventor for Android
Morton, T.D. (2010). Embedded microcontrollers. Upper Saddle River, NJ: Prentice Hall.
Roberts, K. D., & Stodden, R. A. (2015). The use of voice recognition software as a
Rodden, T., & Benford, S. (2010). The evolution of buildings and implications for the design of
29
S. A. A. W. C. a. n. M. V. H. Rozita Teymourzadeh, “Smart GSM Based Home Automation
System,” in IEEE Conference on Systems, Process & Control, Kuala Lumpur, Malaysia,
2013.
Wan-Ki Park, Chang-Sic Choi, Jinsoo Han and Intark Han, "Design and Implementation of
pp.1-6.
Wei, H., Yonghui, D.E.N.G., Ni, Q. and Longyu, C.H.E.N., GE Lighting Solutions LLC(2018).
Yan, M.and Shi,H. (2013). Smart living using Bluetooth-based Android smartphone.
30
APPENDIX A
PYTHON CODE
#include <ESP8266WebServer.h>
#include <ESP8266WiFi.h>
#include <ESPAsyncTCP.h>
//Declaring the pins for controlling the bulb, fan, and lamp
31
const char *ssid = "VOICE_CONTROL";
ESP8266WebServer server(80);
void setup() {
pinMode(bulb, OUTPUT);
pinMode(fan, OUTPUT);
pinMode(lamp, OUTPUT);
Serial.begin(115200);
WiFi.mode(WIFI_AP);
WiFi.softAP(ssid, password);
IPAddress IP = WiFi.softAPIP();
Serial.print("IP ADDRESS");
Serial.println(IP);
server.on("/", baseUrl);
server.on("/bulb_on", bulb_on);
server.on("/bulb_off", bulb_off);
server.on("/fan_on", fan_on);
server.on("/fan_off", fan_off);
32
server.on("/lamp_on", lamp_on);
server.on("/lamp_off", lamp_off);
server.begin();
void loop() {
server.handleClient();
void baseUrl() {
void fan_on() {
fanState = HIGH;
digitalWrite(fan, fanState);
33
void fan_off() {
fanState = LOW;
digitalWrite(fan, fanState);
void bulb_on() {
bulbState = HIGH;
digitalWrite(bulb, bulbState);
void bulb_off() {
bulbState = LOW;
digitalWrite(bulb, bulbState);
34
void lamp_on() {
lampState = HIGH;
digitalWrite(lamp, lampState);
void lamp_off() {
lampState = LOW;
digitalWrite(lamp, lampState);
ARDUINO CODE
#include <ESP8266WebServer.h>
#include <ESP8266WiFi.h>
//Declaring the pins for controlling the bulb, fan, and lamp
35
//Declaring the state's of the devices
ESP8266WebServer server(80);
void setup() {
pinMode(bulb, OUTPUT);
pinMode(fan, OUTPUT);
pinMode(lamp, OUTPUT);
digitalWrite(bulb, HIGH);
digitalWrite(fan, HIGH);
digitalWrite(lamp, HIGH);
Serial.begin(115200);
36
WiFi.mode(WIFI_AP);
WiFi.softAP(ssid, password);
IPAddress IP = WiFi.softAPIP();
Serial.print("IP ADDRESS");
Serial.println(IP);
server.on("/", baseUrl);
server.on("/bulb_on", bulb_on);
server.on("/bulb_off", bulb_off);
server.on("/fan_on", fan_on);
server.on("/fan_off", fan_off);
server.on("/lamp_on", lamp_on);
server.on("/lamp_off", lamp_off);
server.begin();
void loop() {
server.handleClient();
37
void baseUrl() {
// FAN DISPLAY
if (fanState == HIGH) {
html += "OFF";
} else {
html += "ON";
html += "</p>";
color: green;\">ON</button></a></p>";
38
// LAMP DISPLAY
if (lampState == HIGH) {
html += "OFF";
} else {
html += "ON";
html += "</p>";
// BULB DISPLAY
if (bulbState == HIGH) {
html += "OFF";
} else {
39
html += "ON";
html += "</p>";
html += "</body></html>";
`void fan_on() {
fanState = LOW;
digitalWrite(fan, fanState);
server.sendHeader("Location", "/");
40
}
void fan_off() {
fanState = HIGH;
digitalWrite(fan, fanState);
server.sendHeader("Location", "/");
void bulb_on() {
bulbState = LOW;
digitalWrite(bulb, bulbState);
server.sendHeader("Location", "/");
void bulb_off() {
bulbState = HIGH;
digitalWrite(bulb, bulbState);
41
server.sendHeader("Location", "/");
void lamp_on() {
lampState = LOW;
digitalWrite(lamp, lampState);
server.sendHeader("Location", "/");
void lamp_off() {
lampState = HIGH;
digitalWrite(lamp, lampState);
server.sendHeader("Location", "/");
42
APPENDIX B
Step 2: The User will be able put on the bulb/light with their voice (Yoruba Language)
Step 3: The User will be able to put on the bulb/light from a certain distance
43