Shenzhen ZTRON Microelectronics Co., Ltd
Telephone
0755-8299 4126

Internet of things

Automatic Tracking Smart Luggage Solution


Design of automatic tracking intelligent luggage based on bluetooth


Since the 21st century, with the development of the information revolution, intelligent control technology has been widely used in real life. Many electronic devices have added intelligent labels, and intelligent equipment in life can be seen everywhere, such as smart bracelets, drones , automatic driving, skin circuits, automatic sweeping robots and other novel smart devices emerge in an endless stream, greatly enriching people's lives. As we all know, 2013 is the first year of smart wearable devices. Since Google released Google glass, smart devices have set off a new wave.


The rapid development of smart devices, on the one hand, reflects that people's requirements for electronic devices are not only comfortable and practical, but also put forward new requirements for technology. Only novel styles and eye-catching technologies can attract consumers. On the other hand, it reflects that people's life pursuits and living conditions have also been greatly improved, leading to people's pursuit of electronic products more in line with spiritual pursuits. However, there are still many traditional manufacturing industries that are stagnant in terms of intelligent control. Just as the luggage has evolved from its birth to the present, it is only a change in materials. Although the weight has been reduced to a certain extent, the quality of people's travel has not changed. For this reason, this paper proposes to apply the automatic tracking technology to the luggage, so as to truly achieve convenient travel.


智能行李箱方案


1. The overall design scheme of automatic tracking smart luggage


The functional structure of the automatic tracking intelligent luggage system based on Bluetooth 4.0 we designed is as follows: a master Bluetooth is paired with two slave Bluetooth at the same time, thereby constructing a Bluetooth wireless communication network.


The master Bluetooth extracts the Received Signal Strength Indication (RSSI) data from two Bluetooth slaves from the protocol stack and transmits them to the K60 microcontroller for processing. The microcontroller controls the movement of the luggage according to the processed data direction; the GPS module acquires data that meets the NMEA-0183 protocol, the data can be processed by the microcontroller and sent to the server, and the user can obtain the geographical location information of the suitcase from the server; the weight, temperature and humidity data collected by the sensor are displayed on the LCD screen in real time show.


2. Automatically track the development process of smart luggage


2.1 Bluetooth pairing function design


Use the IAR compiler software to develop the Bluetooth4.0 module, and modify the parameters such as the broadcast interval and the maximum number of scanning slaves.


After power-on, the master Bluetooth starts broadcasting scanning, and obtains the mac address of the slave Bluetooth. After selecting and confirming, the Bluetooth master-slave pairing can be realized. The communication process after pairing is no longer interfered by other external signals, thus ensuring the uniqueness and stability of Bluetooth pairing, that is, two slave Bluetooth can only be paired with one master Bluetooth and the working process is not easy to be interrupted.


2.2 Automatic follow function design


The master Bluetooth extracts the RSSI data of two slave Bluetooth from the protocol stack, and sends the data to the microcontroller through the serial port. The microcontroller uses a 10ms timer interrupt to receive and store two RSSI data sent by the master Bluetooth in time-sharing, and performs pulse mean filtering on the data to obtain two stable RSSI data after eliminating clutter. The microcontroller compares the two stable RSSI values. According to the smaller the RSSI value, the weaker the signal strength and the farther the distance is, it is judged that the one with the smaller RSSI is the farthest slave Bluetooth. The RSSI data of the two slaves is made a difference, and the difference is added to the servo control through the PID algorithm, so that the automatic following of the suitcase can be realized. In addition, the microcontroller controls the distance between the suitcase and the user by setting a threshold of RSSI. When the current signal strength of RSSI is greater than the threshold, the suitcase will slow down, otherwise, it will accelerate, so as to ensure the actual distance between the user and the suitcase. The distance can be kept within a certain range.


2.3 LCD display function design


The LCD screen can display the temperature, humidity and weight of the system. In view of the problem that the temperature, humidity and weight do not change significantly in a short period of time, this paper designs a 1s timer interrupt to obtain and process the temperature, humidity and weight data. The temperature and humidity module uses sensitive components to collect signals and outputs the voltage to the microcontroller through the conversion circuit. Different temperature and humidity will lead to different voltage values output to the microcontroller. The microcontroller inputs commands according to time sequence in an interrupt cycle to obtain the voltage value collected by the temperature and humidity sensor, and then displays the temperature and humidity reflected by the voltage value on the LCD screen.


The acquisition of the weight is reflected by the change of the piezoresistor value inside the pressure sensor, and the weight of the item is calculated based on this. The pressure sensor converts the collected signal into a voltage value with an amplifying circuit, converts the voltage value into a digital signal through the AD module, and then transmits it to the microcontroller through I2C, and finally displays the data on the LCD screen in the format of weight. In addition, this paper designs a buzzer, which can make a sound when the weight of the item is too heavy, so as to remind the item that it is overweight.


2.4 GPS positioning function design of suitcase


This design adopts an industrial-grade GPRS wireless communication positioning function module independently developed by Yitong Xingyun Technology Development Co., Ltd. The module uses the SIM card and the operator's GPRS network to provide wireless network data communication, and regularly reports GPS coordinate information by remotely setting the module .


The design writes the GPS control part into the 10ms timer interrupt on the hardware, and the microcontroller acquires the GPS data every 10ms, and converts the obtained MEA-0183 protocol data into geographic coordinate data, and uses standard AT commands to control The GPRS module realizes the networking function and sends GPS geographic coordinate data to the ET-iLink IoT cloud server, and the user can check the geographic location of the suitcase by logging in to the server on the client.


The software is designed to connect to the ET-iLink Internet of Things cloud server to access the database, extract the location information of the current automatic tracking suitcase, and embed the location information into the AutoNavi map. The cart icon is used to indicate the position of the suitcase on the map, and the user can determine the driving route of the suitcase by observing the movement of the cart position.


3. Functional advantages of automatic tracking of smart luggage


The designed automatic tracking suitcase has the functions of automatic following, positioning and real-time display of the weight of the item and the humidity of the environment. The unique mac address of the Bluetooth module and the selection and pairing of the main Bluetooth after power-on ensure that the external signal is difficult to interfere during the automatic follow-up process and the communication process is stable. The positioning of the GPS module ensures that the lost suitcase can be located and retrieved at any time during the user's use, avoiding the loss of the user. The humanized display of the LCD screen makes the user's travel more convenient. The user can check the temperature and humidity of the surrounding environment and the weight of the luggage at any time. In addition, the suitcase designed in this paper has low cost, the realization of functions meets the needs of the public, and is easy to promote, so it has a high market prospect.


Summarize


This paper designs a low-power automatic tracking system based on Bluetooth4.0, and conducts in-depth research on hardware system construction and software algorithm design. The automatic tracking system has good adaptability and can eliminate the interference of various external signals. At the same time, the system has many advantages such as low power consumption, long battery life, humanized operation, intelligent anti-lost, etc., and can complete real-time tracking and positioning. In addition, the automatic tracking and positioning system combines automatic control theory with artificial intelligence, which has a crucial impact on the design of automatic tracking luggage.

  • TOP