当前位置:网站首页>The combination of relay and led small night light realizes the control of small night light cycle on and off
The combination of relay and led small night light realizes the control of small night light cycle on and off
2022-07-08 01:13:00 【Arranh】
Catalog
2、 Physical diagram and principle of relay
3、 Code and LED Wiring of night light
1、 Preface
Relay (relay) It's an electrical control device , It is when the input quantity changes to meet the specified requirements , An electrical device in an electrical output circuit that causes a predetermined step change in the controlled quantity .
The relay has a control system and a controlled system , It is usually used in automatic control circuits , It plays an automatic adjustment in the circuit 、 safeguard 、 Switching circuit, etc .
2、 Physical diagram and principle of relay
A relay is simply a switch , It's just different from the usual switch at home that it's a code switch , The code can be used to control the relay ,VCC Indicates the positive pole of the power supply 、GND Indicates the negative pole of the power supply 、IN Indicates the signal input pin ( Usually with STM32 Chip io Mouth to mouth ),COM Represents the public end ,NC(normal close) Indicates normally closed end ,NO(normal open) It means to start often
VCC Connect the positive pole of the power supply ,GND Connect the negative pole of the power supply ,LN Pick up STM32 Output pin on ( The input high-level common terminal is normally closed , The input low-level common terminal is normally open )
In short, it's
When IN When the foot input is high ,NC And COM Connected to a ; When the input power is low ,NO And COM Connected to a

3、 Code and LED Wiring of night light




The wiring is as follows
be based on STM32103C8T6 chip ( Other chips can also be used )
Night light GND( white ) Receive STM32 Of GND
Night light VCC( Red ) Connected to the relay NO mouth
Relay COM Oral reception STM32 Of VCC
Relay VCC and GND Corresponding receiving STM32 Of VCC and GND
Relay IN Oral reception STM32 Of PA3 mouth
The core source code attachment is as follows
link :https://pan.baidu.com/s/131ZeDSV-izc-AVJT-MIJYw
Extraction code :1008
Learn from Jiang Xingji , Beginners STM32 I hope you guys will forgive me for the bad writing
If you have any questions, you can raise them below
边栏推荐
- New library online | information data of Chinese journalists
- German prime minister says Ukraine will not receive "NATO style" security guarantee
- Share a latex online editor | with latex common templates
- 13. Enregistrement et chargement des modèles
- 2022-07-07: the original array is a monotonic array with numbers greater than 0 and less than or equal to K. there may be equal numbers in it, and the overall trend is increasing. However, the number
- 130. 被围绕的区域
- Letcode43: string multiplication
- 5.过拟合,dropout,正则化
- AI遮天传 ML-初识决策树
- Vscode is added to the right-click function menu
猜你喜欢

Chapter 5 neural network

10.CNN应用于手写数字识别
![[go record] start go language from scratch -- make an oscilloscope with go language (I) go language foundation](/img/76/b048e100d2c964ac00bc4f64e97e7a.png)
[go record] start go language from scratch -- make an oscilloscope with go language (I) go language foundation

Introduction to ML regression analysis of AI zhetianchuan

Jemter distributed

jemter分布式

1. Linear regression

Vscode is added to the right-click function menu

Design method and application of ag9311maq and ag9311mcq in USB type-C docking station or converter

Two methods for full screen adaptation of background pictures, background size: cover; Or (background size: 100% 100%;)
随机推荐
2022-07-07: the original array is a monotonic array with numbers greater than 0 and less than or equal to K. there may be equal numbers in it, and the overall trend is increasing. However, the number
6.Dropout应用
Fundamentals - integrating third-party technology
Kuntai ch7511b scheme design | ch7511b design EDP to LVDS data | pin to pin replaces ch7511b circuit design
General configuration toolbox
1.线性回归
General configuration title
50MHz generation time
新库上线 | CnOpenData中华老字号企业名录
3.MNIST数据集分类
Scheme selection and scheme design of multifunctional docking station for type C to VGA HDMI audio and video launched by ange in Taiwan | scheme selection and scheme explanation of usb-c to VGA HDMI c
Handwriting a simulated reentrantlock
1. Linear regression
Invalid V-for traversal element style
14. Draw network model structure
12. RNN is applied to handwritten digit recognition
133. 克隆图
14.绘制网络模型结构
C#中string用法
Class head up rate detection based on face recognition