桂花蒸

[Creative PCB] Celebrate the Mid-Autumn Festival and Welcome the National Day

 
Overview

Project introduction: The Mid-Autumn Festival is approaching, and a simple and easy-to-use mooncake lamp is undoubtedly the best choice for our beginners to express blessings. This project is a mooncake design based on the ATC89C52RC microcontroller. A single microcontroller system composed of light-emitting diodes, crystal oscillators, reset, power supply and other circuits and necessary software. Simple yet unique, a must-have item for students with zero basic knowledge.

Hardware part: image.png It can be seen from the hardware schematic diagram that if you want LED1 connected to the P1.0 port to light up, then you only need to change the level of the P1.0 port to low level; on the contrary, if you want to connect When LED1 in the P1.0 port goes out, the level of the P1.0 port must be changed to high level; similarly, the lighting and extinguishing methods of other LEDs are the same as LED1. Therefore, to realize the running water lamp function, we only need to turn on and off the light-emitting diodes in sequence.

software part

Keil C51 software is one of the many excellent software for microcontroller application development. It integrates editing, compilation and simulation. It supports assembly, PLM language and C language programming. It has a friendly interface and is easy to learn and use. Keil C51 software is mainly about writing programs accurately. Write a program to control the high and low changes in the pin level of the microcontroller to turn the light-emitting diode on and off. Software programming is an important part of the microcontroller application system and is the focus and difficulty of learning microcontrollers.

picture

image.png

Precautions

The layout can be further optimized.

参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-05-12 03:49:07

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号