Professional Documents
Culture Documents
Asg 1
Asg 1
I. PROJECT INTRODUCTION 2
VI. CONCLUSIONS 22
VII. REFERENCES 23
Page 1 of 12
Project Introduction
Design Specifications
Diagram 1.1 shows the design for the project (using a FGPA board to replace the glove)
The IR sensor module will detect infrared wave that send the signal to LEDR1 in the FGPA
board. The LEDR1 indicate that a device from certain distance receive the information from
the IR sensor module that cause the device to become ‘HIGH’
The Arduino GL55 LDR photoresistor sensor module is used to detect light. It is meant for
safety purpose when a blind person is walking in a dark street or a dark area, the glove will
glow up, thus alerting people to the person presence. It was implemented using the LEDR2
in the FGPA board
The Digital Heat Sensor allow the disabled to detect heat when used in a kitchen or near to
hot place. It will alert the user through a buzzer. However, the buzzer was also not working
properly during the demonstration. Therefore, it was replaced with LEDR3 in the FGPA
board.
The HC-SR04 ultrasonic sensor was meant to be used to detect obstacle through ultrasonic
wave. However, the sensor did not work properly during the demonstration
Project Scope
Initially, this project mainly targeted at the blind people. However, through research and
discussion the project has attempt to include a wide variety of group of disabled people that suffer
Page 2 of 12
from other types of disability such as physical weakness, deafness or muted. This project will begin
by implementing safety features for the disabled. Such security features included light glowing
during night, emergency alarm and finally ability to dangerous heat temperature. The glove will
then expand in using smart technology using infrared which demonstrated how the glove is
functioning when reach certain distance with an electronic device. This project will be completed
by 19 December 2018 (Thursday).
Project Risk
The project costing may be more expensive than initially expected
Page 3 of 12
The project may not include all the design module in the proposal due to the lack of time or
the components is not functioning properly.
Project Costing
Total RM 24.70
Page 4 of 12
Diagram 1.2 shows the Gantt chart from 24 September 2018 – 12 November 2018
Diagram 1.3 shows the Gantt chart from 5 November 2018 – 21 December 2018
Design Methodology
Statements of specifications
Page 5 of 12
General Smart Glove Concept:
The buzzer will beep when there were heat detected near the glove
LED will lights up when the glove detects no lights is around for example in a dark rook
The LED will lights up when any of the switch is turned on
The infrared will send an active signal to the electronic device if it encounter a certain
distance between the sensor and the electronic device
State Diagram
Diagram 1.4 shows the state diagram for the behaviour of the device
Design Description
Block Diagram
Page 6 of 12
Diagram 1.5 shows the block-diagram for the design
Page 7 of 12
This is the top-level hierarchy of our design. There are three sub-modules design in it which
are Infrared Sensor, Motion and lightsensor modules. The specific description of the modules will
be explained in detail in the description of sub-module design section. The top-level design is
primarily the overall structure of the design.
Diagram 1.6 shows the result for the infrared sensor module
endmodule
This is the Infrared Sensor module. There are two inputs which are reset and sensor and only
one input which is led. When the reset is high, the led (output) will low. When the reset is low, led
will only light up if the sensor active low. This module shows how to activate a device from a
distance (acting like a remote device)
Motion Modules
Diagram 1.7 shows the result for the motion sensor module
always @*
begin
begin
LEDR = 1 ;
end
end
This is the Motion module that has 10 inputs and 1 output. If any of the switches are active
high, the output will be high. This module is meant to demonstrate the ensure that the glove parts is
working properly.
Page 9 of 12
module lightsensor (reset1, reset2,ldr, tmt,led1,buzz);
input reset1,reset2, ldr,tmt;
output reg led1, buzz;
always@*
begin
if (ldr==1)//when ldr ==1, led==1
led1=1'b1;
if (reset1==1 || ldr==0)
led1=1'b0;
else
led1=1'b1;
end
always@*
begin
if (tmt==1)//when tmt ==1, buzz==1
buzz=1'b1;
if (reset2==1 || tmt==0)
buzz=1'b0;
else
buzz=1'b1;
end
endmodule
This is the lightsensor module with four inputs which are reset1, reset2, ldr, tmt and two
output which are led1, led2. There are two combinational block in this module. The first
combinational block is regarding the light sensor design while the second combinational block is
regarding the heat sensor design. For light sensor , led will light up when it is dark and light down
when reset is active high or the environment is bright. For heat sensor, the buzzer will beep if the
gloves receives a very high temperature and stop when the temperature normalized. These designs
are meant for the safety of the disabled especially blind people when they walk in the night or when
they touch a hot object.
Page 10 of 12
Module sonic(
input clock, echo,output trig,LED,
Diagram 1.9 shows the result for the ultrasonic sensor
output reg distance
);
reg dist_counter;
reg [32:0] us_counter = 0; //Creating a counter in u
reg _trig = 1'b0;
reg _LED = 1'b0;
reg [9:0] one_us_cnt = 0; //1 us
wire one_us = (one_us_cnt == 0);
reg [9:0] ten_us_cnt = 0; //10 us
wire ten_us = (ten_us_cnt == 0);
reg [21:0] forty_ms_cnt = 0; //40 us
wire forty_ms = (forty_ms_cnt == 0);
assign trig = _trig;
assign LED = _LED;
always @(posedge clock) //The ultrasonic logic
begin
one_us_cnt <= (one_us ? 50 : one_us_cnt) -1;
ten_us_cnt <= (ten_us ? 500 : ten_us_cnt) - 1;
forty_ms_cnt <= (forty_ms ? 2000000 : forty_ms_cnt ) - 1;
if (ten_us && _trig)
_trig <= 1'b0;
if (one_us) begin
if (echo)
us_counter <= us_counter + 1;
else if (us_counter)
begin
distance <= us_counter * 340; // / 58 the distance
us_counter <= 0;
end
Page 11 of 12
end
if (forty_ms)
_trig <= 1'b1;
end
endmodule
This is the design module that we have been working on but was never able to be
demonstrated it during the demonstration. This module was meant to turn on the ultrasonic sensor,
however we found that the FGPA board we are using has the limitation when implementing the
sensor without using an Arduino. Due to the Arduino cost and time limitation, the design module
was cancelled. This module was meant for the blind to able to walk through obstacle by detecting
ultrasonic sound that relates to a music player (if there is an obstacle in path). We want to use a
music player so at least the sound is pleasant for the blind and other near the person to heard.
Page 12 of 12