当前位置:网站首页>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
边栏推荐
- AI遮天传 ML-回归分析入门
- USB type-C mobile phone projection scheme | USB type-C docking station scheme | TV / projector type-C converter scheme | ag9300ag9310ag9320
- 130. Surrounding area
- New library launched | cnopendata China Time-honored enterprise directory
- letcode43:字符串相乘
- Image data preprocessing
- Complete model verification (test, demo) routine
- Su embedded training - C language programming practice (implementation of address book)
- Generic configuration legend
- Ag9311maq design 100W USB type C docking station data | ag9311maq is used for 100W USB type C to HDMI with PD fast charging +u3+sd/cf docking station scheme description
猜你喜欢

11. Recurrent neural network RNN

Vscode is added to the right-click function menu

Basic realization of line chart (II)

2. Nonlinear regression

Several frequently used OCR document scanning tools | no watermark | avoid IQ tax

Using GPU to train network model

第四期SFO销毁,Starfish OS如何对SFO价值赋能?

Ag9310 same function alternative | cs5261 replaces ag9310type-c to HDMI single switch screen alternative | low BOM replaces ag9310 design

133. 克隆图

General configuration toolbox
随机推荐
英雄联盟胜负预测--简易肯德基上校
130. 被圍繞的區域
Ag9310meq ag9310mfq angle two USB type C to HDMI audio and video data conversion function chips parameter difference and design circuit reference
Definition and classification of energy
Ag9310 for type-C docking station scheme circuit design method | ag9310 for type-C audio and video converter scheme circuit design reference
For the first time in China, three Tsinghua Yaoban undergraduates won the stoc best student thesis award
Markdown learning (entry level)
Image data preprocessing
Su embedded training - Day8
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
A speed Limited large file transmission tool for every major network disk
4. Cross entropy
Common effects of line chart
Prediction of the victory or defeat of the League of heroes -- simple KFC Colonel
Cs5212an design display to VGA HD adapter products | display to VGA Hd 1080p adapter products
11.递归神经网络RNN
13. Model saving and loading
Cve-2022-28346: Django SQL injection vulnerability
Vscode reading Notepad Chinese display garbled code
NVIDIA Jetson test installation yolox process record