news 2026/6/9 22:13:19

【dz-1137】基于单片机的智能停车场系统设计

作者头像

张小明

前端开发工程师

1.2k 24
文章封面图
【dz-1137】基于单片机的智能停车场系统设计

基于单片机的智能停车场系统设计

摘要

随着城市机动车保有量的快速增长,停车场管理效率低、车位信息不透明、缴费流程繁琐等问题日益突出。传统停车场依赖人工引导和收费,不仅耗费人力成本,还易出现车位误判、计费误差等问题,影响用户停车体验。因此,研发一种集车位检测、智能引导、自动计费于一体的智能停车场系统具有重要的现实意义。

本设计提出一种基于 STM32F103C8T6 单片机的智能停车场系统。系统核心功能包括:通过四个红外避障管实时检测四个车位的占用状态,每个车位配备红灯指示,车位占用时红灯点亮;车辆入场时,E18-D80NK 光电传感器触发检测,RFID-RC522 模块识别刷卡信息,车位未满时允许入场,同时 SG90 舵机抬杆,OLED 显示屏显示箭头指引(优先右车位,右满则左指,全满显示 “X”),车辆入场后栏杆放下并开始计费,CN-TTS 语音模块播报 “欢迎光临”;车辆离场时,再次刷卡停止计费,语音播报费用,通过 GM861S 扫码枪完成付费后,舵机自动抬杆,车辆离场后栏杆放下,语音播报 “欢迎下次光临”;OLED 显示屏实时展示空余车位数、停车时长及费用(每小时 5 元);配备按键实现栏杆手动抬放控制。

该系统的作用在于提升停车场管理的智能化与高效性。通过自动车位检测与引导,减少用户寻位时间;RFID 刷卡与扫码付费结合,简化进出流程并确保计费准确;语音播报与显示反馈增强用户交互体验;手动按键控制作为应急保障,提升系统可靠性。此设计为小型停车场提供了低成本、易操作的智能化解决方案,有效优化了停车管理流程,提升了用户停车体验。

关键词:单片机;智能停车场;车位检测;RFID 识别;自动计费

Design of Intelligent Parking Lot System Based on Single Chip Microcomputer

Abstract

With the rapid growth of urban motor vehicle ownership, problems such as low efficiency in parking lot management, opaque parking space information, and cumbersome payment processes have become increasingly prominent. Traditional parking lots rely on manual guidance and charging, which not only consumes labor costs, but also easily leads to problems such as misjudgment of parking spaces and billing errors, affecting the user's parking experience. Therefore, developing an intelligent parking lot system that integrates parking space detection, intelligent guidance, and automatic billing is of great practical significance.

This design proposes an intelligent parking lot system based on STM32F103C8T6 microcontroller. The core functions of the system include: real-time detection of the occupancy status of four parking spaces through four infrared obstacle avoidance tubes, with each parking space equipped with a red light indicator, which lights up when the parking space is occupied; When the vehicle enters the site, the E18-D80NK photoelectric sensor triggers detection, and the RFID-RC522 module recognizes the card swiping information. Entry is allowed when the parking space is not full. At the same time, the SG90 servo motor lifts the pole, and the OLED display screen shows arrow guidance (priority for right parking space, left pointing when right is full, and "X" when full). After the vehicle enters the site, the railing is lowered and billing begins. The CN-TTS voice module broadcasts "Welcome"; When the vehicle leaves, swiping the card again will stop the billing, and the voice will announce the fee. After completing the payment through the GM861S barcode scanner, the servo will automatically lift the pole. After the vehicle leaves, the railing will be lowered, and the voice will announce "Welcome next time"; The OLED display screen displays real-time available parking spaces, parking hours, and fees (5 yuan per hour); Equipped with buttons to achieve manual lifting and lowering control of the railing.

The purpose of this system is to enhance the intelligence and efficiency of parking lot management. Reduce user search time through automatic parking spot detection and guidance; Combining RFID card swiping with QR code payment simplifies the entry and exit process and ensures accurate billing; Voice broadcasting and display feedback enhance user interaction experience; Manual button control serves as an emergency measure to enhance system reliability. This design provides a low-cost and easy-to-use intelligent solution for small parking lots, effectively optimizing the parking management process and enhancing the user parking experience.

Keywords:microcontroller; Intelligent parking lot; Parking space detection; RFID identification; Automatic billing

目 录

1 绪论

1.1 研究背景及意义

1.2 国内外研究现状

1.3 主要内容

2 系统总体方案设计

2.1系统总体设计

2.2 主要模块方案选择

3系统硬件设计

3.1 总体硬件框架

3.2 主控模块电路设计

3.3 车位检测模块电路设计

3.4 车辆检测模块电路设计

3.5 RFID 识别模块电路设计

3.6 栏杆控制模块电路设计

3.7 显示模块电路设计

3.8 扫码枪模块电路设计

3.9 语音播报模块电路设计

3.10 按键模块电路设计

4 系统程序设计

4.1 编程软件介绍

4.2 系统主流程设计

4.3 独立按键

4.4 OLED显示流程设计

4.5 蓝牙模块子流程

4.6 步进电机子流程设计

5实物制作与功能测试

5.1 实物制作

5.2 车位检测与指示功能测试

5.3 车辆进出与计费功能测试

5.4 显示与交互功能测试

5.5 付费与语音提示功能测试

6 总结

参考文献

致谢

附录A 原理图

附录B PCB

附录C 主程序

版权声明: 本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!
网站建设 2026/6/10 9:28:18

Open-AutoGLM项目实战:在Android设备上实现自动操作与ADB键盘控制

项目简介 本文将详细介绍如何使用Open-AutoGLM项目实现对Android设备的自动控制,包括ADB键盘配置和设备连接设置。 ⚠️ 本文章仅供研究和学习使用。严禁用于非法获取信息、干扰系统或任何违法活动。请仔细审阅 使用条款 1. 项目获取与安装 首先,克隆项…

作者头像 李华
网站建设 2026/6/10 9:24:16

30人左右的小企业如何做文件共享?实现文件高效管理

企业团队紧凑、业务灵活,却常被企业文件管理的 “小事” 绊住脚:有人在微信群里翻半小时找历史合同,有人因本地硬盘损坏导致客户资料归零。那么,30人左右的小企业如何优雅地解决文件共享难题? 一、30人小企业文件共享…

作者头像 李华
网站建设 2026/6/10 9:26:47

大模型工程师月薪4万+!国家战略护航,500万人才缺口,小白也能入门的AI学习指南_AI大模型架构师月薪均4.6万,人才缺口500万!

人工智能领域,特别是大模型相关岗位薪资高企(AI架构师月薪超4万),国家政策大力支持,人才缺口达500万。人工智能是多学科交叉专业,核心课程包括机器学习、深度学习等。开设院校众多,可按顶配资源…

作者头像 李华
网站建设 2026/6/10 9:26:15

低代码平台Python插件开发指南(仅限高级工程师掌握的机密方案)

第一章:低代码平台Python插件开发的核心价值在现代软件开发中,低代码平台通过可视化界面显著提升了应用构建效率。然而,面对复杂业务逻辑或特定功能需求时,平台内置组件往往难以满足全部场景。此时,Python插件开发成为…

作者头像 李华
网站建设 2026/6/10 9:27:12

中断导致数据 corruption?,立即掌握C语言环境下的4步防护机制

第一章:中断导致数据 corruption 的根源剖析在现代操作系统和嵌入式系统中,中断是实现异步事件响应的核心机制。然而,若中断处理不当,极易引发数据 corruption,尤其是在共享资源未加保护的场景下。这类问题通常难以复现…

作者头像 李华