当前位置:网站首页>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 .
边栏推荐
- 论文精读系列文章
- Multivariate statistical analysis principal component analysis - 01
- 微信附近的人小程序怎么开(开通附近小程序的方法)
- [database] must know and be able at the end of the term ----- Chapter 11 concurrency control
- Live broadcast of cloud intelligence face to face is waiting for you: computing power redefines productivity
- Record a troubleshooting when overseas pictures cannot be loaded
- H5 embedded app, how to communicate with the web? H5 and web communication
- 通过Dao投票STI的销毁,SeekTiger真正做到由社区驱动
- 图形验证码验证
- Unity Shader - “快速“ 次散射 (Fast SSS : Fast Subsurface Scattering)
猜你喜欢

小程序毕设作品之微信电子书阅读小程序毕业设计(8)毕业设计论文模板

笔记本电脑插入耳机仍然外放(亲测有效)

小程序毕设作品之微信电子书阅读小程序毕业设计(3)后台功能

Awesome. It turns vscode into idea. It's a little wow

Wechat Online Education video on Demand Learning of applet Graduation Design (3) Background Function

High performance and economy: aoteng persistent memory helps mobile cloud cope with severe memory challenges

Leetcode 931: minimum sum of descent path

小程序毕设作品之微信在线教育视频点播学习小程序毕业设计(4)开题报告

Wechat online education video on demand learning applet graduation design (1) development outline

Wechat online education video on demand learning applet graduation project (4) opening report
随机推荐
Buddy: initialize memory domain
C语言详解系列——循环语句的练习与巩固,二分查找的讲解
C# 使用this关键字串联构造函数调用方法
【数据库】期末必知必会-----第十章 数据库编程
H5 embedded app, how to communicate with the web? H5 and web communication
IN Tech 2022|英特尔技术产品创新速览
Wechat Online Education video on Demand Learning of applet Graduation Design (3) Background Function
软件测试-进阶篇
[database] must know and know at the end of the period ----- Chapter 12 database recovery
小程序毕设作品之微信在线教育视频点播学习小程序毕业设计(2)小程序功能
IDEA配置SFTP,SSH非常方便的部署以及定位错误日志
How to filter viruses / spam more effectively!
hello world驱动
Cocos creator 3.0 Basics - common operations
基于OpenVINO Model Server打造人像抠图服务器
【数据库】期末必知必会-----第二章 关系数据模型
牛客2021训练联盟热身训练赛Interstellar Love(并查集)
Realize the dual opening of wechat on the computer (log in to two wechat)
leetcode7-dfs+动态规划+双指针
How to use mitmproxy to get data return in automated testing?