Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 16

CONCEPT DESIGN

ACTIVITY#1
TRAFFIC CONTROLLER

Members:
•Ammar Khawaja
•Taher Qutub
PROBLEM STATEMENT
 4 way junction.
 Neither controller nor traffic police officer at
junction.
 Need to improvise junction for efficient traffic
flow.
 Each lane may see more traffic or no traffic for
a particular hour each day.
 Need to monitor number of cars/pedestrians
crossing the road.
 Pedestrian signal given second priority as
compared to traffic signal.
CONCEPT / FEATURES
 Two pedestrian signals on both sides of every
road to monitor the passing of pedestrians; 8
pedestrians signals in total.
 Inductive traffic sensors to monitor number of
vehicles on each road; 4 sensors in total.
 Ultrasonic sensors to monitor number of
pedestrians crossing the road; 4 sensors in
total. In the middle of each road.
 These sensors will be connected to blue pill
microcontroller.
 In this, the system can take decisions based on the
number of vehicles on each road. It takes samples
after fixed time intervals and allows the traffic
lights to stay on sequentially so that the busiest
roads gets the first priority.

Start

This process is repeated


Take data indefinitely for each road.
from sensors

Determine road Clear the


with maximum corresponding
number of vehicles lane
 With the push of a button, a call is sent to the
controller to indicate that pedestrians are waiting.
The call then reaches the desired phase and the
pedestrian signal will turn green.
 Each signal will turn green for 30seconds and the
corresponding pedestrian signals will be green for
30 seconds as well.
Conditions
 B1 pressed -> If L2 is green, B1 is green.
 B3 pressed -> If L3 is green, B3 is green.
 B5 pressed -> If L4 is green, B5 is green.
 B7 pressed -> If L1 is green, B7 is green.
 B2 pressed -> If L2 is green, B2 is green.
 B4 pressed -> If L3 is green, B4 is green
 B6 pressed -> If L4 is green, B6 is green.
 B8 pressed -> If L1 is green, B8 is green.
RANDOM CASE:
SIGNAL 1 -> SIGNAL 2 -> SIGNAL 3 -> SIGNAL 4
Decreasing order of
traffic

Signal 1 Signal 2 Signal 3 Signal 4


On 30 Off 30 Off 60 Off 90
Off 90 On 30 Off 30 Off 60
Off 60 Off 90 On 30 Off 30
Off 30 Off 60 Off 90 On 30

One of the many cases in which the traffic


signals may turn green.
Note: Each signal turns on for 30 seconds.
HARDWARE COMPONENTS
 4 Ultrasonic sensors
 4 Inductive traffic sensors.
 8 pedestrian signals
 8 push buttons
 4 traffic light signals
 12 LEDs (4 of each colour)
 1 Blue Pill Board (STM32)
FLOW-CHART
ARCHITECTURE
 STM32 uses ARM CORTEX M-3 Architecture
INTERFACE
STM32 BLUE PILL BOARD USED

 The input of 8 sensors PA0-PA7.


 The output of 8 red and green LEDsPA8-
PA15. 
 The input of pedestrian signalsPB0-PB7
 The output of pedestrian signalsPB8-PB15.
INTERFACE

Pedestrian signals

sensors

LEDS
MEMORY
 Memories: contains 64 Kbytes of Flash and 20
Kbytes of SRAM
 GPIO Pins – 32 with external interrupt capability
 Timers – 3 16-bit Timers, 1 16-bit PWM Timer
 PWM Pins – 15
 Analog – 10 Channels of 12-bit ADC
 I2C – 2 I2C Peripherals
 USART – 3 USART Peripherals with hardware
control
 SPI – 2 SPI Peripherals
 Other Peripherals – USB 2.0 Full Speed, CAN 2.0B
THANKYOU!!

You might also like