当前位置:网站首页>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
边栏推荐
- Chapter IV decision tree
- Basic realization of line graph
- [deep learning] AI one click to change the sky
- 1. Linear regression
- 50MHz generation time
- A speed Limited large file transmission tool for every major network disk
- USB type-C mobile phone projection scheme | USB type-C docking station scheme | TV / projector type-C converter scheme | ag9300ag9310ag9320
- Kuntai ch7511b scheme design | ch7511b design EDP to LVDS data | pin to pin replaces ch7511b circuit design
- 3. MNIST dataset classification
- Chapter 7 Bayesian classifier
猜你喜欢
Basic realization of line chart (II)
3. MNIST dataset classification
网络模型的保存与读取
Image data preprocessing
Saving and reading of network model
[note] common combined filter circuit
New library launched | cnopendata China Time-honored enterprise directory
Introduction to ML regression analysis of AI zhetianchuan
Cve-2022-28346: Django SQL injection vulnerability
Get started quickly using the local testing tool postman
随机推荐
13.模型的保存和载入
The whole life cycle of commodity design can be included in the scope of industrial Internet
From starfish OS' continued deflationary consumption of SFO, the value of SFO in the long run
网络模型的保存与读取
Prediction of the victory or defeat of the League of heroes -- simple KFC Colonel
letcode43:字符串相乘
Basic types of 100 questions for basic grammar of Niuke
New library online | cnopendata China Star Hotel data
Stock account opening is free of charge. Is it safe to open an account on your mobile phone
Codeforces Round #804 (Div. 2)
130. Zones environnantes
9. Introduction to convolutional neural network
Handwriting a simulated reentrantlock
14.绘制网络模型结构
6.Dropout应用
Class head up rate detection based on face recognition
完整的模型验证(测试,demo)套路
swift获取url参数
Several frequently used OCR document scanning tools | no watermark | avoid IQ tax
Letcode43: string multiplication