项目编号:mcuclub-dz-312
设计简介:
项目名:自行车辅助系统(实物)
项目编号:mcuclub-dz-312
单片机类型:STM32F103C8T6
具体功能:
1、通过充放电一体模块,可利用太阳能板给锂电池充电。锂电池可给整个主板供电
2、通过DS18B20检测环境温度值
3、通过MX1508驱动直流电机(两个按键控制速度),并通过霍尔传感器进行测速,通过计算可获取骑行里程
4、通过MAX30102检测心率值
5、通过按键两个按键分别控制左右转向灯,按下时,对应方向灯闪烁,并蜂鸣器间断提醒
6、通过内部RTC获取时间,并可通过按键修正
7、通过OLED显示数据(时间、温度、心率、车速及骑行里程)
8、通过蓝牙可将所有数据上传到手机端
总字数:16387
摘 要
近年来,随着电动自行车的使用变多,安全出行、环保出行越来越收到重视。传统的电动自行车的车速是通过手把进行调速,调速系统基于开环控制,安全性和舒适性都存在不足,为了有效提高出行的安全性,设计一款自行车辅助系统十分必要。
本设计以STM32单片机作为主控芯片,通过MAX30102检测司机心率值,通过DS18B20检测行驶环境温度值,通过MX1508驱动直流电机驱动车轮,并通过霍尔传感器进行测速,从而计算获取骑行里程,通过两个按键分别控制左右转向灯,当按键按下时,对应方向灯闪烁,并蜂鸣器间断提醒,并通过OLED显示时间、温度、心率、车速及骑行里程。此外,还可以通过蓝牙可将所有数据上传到手机端。各模块相互配合,共同完成自行车辅助系统的设计。
关键词:自行车辅助系统;显示屏;单片机;传感器;报警
Abstract
In recent years, with the increasing use of electric bicycles, safe travel and environmentally friendly travel have received more and more attention. The speed of the traditional electric bicycle is regulated by the handlebar, and the speed regulation system is based on open loop control, which has shortcomings in safety and comfort. In order to effectively improve the safety of travel, it is necessary to design a bicycle assistance system.
In this design, STM32 single chip microcomputer is used as the main control chip, MAX30102 is used to detect the driver’s heart rate, DS18B20 is used to detect the driving environment temperature, MX1508 is used to drive the DC motor to drive the wheels, and Hall sensor is used to measure the speed, so as to calculate and obtain the cycling mileage. Two keys are used to control the left and right turn signals respectively. When the key is pressed, the corresponding direction light flashes, and the buzzer intermittens the reminder, and the time, temperature, heart rate, speed and mileage are displayed through OLED. In addition, all data can be uploaded to the mobile phone via Bluetooth. The modules cooperate with each other to complete the design of the bicycle auxiliary system.
Key words: bicycle assistance system; Display screen; Single-chip computer; Sensor; Give an alarm
目 录
第1章 绪 论
第2章 系统设计分析
第3章 控制系统硬件设计
第4章 系统程序设计
第5章 实物测试
总 结
参考文献
附 录