news 2026/8/29 6:08:15

【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/8/29 6:02:55

【dz-1141】密码锁

摘要 随着社会安全意识的不断提升,对出入口安全防护的需求日益增长。传统机械锁存在钥匙易丢失、复制难度低、安全性不足等问题,难以满足现代生活和工作对安全防护的高要求。 基于 STC89C52 单片机的密码锁,整合了 44 矩阵键盘、AT24C02 存…

作者头像 李华
网站建设 2026/8/21 11:55:11

《从接口到架构:Python持久内存编程深度指南》

长期深耕数据密集型应用的开发实践,会清晰感知到Python在持久内存领域的进化轨迹—早期它只是底层技术的“上层翻译者”,通过封装接口降低开发者的使用门槛,而随着技术实践的深入,Python凭借自身动态特性与生态优势,逐渐构建起一套独特的“灵活存续”编程逻辑,让持久内存…

作者头像 李华
网站建设 2026/8/25 13:14:10

计算机毕设Java苗木交易互助网站 基于Java的苗木交易互助平台设计与实现 Java技术驱动的苗木交易互助管理系统开发

计算机毕设Java苗木交易互助网站l6l169 (配套有源码 程序 mysql数据库 论文) 本套源码可以在文本联xi,先看具体系统功能演示视频领取,可分享源码参考。随着信息技术的飞速发展,传统的苗木交易管理方式逐渐暴露出效率低下、信息不透…

作者头像 李华
网站建设 2026/8/27 23:27:16

智能重构新范式:AI如何破解Java遗留系统改造难题

在企业数字化转型进程中,Java遗留系统的现代化改造始终是技术团队面临的重要挑战。传统重构过程中,开发人员需要应对代码结构复杂、文档缺失、技术债务累积等多重障碍,这些因素显著增加了项目风险和开发成本。遗留系统重构的核心挑战技术债务…

作者头像 李华
网站建设 2026/8/29 3:30:15

渲染引擎多线程优化避坑指南(资深架构师亲授10年踩坑经验)

第一章:渲染引擎多线程优化的挑战与现状现代图形应用对实时性和性能的要求日益提升,渲染引擎作为核心组件,其多线程优化成为关键技术瓶颈。随着硬件多核架构的普及,传统单线程渲染模式已无法充分利用计算资源,导致CPU利…

作者头像 李华
网站建设 2026/8/26 5:27:46

【系统级编程必修课】:深入理解内存布局的7个关键维度

第一章:内存布局精确控制在系统级编程中,内存布局的精确控制是优化性能与确保硬件兼容性的关键。尤其是在操作系统开发、嵌入式系统或高性能计算场景中,开发者需要直接干预数据在内存中的排列方式,以满足对齐要求、减少缓存行冲突…

作者头像 李华