当前位置:网站首页>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 5 neural network
- 13.模型的保存和载入
- New library launched | cnopendata China Time-honored enterprise directory
- Get started quickly using the local testing tool postman
- Su embedded training - C language programming practice (implementation of address book)
- Fundamentals - integrating third-party technology
- 5. Over fitting, dropout, regularization
- 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
- Su embedded training - Day5
- Basic types of 100 questions for basic grammar of Niuke
猜你喜欢
Common effects of line chart
完整的模型验证(测试,demo)套路
Cve-2022-28346: Django SQL injection vulnerability
From starfish OS' continued deflationary consumption of SFO, the value of SFO in the long run
Malware detection method based on convolutional neural network
解决报错:npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
Basic implementation of pie chart
Using GPU to train network model
11.递归神经网络RNN
AI遮天传 ML-回归分析入门
随机推荐
[necessary for R & D personnel] how to make your own dataset and display it.
基础篇——整合第三方技术
Fundamentals - integrating third-party technology
Introduction to the types and repair methods of chip Eco
Smart grid overview
Malware detection method based on convolutional neural network
New library online | cnopendata China Star Hotel data
Invalid V-for traversal element style
Markdown learning (entry level)
第四期SFO销毁,Starfish OS如何对SFO价值赋能?
Basic realization of line chart (II)
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
STL -- common function replication of string class
Ag7120 and ag7220 explain the driving scheme of HDMI signal extension amplifier | ag7120 and ag7220 design HDMI signal extension amplifier circuit reference
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
2. Nonlinear regression
Su embedded training - Day6
完整的模型验证(测试,demo)套路
2.非线性回归
Study notes of single chip microcomputer and embedded system