当前位置:网站首页>Smart fan system based on STM32F103
Smart fan system based on STM32F103
2022-07-19 04:12:00 【Embedded advanced road】
- System design objectives
This system can be divided into two modes to run , They are manual mode and automatic mode , meanwhile , After power on and entering the system , There will also be a mode selection interface .
- Mode selection : In this interface , You can press the key K1 To control mode selection , The two modes are manual mode and automatic mode ; By pressing the key K2 Can enter mode
- Manual mode : In manual mode , Can pass K1 To adjust the speed , Divided into low speed 、 Medium and high speed , Can pass K3 To control whether it is shaking its head .
- Automatic mode : In automatic mode , Infrared sensors can be used to detect whether there are people around , Test the temperature and humidity of the surrounding environment through the temperature and humidity sensor , If the conditions are met, the fan will be triggered to run , The wind speed also has a low-speed mode 、 Medium speed mode 、 High speed mode .
- Specific hardware selection
- Master chip
The main control chip is stm32f103c8t6 Minimum system board , Cheapness , It is very suitable for beginners to develop SCM projects , It can be used with bread board , Very suitable for circuit connection .

2. Display module
The display module mainly uses 0.96 Inch OLED The screen . adopt OLED Module to display mode information 、 Temperature information 、 Sweeping information, etc .

3. Temperature and humidity sensor
The temperature and humidity sensor uses DHT11 Temperature and humidity sensor , It is used to collect temperature data and humidity data in automatic mode , Control the speed of the fan .

4. Infrared module
The infrared module is mainly used to detect whether there are people around , When someone is detected around , The information can be transmitted to the single chip microcomputer to respond , When the temperature reaches the set value , You can control the fan to start rotating .

5. Motor drive circuit
My motor drive circuit uses a high-power diode to drive the motor , In fact, it can also be used L298N To drive , This depends on the components at hand .
6. The steering gear
I mainly use the steering gear to complete the sweeping mode of the fan , By controlling the duty cycle of the steering gear, the fan can sweep .
7. The motor
This time, I use the small motor of hollow Cup .
- Specific software ideas
- Mode selection interface
In the selection mode, you can switch the mode by pressing the key , And enter the mode by pressing the key , It uses K1 Press the key to select the mode , It is divided into automatic mode and manual mode ; adopt K2 Enter the selected mode .

2. Manual mode
In manual mode , Press the key to control the rotation and sweeping mode of the fan and the function of exiting the selection interface . In manual mode , Press down K1 Key to accelerate the fan , It is divided into low-speed mode —> Medium speed mode —> High speed mode —> stop it . adopt K3 To control the sweeping , When you press once K3 after , Will enter the sweeping mode , The fan sweeps , Press again K3, Stop sweeping . Press down K4 after , It will exit the manual mode and enter the mode selection interface .

3. Automatic mode
In automatic mode , The system will automatically detect the surrounding environment and decide whether to enter the sweeping mode and turn the fan .
- First, it will detect whether there is someone ahead , If no one , Nothing happened ; If anyone , Get into 2.
- If there is someone ahead , It will detect whether there is someone on the left , If there is no one and the ambient temperature is greater than 27 degree , The fan turns but does not sweep ; If anyone , Get into 3.
- If someone on the left , It will detect whether there is someone on the right , If there is no one and the ambient temperature is greater than 27 degree , The fan rotates and the left half sweeps ; If anyone , And the ambient temperature is greater than 27 degree , The fan turns and 0 C to 180 Du sweeping .
- If the ambient temperature is 27 C to 29 Between degrees , The fan speed is in low speed mode , If the ambient temperature is 29 C to 31 Between degrees , The fan speed is in medium speed mode , If the ambient temperature is 31 Over degrees , The fan speed is in high speed mode .

- Connection of components

notes : If you want to achieve the effect of automatic mode , Stick the motor and infrared module on the propeller of the steering gear , In this way, the desired effect in automatic mode can be better achieved .
边栏推荐
- In the era of super video, what is the solution to the data flood?
- 51 single chip microcomputer - double byte multiplied by double byte
- 【超能云终端创领先机】本地计算云端管理,英特尔助力教育数字化
- 巧用企业网盘收取报告或总结
- Unity - 如何修改一个 Package 或是如何将 Package Local化
- 小程序毕设作品之微信在线教育视频点播学习小程序毕业设计(4)开题报告
- XDC 2022 Intel 技术专场:英特尔软硬件技术构筑云计算架构基石
- Nearly 90% of servers can be saved, but the anti fraud efficiency has increased significantly. Why is PayPal's plan to break the "Ai memory wall" so cost-effective?
- How to realize the association between interfaces in JMeter?
- priority_queue的介绍及其使用
猜你喜欢

【黄啊码】MySQL入门—5、数据库小技巧:单个列group by就会,多个列呢?

Unity - how to modify a package or localize it

XDC 2022 Intel 技术专场:英特尔软硬件技术构筑云计算架构基石

leetcode7-dfs+动态规划+双指针

In tech 2022 | Intel technology product innovation quick view

Multivariate statistical analysis principal component analysis - 01

2022 Yangtze River Delta mathematical modeling: Gearbox Fault Diagnosis

【Notebook系列第七期】OpenVINO预训练模型的的下载和使用方法

Leetcode 931: minimum sum of descent path

PLC OPC 信息模型(DI,PLCopen NodeSets)简介
随机推荐
[database] must know and know at the end of the period ----- Chapter 12 database recovery
leetcode7-dfs+动态规划+双指针
How to use mitmproxy to get data return in automated testing?
图形验证码验证
How does the enterprise post office set up SPF records?
Chapter 2 - create and maintain MySQL database
IDEA及控制台 设置管理员权限
hello world驱动
FTXUI基础笔记(botton按钮组件基础)
[database] must know and be able at the end of the term ----- Chapter 10 database programming
Wechat online education video on demand learning applet graduation design (3) background function
[super cloud terminal to create a leading opportunity] local computing cloud management, Intel helps digitalize Education
C'est génial de jouer vscode comme un effet idea.
小程序毕设作品之微信在线教育视频点播学习小程序毕业设计(1)开发概要
机器学习09:无监督学习
小程序毕设作品之微信电子书阅读小程序毕业设计(7)中期检查报告
小程序毕设作品之微信电子书阅读小程序毕业设计(3)后台功能
Codeforces Round #807 (Div. 2) A~D
【超能云终端创领先机】本地计算云端管理,英特尔助力教育数字化
V4L2学习资料收集