| Because of the shortage of parking spaces,in order to avoid them being preempted,people usually use parking locks to monopolize them nowadays.But the existing parking locks universally have many problems,such as low intelligent degree,insufficient endurance,too expensive and so on.The launch of BLE technology,makes it possible to solve those problems and achieve technical innovation.With low power consumption,low cost,high reliability,fast connection speed,easy to realize mobile short-range connectivity and other features,BLE has been one of the hotspots in current study since proposed.With android 4.3 platform beginning to provide unified support for BLE,the application of BLE is more widely available.Based on the above background,one multi-purpose intelligent parking lock system is developed in the paper,which not only meets the requirement for private use,but also can be rent or shared over the Internet when parking space is idle.Firstly,the research status of parking lock is introduced in the thesis,and then the overall design target of the system is clarified:normal working hours more than 1 year,reliable communication distance 20~30 meter,compact structure,and high intellectualization.And just on this basis,the overall design of the intelligent parking lock system was determined,including mechanical structure design of parking lock,system design of parking spaces detection,low-battery warning design,DC motor control system design,and the design of the Android client APP.Secondly,the components of the intelligent parking lock system are introduced,and the hardware circuits and related software programming designs are described in detail.The system hardware design includes BLE microcontroller CC2540 minimum system design,vehicle detection circuit design based on terrestrial magnetic sensor HMC5883L,motor control circuit,buzzer driver,power detection,etc.The software design focuses on implementation of CC2540 communication program,name and key modification design,parking space detection algorithm,and Android client APP design.Finally,the intelligent parking lock system performance is tested,and on the basis of laboratory test data,working time of the parking lock calculation is analyzed.The experimental results show that the performance of BLE parking lock system designed achieves the desired effect and satisfies the practical requirements. |