You are on page 1of 16

ARDUINO PROJECT REPORT

(SMART PEDESTRIAN LIGHT)

FACULTY FACULTY OF MECHANICAL ENGINEERING

COURSE
MEC 522 CONTROL ENGINEERING
NAME STUDENT ID GROUP
EFNIE FAREEZ BIN ABD AZIZ 2013675094 EM 241 6B2

MUHAMAD FAKHRUL IZAT ABDULLAH 2013818904 EM 241 6B2

MUHAMMAD SYAZWAN BIN SAHARUDIN 2013635432 EM 241 6B2

MUHAMAD HAFIZUDDIN BIN ISMAIL 2013490396 EM 241 6B2

LECTURERS NAME
PUAN DZULLIJAH BINTI IBRAHIM
SUBMISSION DATE
16 DECEMBER 2015 (WEDNESDAY)
PROGRAM EM 241 BACHELOR OF MECHANICAL ENGINEERING
(MANUFACTURING) (HONS.)
NO. CONTENT PAGE
1.0. TABLE OF CONTENT 2
2.0. ABSTRACT 3
3.0. INTRODUCTION 4
4.0. PROBLEM STATEMENT 5
5.0. METHOD AND EQUIPMENT USED 6 - 12
6.0. RESULT AND DISCUSSION 13 - 14
7.0 CONCLUSION 15
8.0 REFERENCES 16

2
2.0 ABSTRACT

There were times when traffic lights at the pedestrian crossing were ignored by
automobile drivers which often caused accidents and sometimes it can be fatal. A model of
traffic light with pedestrian crossing is built up using LEDs and Arduino circuit. The aim of
this project is to make three colour traffic lights at each end of single road which will allow
traffic to follow in one direction in one time. If the pedestrian light is red, and the sensor
located above the pedestrian lights detects a pedestrian waiting, the traffic lights will turn to
red and the pedestrian could cross the road safely.

3
3.0 INTRODUCTION

Arduino kit is the tool that is used for programming microcontrollers. This is the
tool used for making computers that sense and control more of the physical world than
regular computer behaviour. This kit is unique, fun and DIY equipment toolkit. It consists
of simple microcontroller board, that can be control by some coding and it can make a
physical development to the environment. It also can develop interactive objects, require
an input from variety of switches and sensors, and it will give feedback response from
variety of lights, motors, and other physical output. The simplicity of this kit is the board
can be assembled manually by hand without the need of soldering the part to the board.
The response from the Arduino can be changed by modifying the coding of this particular
software.

4
4.0 PROBLEM STATEMENT

With the number of accident rise each year, we need to care about the safety on the road.
According to the statistics, the number of accident involving pedestrian is increasing in
time. We need to make a ways to decrease the number of accident. The pedestrian light is
an example that we can improve. We also want to care for disable person who want to
cross the road by himself without assisted by anyone. Some places do not user friendly
with the disable person. The usual pedestrian light at Malaysia use button to change the
colour of the traffic light. But it will hard for disable person to do. With the new
technologies invented, the person such as blind man change the light lamp by standing in
the waiting area and the colour will turn.

5
5.0 METHOD AND EQUIPMENT USED

The equipments that are used in our project (Smart Pedestrian Light) are:

NO. FIGURE PART NAME QUANTITY

1 5mm Red LED 2

2 5mm Blue LED 2

3 5mm Yellow LED 2

4 270 Resistor 6

5 Half-size Breadboard 1

1
6 Arduino Uno R3

7 Jumper wire pack 25

6
8 Piezo Buzzer 1

Aluminium Foil
9 2
Sheet

1.

7
EXPERIMENT AND RELEVANT OUTCOMES

The coding for the system is stated as below:

// Project Exhibition Smart Pedestrian Light

intcarRed = 12;
intcarYellow = 11;
intcarGreen = 10;
intpedRed = 9;
intpedGreen = 8;
int button = 2;
intcrossTime = 10000;
unsigned long changeTime;

