traffic light synchronization by: avneesh kohli, eric harmatz, and govil gupta

14
Traffic Light Synchronization by: Avneesh Kohli, Eric Harmatz, and Govil Gupta

Upload: hugh-blake-richards

Post on 23-Dec-2015

218 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Traffic Light Synchronization by: Avneesh Kohli, Eric Harmatz, and Govil Gupta

Traffic Light Synchronization

by: Avneesh Kohli, Eric Harmatz, and Govil Gupta

Page 2: Traffic Light Synchronization by: Avneesh Kohli, Eric Harmatz, and Govil Gupta

Cluster 1: Adventures in Embedded Computer

SystemsInstructors: Dr. Rajesh Gupta, Dr. Choon Kim, Shirley Miranda, Arash Arafee, Bridget Benson

Page 3: Traffic Light Synchronization by: Avneesh Kohli, Eric Harmatz, and Govil Gupta

The Problem

• Over 6 million accidents per year

• Nearly 50,000 deaths per year

• 60% of accidents by human error

• $230 billion spent annually

Page 4: Traffic Light Synchronization by: Avneesh Kohli, Eric Harmatz, and Govil Gupta

Purpose

• In need of a better safety traffic system

• Traffic lights controlled by timers rather than present cars

• Synchronization of lights can save time and lives

Page 5: Traffic Light Synchronization by: Avneesh Kohli, Eric Harmatz, and Govil Gupta

Background Information

• C Programming Language

• PSoC Devices

• CapSense / Touch-Based Input

• Hardware / Wiring

• Multi-chip Communication

Page 6: Traffic Light Synchronization by: Avneesh Kohli, Eric Harmatz, and Govil Gupta

Hypothesis• Use CapSense to represent car

• Light turns green when car approaches intersection

• Perpendicular lights change automatically

• Two sets of lights are synchronized

88

22

33

44

55

66

77

99

Page 7: Traffic Light Synchronization by: Avneesh Kohli, Eric Harmatz, and Govil Gupta

Materials• 2 Cypress PSoC CY3214 Chips

• 3 LED’s (Red, Yellow, Green)

• CapSense module

• PSoC Designer 5.0

• PSoC Programmer

• USB Mini-Programmer

• Wires

Page 8: Traffic Light Synchronization by: Avneesh Kohli, Eric Harmatz, and Govil Gupta

Procedure

1.Open PSoC Designer

2.Select Chip Level Project

3.Add CSD User Module

4.Configure CSD

5.Add 3 LED User Modules

6.Configure LED’s

Page 9: Traffic Light Synchronization by: Avneesh Kohli, Eric Harmatz, and Govil Gupta

7.Open main.c

8.Program main.c

9.Build project using Imagecraft compiler

10.Transfer program to chip

11.Connect wires to breadboard and ports

Page 10: Traffic Light Synchronization by: Avneesh Kohli, Eric Harmatz, and Govil Gupta

Sample Pictures

Page 11: Traffic Light Synchronization by: Avneesh Kohli, Eric Harmatz, and Govil Gupta

Video Demonstration

Page 12: Traffic Light Synchronization by: Avneesh Kohli, Eric Harmatz, and Govil Gupta

Results and Data

• Successful, working device

• Realistic light cycle delays

• Very responsive to all finger motions

Page 13: Traffic Light Synchronization by: Avneesh Kohli, Eric Harmatz, and Govil Gupta

Conclusions

• Successful culmination of our knowledge of C and hardware

• Can be improved with a more efficient code

• Can be expanded to use 2 CapSense modules

Page 14: Traffic Light Synchronization by: Avneesh Kohli, Eric Harmatz, and Govil Gupta

Applications/Future

• Incorporate into suburban streets to reduce intersection accidents

• Applicable to any areas with controlled traffic

• Less traffic, save people, save time