当前位置:网站首页>51 single chip microcomputer independent key linkage nixie tube LED buzzer
51 single chip microcomputer independent key linkage nixie tube LED buzzer
2022-07-28 06:15:00 【Zhaoyang】
Catalog :
LED working principle 、 Circuit and source code
Working principle of buzzer 、 Circuit and source code
Working principle of nixie tube 、 Circuit and source code
Working principle of independent keys 、 Circuit and source code
summary
LED principle , Circuit and source code
LED principle
LED Light emitting diodes , There is single guide electricity , The greater the current, the greater the brightness , But if the current is too large, it will be burned ., In order to prevent excessive current, a resistor is usually connected in series .
LED circuit
stay 51 Single chip microcomputer A2 The circuit in the series is shown below , You can see LED It's a common anode , Lighten up LED Wait, just make P2 Port low level is enough .

Source code
Control individual LED The light is on

control LED The light flashes

Working principle of buzzer 、 Circuit and source code
Working principle of buzzer
51 The single chip microcomputer adopts a piezoelectric buzzer , That is, output a pulse signal of a certain frequency ( High and low level ) Then you can make a sound .
Buzzer circuit
51 Single chip microcomputer A2 The circuit of series buzzer is shown in the figure , take P2^5 Pin No. 1 outputs a certain high and low level of frequency .

Source code

Working principle of nixie tube 、 Circuit and source code
Working principle of nixie tube
Inside it is a light-emitting diode .51 The eight digital tubes in the single chip microcomputer are all common cathode . That is to say, the common cathode of eight light-emitting diodes of a nixie tube , The common female port of the eight nixie tubes consists of 74HC138(38 Decoder ) control . The anodes of eight nixie tubes should be matched one by one 74HC245 Chip control .
Nixie tube circuit
The following figure shows the nixie tube circuit in turn ,38 Decoder circuit , as well as 38 The truth table of the decoder . The truth table shows 38 How does the decoder control the common cathode effectively .( Binary system 7<111> From left to right corresponds to 38 Of the decoder C,B,A, This helps us to control the common cathode )



Source code

Working principle of independent keys 、 Circuit and source code
Working principle of independent keys
51 Single chip microcomputer A2 Series independent keys have pull-up resistors , High level detected without pressing the corresponding port , Press to switch on GND The corresponding port detects a low level . There is jitter when the key is pressed , Jitter will cause press, which is a misjudgment caused by jitter , So we need to shake . Deblocking includes software deblocking and hardware deblocking , The common hardware anti jitter is to connect capacitors , Capacitor charging can eliminate jitter by skipping the jitter time . We often use software to eliminate jitter .
Independent key circuit

Source code

summary
The following figure shows some pin definitions and main functions


边栏推荐
- 强化学习——价值学习中的DQN
- What are the general wechat applet development languages?
- Convolutional neural network
- The difference between router and switch
- Deep learning - metaformer is actually what you need for vision
- What is the detail of the applet development process?
- 深度学习——Patches Are All You Need
- File upload vulnerability summary
- 深度学习(增量学习)——ICCV2021:SS-IL: Separated Softmax for Incremental Learning
- 无约束低分辨率人脸识别综述一:用于低分辨率人脸识别的数据集
猜你喜欢

Four perspectives to teach you to choose applet development tools?

D2SC-GAN:基于双深浅通道生成对抗网络的课堂场景低分辨率人脸识别

卷积神经网络

Deep learning pay attention to MLPs

强化学习——策略学习

无约束低分辨率人脸识别综述二:异构低分辨率人脸识别方法

Matplotlib data visualization

Realization of topic function

深度学习(自监督:SimCLR)——A Simple Framework for Contrastive Learning of Visual Representations

Applet development
随机推荐
Deep learning (self supervision: simpl) -- a simple framework for contractual learning of visual representations
The signature of the update package is inconsistent with that of the installed app
利用辅助未标记数据增强无约束人脸识别《Boosting Unconstrained Face Recognition with Auxiliary Unlabeled Data》
Small program development solves the anxiety of retail industry
Reinforcement learning - proximal policy optimization algorithms
Dataset class loads datasets in batches
Reinforcement learning - dqn in value learning
Paper reading notes of field low resolution face recognition based on selective knowledge extraction
使用PowerCli来创建自定义ESXi ISO镜像
三、OpenVINO实战:图像分类
Neural network learning
Deep learning (incremental learning) - (iccv) striking a balance between stability and plasticity for class incremental learning
Sqlalchemy usage related
How much does small program development cost? Analysis of two development methods!
CVE_ 2017_ 11882 vulnerability recurrence (Metasploit opens NT remote desktop to add an account)
Kubesphere installation version problem
Deep learning - metaformer is actually what you need for vision
Cluster operation management system, to answer questions about the process
基于直方图修改的可逆数字水印方法
深度学习(自监督:MoCo v2)——Improved Baselines with Momentum Contrastive Learning