Hirmr

Traffic light system based on 51 microcontroller

 
Overview
I. Project Overview: This project
      designs a traffic light system based on the 51 microcontroller. It uses two 0.56-inch common cathode LED displays to show the remaining seconds of red (green) lights in different directions. An infrared tracking module is used to detect pedestrians crossing the red light. Four sets of red, yellow, and blue LEDs simulate the traffic light status. An LCD1602 displays other information. A button module is used for information interaction (setting red light duration, whether to perform pedestrian crossing detection, etc.). The reset button, serial port circuit, all pins, VCC, and GND are all brought out for easy secondary development and the addition of peripherals.
II. Onboard Resources
1. Main Control Chip: STC89C52RC; 2. Power Interface: DC, 2-pin connector; 3. LEDs: One power indicator, one infrared module status indicator, four sets of red, yellow, and green LEDs;
4. Buttons: One reset button, four function buttons; 5.
Debugging Interface: Serial port download and debugging interface, using a 2.54mm header connector;
6. Peripherals: Two 0.56-inch common cathode digital tubes, one infrared tracking module, one passive buzzer, one LCD1602; III . Advantages and Features 1. JLCPCB provides free PCB fabrication, 100mm*100mm; 2. Complete debugging interfaces, all pins are brought out for easy testing and secondary development, can be used as a core board; 3. Uses DC interface or header power supply; 4. Affordable price, complete functionality; 5. Uses high-quality JLCPCB PCBs and genuine components to ensure product quality; 6. Almost all components are through-hole (except for two capacitors and transistors, all are through-hole; surface mount technology can be used to reduce area); IV. Circuit Analysis Diagram 4.1 Traffic Light System Schematic Diagram IV. Physical Verification Scheme Breadboard Verification Board Making Physical Image Finished Product Image Due to incorrect component selection, flying wires appeared, which have been corrected. The scheme has been successfully verified. Since the source code is borrowed from someone else, it will not be uploaded here. If needed, you can contact me privately for it, or refer to my desktop clock. The idea behind this code is optimized from that.
 









 
 

 

 

 


 
 
参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2026-03-24 16:06:11

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号