void setup()
{
pinMode(carRed, OUTPUT);
pinMode(carYellow, OUTPUT);
pinMode(carGreen, OUTPUT);
pinMode(pedRed, OUTPUT);
pinMode(pedGreen, OUTPUT);
pinMode(button, INPUT);

digitalWrite(carGreen, HIGH);
digitalWrite(pedRed, HIGH);

8
void loop()
{
int state = digitalRead(button);
if(state == HIGH && (millis() - changeTime) > 10000)
{
changeLights();
}

voidchangeLights()
{
digitalWrite(carGreen, HIGH);
delay(2000);
digitalWrite(carGreen, LOW);
digitalWrite(carYellow, HIGH);
delay(3000);

digitalWrite(carYellow, LOW);
digitalWrite(carRed, HIGH);
delay(1000);

digitalWrite(pedRed, LOW);
digitalWrite(carRed, HIGH);
digitalWrite(pedGreen, HIGH);
delay(crossTime);

9
for (int x=0; x<10; x++)
{
digitalWrite(pedGreen, HIGH);
delay(250);
digitalWrite(pedGreen, LOW);
delay(250);
}

digitalWrite(pedRed, HIGH);
delay(1000);

digitalWrite(carRed, LOW);
digitalWrite(carGreen, HIGH);
digitalWrite(carYellow, LOW);

changeTime= millis();
}

10
Based on the coding that is made for the traffic light system, the input required for
the system to function is when person were stand on the waiting area and the output is the
display of the LED, the delay time for the LED to blink and the buzzer to sound as the
warning sound for the pedestrian to finish their crossing in 10 seconds. Then, the traffic
light for the vehicles starts to change into green light back. Therefore, the pedestrian can
cross the road safely.

The installation for the wire, resistor, LED and the Piezo buzzer need to be
handled carefully. The connection is made on the half-size breadboard. The foot for every
part need to follow the number on the breadboard so that the connection is successful.

Smart Pedestrian Light model

11
Arduino model

12
6.0 RESULT AND DISCUSSION

We had participated in the RISE 2015 competition that was held at DATC UITM
SHAH ALAM. This is a new challenge for us to participate in such a big competition. We
were successfully to make a model of smart pedestrian light although the time given is
short. We need to present to the panel about our project and to the audience who came to
our both. Besides that, this program to train us for FYP presentation. After the result had
been announced, we all get the bronze certificate and for us this is our first time to
participate in such a honour program, we are very proud with the achievement.

13
From the standard traffic light system, the presentation is modified and we install
the coding for the pedestrian light so that user can safely use the road without any
accident. The coding also can be modify so that the time that required for the pedestrian
to cross the road in changeable. For example, after make some study about certain busy
places and on the busy road, we can set the timer for the pedestrian green light to a longer
time. With this innovation, we will improve awareness about pedestrian and disable
person to cross the road. The number of accident involve pedestrian will decrease. In the
future, to improve this project, we will make a better waiting area and make sure the
system detect the pedestrian smoothly.

It is highly suggested that this pedestrian traffic light system to be installed in


front of school, zebra crossing, intercity and other suitable places. This is because the
system can be utilized in the suitable place and condition.

14
7.0 CONCLUSION

Based on the discussion, we can say that the application of Arduino is very simple
and easy to operate. We can make and improve variety type of systems that are existed
nowadays. We need to make improvement so that all human activity can be reduced and
ease. Other than that, by improving and introducing new systems can prevent us from
making a human error, reduce accident, faster productivity and improve management.
Therefore, from this project, we understand the function for the Arduino kit and its
implication and application on the real life environment.

15
8.0 REFERENCES

1. Smith, A.G., 2011, Intro Arduino Book, Princeton University.


2. www.arduino.cc/en/Guide/Introduction,
(Retrieved on 15th June 2015)
3. www.ladyada.net/learn/arduino/lesson3.html,
(Retrieved on 16th June 2015)

16

You might also like