aerobotics

VFD multifunctional small clock (C52)

 
Overview

Brief description:
The software is written based on keil5. The VFD is also a module purchased from Taobao, which omits the design of the power supply. It is true that the performance of 52 is a bit tight, but it is still almost enough for this thing. The code just covers the basics. It’s finished. Because it has an encoder, the interactive functions should be very rich, but the time reason code will be written here first, and I will write it later when I have time. After all, the time can only be adjusted through the serial port, which is a bit troublesome. The source code is the compressed package in the attachment. 7z
Hardware:
There should be nothing to say about this part. Just the minimum system of c51 plus corresponding functional components. The encoder requires a 0.1uf filter capacitor, but it has not been completely solved yet. The jitter problem is quite numb. The other main thing is that the VFD requires high-level 3.3V signal control, so there is a level conversion process. Because the c52 I drew on this board works at 5V, I added a 3.3V level composed of LDO and mos tube. Conversion, but maybe it’s unnecessary. The c52 p0 port is an open-drain output. You can just use 3.3v to pull it up. No MOS tube is needed. It’s unnecessary:
​​PCB board diagram:
Software:
The animation is implemented using a frame buffer similar to framebuffer. The method is to open up an area in RAM and let the MCU display it after completing the calculation. However, due to limited performance and limited ability to write code, the animation speed can only be as fast as this.
Program burning:
The entire program is written based on the 11.0592MHz crystal oscillator in 6T mode, so please check "Enable 6T mode" when burning in SCP-ISP:
the serial port uses the CH340N chip, turn on the power when burning That’s it. This should go without saying.
Function description:
The entire operation logic is based on encoder rotation, so you can rotate the encoder to scroll through different function pages: (there are three pages in total)
Page1: By default, it is the default time interface for power on. In this interface, the time and date will automatically scroll and display;
Page2: AIDA64 information page, with AIDA64, it can display the computer's CPU temperature, CPU usage, and memory usage;
Page3: Brightness adjustment page, press the encoder on this page to enter the adjustment mode, scroll left and right to increase or decrease, press again to exit.
 
AIDA64 usage settings:
First complete the settings in the settings as shown in the figure below:
Then set different display contents in the format shown in the figure below:
only add one display information to each page, and now only CPU usage and temperature are introduced in the program , the memory usage is displayed, and the MCU judges the ending character to identify what kind of information it is. So please add it in the following format:
In Label, S is the beginning and A, B, and C are the end, representing three kinds of information, just like "S 7A" as shown in the picture below. Emphasis is placed on adding only one to each page below, using three pages! ! Then set the page turning time to 5 seconds and it will be fine! ! !
 
 
 
 
Time setting method:
Just send information in this format in the serial port software, such as: SETH23.
The data sent must be kept to be 6Byte in length. If I want to set 3 points, I need to write SETH03 and just add zeros in front, and so on!
The meanings of the letters in the 4th byte are as follows:
Some picture displays:
A video is uploaded below for reference.
参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-06-20 04:10:37

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号