当前位置:网站首页>一键开关机电路
一键开关机电路
2022-07-28 06:20:00 【ltqshs】
普通软开关
用控制器了,纯软件方法,只需要一个io,硬件也只需要一个按键和一个电阻。
软件关机就可以了,就像手机一样,关机就是进掉电模式 。
关机功耗为0的软开关

原理其实很简单,就是通过控制PMOS Q2的通断来实现的,当按键KEY1按下的时候,PMOS Q2导通,之后控制Q1导通,就可以实现PMOS一直导通,实现开机,开机之后,可以检测PG2的电平来判断按键的短按,双击,长按等操作。
开机过程

按键没按下之前,PMOS GS两端电压一样,不导通,当按键按下之后,看上图红色回路,G极通过二极管D1接地,PMOS导通,12V电压通过PMOS到VCC,给后级供电,这时候有老铁就要问了,难道我要一直按着嘛,按键松开的话MOS不就关断了
别急,重点来了,大家有没有注意到一个细节,我们长按手机的时候,什么时候会松开按键,当屏幕点亮的时候才会松开吧,其实从按下到屏幕点亮,系统已经运行起来一部分了,系统刚运行起来的时候,会立刻将PG1拉高,三极管Q1导通。
此时,如上图所示,MOS管的G极被拉低,即使松开按键了,PMOS依然导通,由此实现长按开机功能。
按键过程

看上图红色部分,按键按下之后,PG2通过D2到地,松开之后,被上拉到高电平,由此就可以检测KEY1按键的短按,长按,双击等功能。
关机过程

这里的关机其实是“软关机”,当检测到到KEY1长按时,系统先进行必要的关机处理,之后将PG1拉低,Q1关断,松开按键后,实现关机。
问题:
这个电路很经典,成本低。
但是需要软件配合,如果控制器死机了,或者没刷程序,就没辙了。
开关专用控制器
如果需要软件配合,如果控制器死机了,或者没刷程序,就没辙了。
专用的IC控制,例如LT2954。
—
版权声明:本文为CSDN博主「Hali_Botebie」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。原文链接:《一键开关机电路》
边栏推荐
- Mysql中有哪些不同的表格?
- Can a flinksql script write insert statements for two tables?
- Brief introduction to ThreadLocal class
- 聊一聊数据库的行存与列存
- Digital management insight into retail and e-commerce operations -- Introduction to digital management
- UE4 engine customizes screenpass and MRT output
- CarSim simulation quick start (XIII) - steering system
- Talk about synchronous, asynchronous, blocking and non blocking
- Qt多线程中槽函数在哪个线程里执行分析
- What if the computer folder cannot be renamed?
猜你喜欢

EMC design strategy - clock

深度学习基础宝典---激活函数、Batch Size、归一化
![In the task manager, the CPU speed displayed is greater than its maximum speed [main frequency]](/img/90/a3f56ef8f08a8735febba16af227f9.png)
In the task manager, the CPU speed displayed is greater than its maximum speed [main frequency]

Plantuml Usage Summary

Oracle local network service

Clion debugging redis6 source code

MPLS --- 多协议标签交换技术

JUC原子类: CAS, Unsafe、CAS缺点、ABA问题如何解决详解

Some experience of gd32 using Hal Library of ST and Gd official library

Draw.io image saving path settings
随机推荐
【青鸟学员故事】追风少年“李晓亮”
Chapter 01 introduction of [notes of Huashu]
OpenTSDB-时序数据库
JS candy xiaoxiaole game source code
(Reprinted) plantuml Quick Guide
【花书笔记】 之 Chapter01 引言
Protobuf basic grammar summary
ArcGIS JS customizes the accessor and uses the watchutils related method to view the attribute
[Google] solve the problem that Google browser does not pop up the account and password save box and cannot save login information
Exception handling in SQL Server
js信息提示框定时关闭
DNA modified noble metal nanoparticles | DNA modified copper nanoparticles cunps-dna | research points
[environment configuration] ppyoole trains its own data set (for its own use)
[dry goods] 32 EMC standard circuits are shared!
Brief introduction to ThreadLocal class
谈谈DOM0,DOM1,DOM2,DOM3
Discrimination coverage index / index coverage / Samsung index
How do we run batch mode in MySQL?
DCL singleton mode
“蔚来杯“2022牛客暑期多校训练营2补题记录(DGHJKL)