当前位置:网站首页>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
边栏推荐
- 6.Dropout应用
- Codeforces Round #804 (Div. 2)
- 14.绘制网络模型结构
- A network composed of three convolution layers completes the image classification task of cifar10 data set
- Taiwan Xinchuang sss1700 latest Chinese specification | sss1700 latest Chinese specification | sss1700datasheet Chinese explanation
- [go record] start go language from scratch -- make an oscilloscope with go language (I) go language foundation
- New library online | cnopendata China Star Hotel data
- Complete model training routine
- Use "recombined netlist" to automatically activate eco "APR netlist"
- FOFA-攻防挑战记录
猜你喜欢

Image data preprocessing

Ag9310 design USB type C to hdmi+u2+5v slow charging scheme design | ag9310 expansion dock scheme circuit | type-C dongle design data

Semantic segmentation model base segmentation_ models_ Detailed introduction to pytorch

For the first time in China, three Tsinghua Yaoban undergraduates won the stoc best student thesis award

Definition and classification of energy

13. Model saving and loading
![[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

130. Surrounding area

AI遮天传 ML-初识决策树

新库上线 | CnOpenData中华老字号企业名录
随机推荐
Swift get URL parameters
12.RNN应用于手写数字识别
Codeforces Round #804 (Div. 2)
Fundamentals - integrating third-party technology
STL--String类的常用功能复写
Taiwan Xinchuang sss1700 latest Chinese specification | sss1700 latest Chinese specification | sss1700datasheet Chinese explanation
[note] common combined filter circuit
Basic realization of line chart (II)
Complete model training routine
Ag9310 for type-C docking station scheme circuit design method | ag9310 for type-C audio and video converter scheme circuit design reference
50MHz generation time
AI遮天传 ML-回归分析入门
Cross modal semantic association alignment retrieval - image text matching
[reprint] solve the problem that CONDA installs pytorch too slowly
Serial port receives a packet of data
Markdown learning (entry level)
Smart grid overview
Cs5212an design display to VGA HD adapter products | display to VGA Hd 1080p adapter products
Marubeni official website applet configuration tutorial is coming (with detailed steps)
High quality USB sound card / audio chip sss1700 | sss1700 design 96 kHz 24 bit sampling rate USB headset microphone scheme | sss1700 Chinese design scheme explanation