Traffic Light Synchronization by: Avneesh Kohli, Eric Harmatz, and Govil Gupta
Cluster 1: Adventures in Embedded Computer Systems Instructors: Dr. Rajesh Gupta, Dr. Choon Kim, Shirley Miranda, Arash Arafee, Bridget Benson
The Problem Over 6 million accidents per year Nearly 50,000 deaths per year 60% of accidents by human error $230 billion spent annually
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
Background Information C Programming Language PSoC Devices CapSense / Touch-Based Input Hardware / Wiring Multi-chip Communication
Hypothesis Use CapSense to represent car Light turns green when car approaches intersection Perpendicular lights change automatically Two sets of lights are synchronized
Materials 2 Cypress PSoC CY3214 Chips 3 LED’s (Red, Yellow, Green) CapSense module PSoC Designer 5.0 PSoC Programmer USB Mini-Programmer Wires
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
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
Sample Pictures
Video Demonstration
Results and Data Successful, working device Realistic light cycle delays Very responsive to all finger motions
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
Applications/Future Incorporate into suburban streets to reduce intersection accidents Applicable to any areas with controlled traffic Less traffic, save people, save time