A smart bracelet with indoor positioning function
Through the main control chip and wireless data transmission chip of the smart bracelet combined with the ZigBee network, the indoor positioning and escape path planning of the smart bracelet are realized, which solves the problem that the existing smart bracelets cannot meet the indoor positioning needs and provides a solution in emergency situations. Effective positioning and escape assistance functions.
Patent Information
- Application Number
- CN202211156534.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-22
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-09-22
AI Technical Summary
The functions of existing smart bracelets are mainly focused on motion detection and health management, which cannot meet the needs of indoor positioning and escape path planning.
A smart bracelet is designed, which uses the main control chip combined with the wireless data transmission chip and ZigBee network to collect the vital sign data of the wearer, and calculates the current location and plans the escape route through the Internet of Things cloud platform.
It realizes the indoor positioning and escape path planning functions of smart bracelets, solves the complexity and efficiency problems of space length and node coordinate measurement in traditional methods, and provides effective positioning and escape assistance in emergencies such as fires.
Smart Images

Figure CN115515225B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of mobile devices, and more particularly to a smart bracelet with an indoor positioning function. Background Art
[0002] my country's Internet technology is developing rapidly, and mobile devices are widely used. In order to better meet people's needs in life and work, smart wearable devices have been rapidly developed in academia and industry. Among them, smart bracelets have been favored by the market due to their convenience of carrying and long battery life. However, the functions of the current bracelets are mainly sports detection and health management. Although some are also equipped with outdoor navigation functions, they cannot meet the needs of indoor positioning. Summary of the invention
[0003] The purpose of the present invention is to design and develop a smart bracelet with indoor positioning function, which realizes indoor positioning and escape path planning of the smart bracelet through a main control chip combined with a wireless data transmission chip and a ZigBee network.
[0004] The technical solution provided by the present invention is:
[0005] A smart bracelet with indoor positioning function, comprising:
[0006] the power supply; and
[0007] A main control chip, comprising a plurality of VCC3V3 pins, a PA2 pin, a PA3 pin, a PB7-PB9 pin, a PB13-PB15 pin, a PA6 pin and a plurality of ground pins, wherein the plurality of VCC3V3 pins are in the same electrical network, and any one of the VCC3V3 pins is connected to the power supply, and is responsible for receiving, processing and transmitting data;
[0008] A heart rate and blood oxygen circuit, which is connected to any VCC3V3 pin and PB7-PB9 pin of the main control chip through multiple pins, and is used to collect the heart rate and blood oxygen value of the wearer;
[0009] A wireless data transmission chip, comprising a P0_2 pin and a P0_3 pin, wherein the P0_2 pin is connected to the PA2 pin, and the P0_3 pin is connected to the PA3 pin, for receiving data and sending data packets;
[0010] A display screen circuit, which is connected to any one of the VCC3V3 pins, PB13-PB15 pins and PA6 pin of the main control chip through multiple pins, and is used to display the heart rate value, blood oxygen value and prompt information of the wearer;
[0011] Among them, the smart bracelet is added to the ZigBee network as a mobile node, and the wearer's vital signs values and received reference node data packets are packaged and submitted to the gateway node. The Internet of Things cloud platform receives and stores the data uploaded by the gateway node and pushes it to the system application server to obtain the wearer's current location and the optional planned escape route.
[0012] Preferably, the main control chip is a STM32F103C8T6 chip, and the main control chip also includes an OSC32IN pin, an OSC32 OUT pin, an OSC IN pin, an OSC OUT pin, an NRST pin, a PA13 pin, a PA14 pin, a PB10 pin, a PB11 pin and 20 vacant pins.
[0013] Preferably, the display screen circuit is composed of a 262K color single-chip TFT driver ST7735S chip, and the display screen circuit includes:
[0014] A first GND pin, a first VCC pin, a DO pin, a DI pin, a RST pin, and a DC pin;
[0015] The first GND pin is grounded, the first VCC pin is connected to any VCC3V3 pin of the main control chip, the DO pin is connected to the PB15 pin, the DI pin is connected to the PB14 pin, the RST pin is connected to the PB13 pin, and the DC pin is connected to the PA6 pin.
[0016] The heart rate and blood oxygen circuit is composed of a MAX30102 chip, and the heart rate and blood oxygen circuit includes:
[0017] The second VCC pin, the SDA pin, the SCL pin, the second GND pin and the INT pin;
[0018] The second VCC pin is connected to any VCC3V3 pin of the main control chip, the SDA pin is connected to the PB9 pin, the SCL pin is connected to the PB8 pin, the second GND pin is grounded, and the INT pin is connected to the PB7 pin.
[0019] Preferably, the wireless data transmission chip is a CC2530 chip, and the wireless data transmission chip includes:
[0020] A plurality of ground pins, P0_4-P0_6 pins, P2_1-P2_2 pins, RESET N pin, RF_P pin, RF_N pin, RBIAS pin, XOSC_Q2 pin, XOSC_Q1 pin, DCOUPL pin, XOSC32K_Q1 pin, XOSC32K_Q2 pin, DVDD1 pin, DVDD2 pin, AVDD1-AVDD6 pins and 12 vacant pins, wherein the DVDD1 pin, DVDD2 pin and AVDD1-AVDD6 pins are connected in parallel to form a VCC3V3 pin, and the VCC3V3 pin is connected to a power supply;
[0021] are all connected to the power supply;
[0022] The wireless data transmission chip also includes:
[0023] A first capacitor, one end of which is connected to the DCOUPL pin, and the other end of which is grounded;
[0024] The second capacitor to the ninth capacitor are connected in parallel between the VCC3V3 pin and any ground pin respectively;
[0025] A first resistor, one end of which is connected to the RESET N pin;
[0026] A tenth capacitor, one end of which is connected to the RESET N pin, and the other end is grounded;
[0027] One end of the second resistor is connected to the RBIAS pin, and the other end is grounded.
[0028] Preferably, it also includes:
[0029] a main clock circuit, comprising an eleventh capacitor, a twelfth capacitor and a first crystal oscillator;
[0030] Wherein, the first crystal oscillator includes two pins, one of which is connected to the OSC IN pin and one end of the eleventh capacitor, and the other pin is connected to the OSC OUT pin and one end of the twelfth capacitor, and the other ends of the eleventh capacitor and the twelfth capacitor are both grounded;
[0031] The RTC clock circuit includes a thirteenth capacitor, a fourteenth capacitor and a second crystal oscillator;
[0032] The second crystal oscillator includes two pins, one of which is connected to the OSC32 IN pin and one end of the thirteenth capacitor, and the other pin is connected to the OSC32 OUT pin and one end of the fourteenth capacitor, and the other ends of the thirteenth capacitor and the fourteenth capacitor are both grounded;
[0033] The SWD interface circuit includes a first connector and a fifteenth capacitor;
[0034] Among them, the first connector includes a first pin, a second pin, a third pin and a fourth pin, the first pin is connected to the ground and one end of the fifteenth capacitor at the same time, the other end of the fifteenth capacitor is connected to any VCC3V3 pin of the main control chip, the second pin is connected to the PA14 pin, the third pin is connected to the PA13 pin, and the fourth pin is connected to any VCC3V3 pin of the main control chip.
[0035] Preferably, it also includes:
[0036] a high-frequency clock circuit, comprising a sixteenth capacitor, a seventeenth capacitor and a third crystal oscillator;
[0037] Wherein, the third crystal oscillator is a 4-pin crystal oscillator, the 2nd and 4th pins are suspended, the 1st pin is connected to the XOSC_Q2 pin and one end of the 16th capacitor at the same time, the other end of the 16th capacitor is grounded, the 3rd pin is connected to the XOSC_Q1 pin and one end of the 17th capacitor at the same time, and the other end of the 17th capacitor is grounded;
[0038] a low-frequency clock circuit, comprising an eighteenth capacitor, a nineteenth capacitor and a fourth crystal oscillator;
[0039] Wherein, the fourth crystal oscillator is a 2-pin crystal oscillator, the first pin is connected to the XOSC32K_Q1 pin and one end of the eighteenth capacitor at the same time, the other end of the eighteenth capacitor is grounded, the second pin is connected to the XOSC32K_Q2 pin and one end of the nineteenth capacitor at the same time, the other end of the nineteenth capacitor is grounded;
[0040] An antenna circuit, which is composed of a 2450BM15A0002 chip, a third resistor, a fourth resistor, a fifth resistor and a ceramic antenna;
[0041] Wherein, the 2450BM15A0002 chip includes a fifth pin, a sixth pin, a seventh pin, an eighth pin, a ninth pin and a tenth pin, the fifth pin is connected to one end of the third resistor and one end of the fourth resistor, the other end of the third resistor is connected to one end of the fifth resistor and a feedback point of the ceramic antenna, the sixth pin, the ninth pin and the tenth pin are simultaneously connected to the ground, the other end of the fourth resistor and the other end of the fifth resistor, the seventh pin is connected to the RF_N pin, and the eighth pin is connected to the RF_P pin;
[0042] The JTAG interface circuit is composed of a second connector, which includes an eleventh pin, a twelfth pin, a thirteenth pin, a fourteenth pin and a fifteenth pin, the eleventh pin is connected to the VCC3V3 pin of the wireless data transmission chip, the twelfth pin is connected to the P2_1 pin, the thirteenth pin is connected to the P2_2 pin, the fourteenth pin is connected to the RESET_N pin, and the fifteenth pin is grounded.
[0043] Preferably, it also includes:
[0044] A voltage stabilizing circuit, which is composed of a TPS73701DRBR chip, a sixth resistor, a seventh resistor, a twentieth capacitor, a twenty-first capacitor and a twenty-second capacitor;
[0045] Wherein, the TPS73701DRBR chip includes a sixteenth pin, a seventeenth pin, an eighteenth pin, a nineteenth pin, a twentieth pin, a twenty-first pin, a twenty-second pin, a twenty-third pin and a twenty-fourth pin, the sixteenth pin is simultaneously connected to one end of the seventh resistor, one end of the twenty-first capacitor, one end of the twenty-second capacitor and any one VCC3V3 pin of the main control chip, the eighteenth pin is simultaneously connected to one end of the sixth resistor and the other end of the seventh resistor, the 20th pin and the twenty-third pin are simultaneously connected to the power supply and one end of the 20th capacitor, the nineteenth pin and the twenty-fourth pin are simultaneously connected to the other end of the 20th capacitor, the other end of the 21st capacitor, the other end of the 22nd capacitor, the other end of the sixth resistor and the ground, and the seventeenth pin, the twenty-first pin and the twenty-second pin are suspended;
[0046] A charging circuit, which is composed of a TP4057 chip, a light-emitting diode chip, an eighth resistor, a ninth resistor, a twenty-third capacitor, a twenty-fourth capacitor and a twenty-fifth capacitor;
[0047] Among them, the TP4057 chip includes a 25th pin, a 26th pin, a 27th pin, a 28th pin, a 29th pin and a 30th pin, and the light-emitting diode chip includes a 31st pin, a 32nd pin, a 33rd pin and a 34th pin. The 31st pin and the 33rd pin are connected to one end of the eighth resistor, and the other end of the eighth resistor is connected to the power supply. The 32nd pin is simultaneously connected to the 29th pin and the P0_4 pin, and the 34th pin is simultaneously connected to the 25th pin and the P0_5 pin, the 26th pin is grounded, the 27th pin is simultaneously connected to the power supply and one end of the 23rd capacitor, and the other end of the 23rd capacitor is grounded, the 28th pin is simultaneously connected to one end of the 24th capacitor and one end of the 25th capacitor, and the 28th pin can be selectively connected to the power adapter, the other end of the 24th capacitor and the other end of the 25th capacitor are both grounded, the 30th pin is connected to one end of the ninth resistor, and the other end of the ninth resistor is grounded.
[0048] Preferably, the power supply is a 3.7V rechargeable battery, and the power adapter can be selectively connected to the mains.
[0049] Preferably, the creation of the ZigBee network specifically includes the following steps:
[0050] Step 1: The gateway node creates a ZigBee network;
[0051] Step 2: The reference node is fixed in the spatial position of the ZigBee network and stores the number and position coordinate information, and sends a data packet with the number and position coordinate information in the form of broadcast every 5 seconds;
[0052] Step 3: After joining the ZigBee network, the smart bracelet receives the data packet of the reference node wirelessly, selects the three reference node data with the strongest received signal strength value, reads the reference node number, location coordinates and received signal strength value in the AF message structure carried in the data packet, appends the heart rate and blood oxygen value at the end of the data packet to form a new data packet for storage and sends it to the gateway node in unicast form;
[0053] Step 4: The gateway node uploads the new data packet to the IoT cloud platform;
[0054] Step 5: The IoT cloud platform pushes the data to the system application server, which saves the data and calculates the current position of the wearer, and plans an escape route for the trapped persons when a fire occurs.
[0055] Preferably, the calculating the current position of the wearer specifically includes:
[0056] Calculate the distance between the smart bracelet and three reference nodes:
[0057] V RSSI =-10nlgd i -A RSSI ;
[0058] Where, d i is the distance between the i-th reference node and the smart bracelet, i=1,2,3, A RSSI is the signal strength at 1m away from the reference node, n is the attenuation coefficient of the environment to the signal, n = 3.25 ~ 4.5, V RSSI The power attenuation value of the smart bracelet receiving reference node information;
[0059] Calculate the coordinates of the smart bracelet:
[0060]
[0061] Where (x, y) is the coordinate of the smart bracelet, (x1, y1) is the coordinate of the first reference node, (x2, y2) is the coordinate of the second reference node, and (x3, y3) is the coordinate of the third reference node;
[0062] After converting the coordinate calculation formula of the smart bracelet, x and y are used as the quantities to be calculated, and the equation group is solved to calculate the current x-axis coordinate and y-axis coordinate values of the person;
[0063] The planned escape path is searched by using the A-Star heuristic search algorithm.
[0064] The beneficial effects of the present invention are:
[0065] (1) The present invention designs and develops a smart bracelet with indoor positioning function, which solves the problem that the existing smart bracelets are mainly used for motion detection and health management and cannot perform indoor positioning. The present invention improves and optimizes the traditional method of using a total station to measure space length and node coordinates.
[0066] (2) The present invention designs and develops a smart bracelet with indoor positioning function, which combines with the ZigBee network to realize the functions of locating trapped persons and planning escape routes in the event of a fire. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] Figure 1 This is a schematic diagram of the structure of the smart bracelet with indoor positioning function according to the present invention.
[0068] Figure 2 This is a circuit diagram of the main control chip of the present invention.
[0069] Figure 3 This is a circuit diagram of the wireless data transmission chip of the present invention.
[0070] Figure 4 4 is a circuit diagram of the main clock circuit of the present invention.
[0071] Figure 5 The circuit diagram of the RTC clock circuit of the present invention is shown in FIG.
[0072] Figure 6 The figure is a circuit diagram of the display screen circuit of the present invention.
[0073] Figure 7 The figure is a circuit diagram of the heart rate blood oxygen circuit of the present invention.
[0074] Figure 8 4 is a circuit diagram of the SWD interface circuit of the present invention.
[0075] Fig. 9 The circuit diagram of the high-frequency clock circuit of the present invention is shown in FIG.
[0076] Fig.10 The circuit diagram of the low-frequency clock circuit of the present invention is shown in FIG.
[0077] Fig.11 is a circuit diagram of the antenna circuit of the present invention.
[0078] Fig.12 The circuit diagram of the JTAG interface circuit of the present invention is shown in FIG.
[0079] Fig.13 The circuit diagram of the voltage stabilizing circuit of the present invention is shown in FIG.
[0080] Fig.14 The circuit diagram of the charging circuit of the present invention is shown in FIG. DETAILED DESCRIPTION
[0081] The present invention is further described in detail below so that those skilled in the art can implement it according to the description.
[0082] like Figure 1 As shown, the present invention provides a smart bracelet with indoor positioning function, comprising:
[0083] Main control chip 110, wireless data transmission chip 120, main clock circuit 131, RTC clock circuit 132, display screen circuit 133, heart rate blood oxygen circuit 134, SWD interface circuit 135, high frequency clock circuit 141, low frequency clock circuit 142, antenna circuit 143, JTAG interface circuit 144, voltage stabilizing circuit 150, power supply 160, charging circuit 170.
[0084] like Figure 2As shown, the main control chip 110 is a STM32F103C8T6 chip (U1 chip), which has a high degree of internal resource integration, greatly reduces the size of the smart bracelet, and has fast processing capabilities and large storage space.
[0085] The U1 chip 110 includes an OSC32 IN pin, an OSC32 OUT pin, an OSC IN pin, an OSC OUT pin, a VSSA pin, 4 VCC3V3 pins, a PA2 pin, a PA3 pin, a PA6 pin, a PA13 pin, a PA14 pin, a PB2 pin, PB7-PB9 pins, PB13-PB15 pins, a VSS_1 pin, a VSS_2 pin, a VSS_3 pin, a BOOT0 pin and 23 vacant pins.
[0086] Among them, the four VCC3V3 pins are all power pins of the main control chip 110 and are in the same electrical network, and the VSSA pin, PB2 pin, VSS_1 pin, VSS_2 pin, VSS_3 pin and BOOT0 pin are all ground pins.
[0087] like Figure 3 As shown, the wireless data transmission chip 120 adopts the CC2530 chip (U2 chip), supports the ZigBee protocol, and has wireless communication function. In the ZigBee wireless network, it can communicate wirelessly with its nodes through the protocol stack, and can calculate the distance based on the received RSSI value to realize the indoor positioning function of personnel.
[0088] The U2 chip 120 includes 5 ground pins, P0_2-P0_5 pins, P2_1-P2_2 pins, RESET N pin, RF_P pin, RF_N pin, RBIAS pin, XOSC_Q2 pin, XOSC_Q1 pin, DCOUPL pin, XOSC32K_Q1 pin, XOSC32K_Q2 pin, DVDD1 pin, DVDD2 pin, AVDD1-AVDD6 pins and 13 vacant pins.
[0089] Among them, the DCOUPL pin is connected to one end of the first capacitor C1, and the other end of the first capacitor C1 is grounded, which is mainly used to decouple the 1.8V digital power supply of the DCOUPL pin; the DVDD1 pin, DVDD2 pin and AVDD1-AVDD6 pins are connected in parallel to form a VCC3V3 pin, and the VCC3V3 pin is connected to the power supply, and 8 capacitors (the second capacitor C2 to the ninth capacitor C9) are connected in parallel between the VCC3V3 pin and any ground pin, which are used to decouple the digital power supplies DVDD1, DVDD2 and the analog power supplies AVDD1-AVDD6, and provide a more stable power supply for the chip U2 while also reducing the noise coupled to the power supply end by the components; the RESET The N pin is connected to one end of the first resistor R1 and one end of the tenth capacitor C10, and the other end of the tenth capacitor C10 is grounded, which is used to control the reset time; the RBIAS pin is connected to one end of the second resistor R2, and the other end of the second resistor R2 is grounded, the P0_2 pin is connected to the PA2 pin of the U1 chip, and the P0_3 pin is connected to the PA3 pin of the U1 chip, thereby realizing data communication between the U2 chip and the U1 chip.
[0090] The VCC3V3 pin of the U2 chip and the four VCC3V3 pins of the U1 chip are in the same electrical network.
[0091] like Figure 4 As shown, the master clock circuit 131 is composed of an eleventh capacitor C11, a twelfth capacitor C12 and a first crystal oscillator Y1. The first crystal oscillator Y1 includes two pins, one of which is connected to the OSC IN pin of the U1 chip and one end of the eleventh capacitor C11, and the other pin is connected to the OSC OUT pin of the U1 chip and one end of the twelfth capacitor C12. The other ends of the eleventh capacitor C11 and the twelfth capacitor C12 are both grounded, so as to provide a system clock for the U1 chip.
[0092] like Figure 5 As shown, the RTC clock circuit 132 is composed of a thirteenth capacitor C13, a fourteenth capacitor C14 and a second crystal oscillator Y2. The second crystal oscillator Y2 includes two pins, one of which is connected to the OSC32 IN pin of the U1 chip and one end of the thirteenth capacitor C13, and the other pin is connected to the OSC32 OUT pin of the U1 chip and one end of the fourteenth capacitor C14. The other ends of the thirteenth capacitor C13 and the fourteenth capacitor C14 are both grounded, so as to provide a real-time clock for the U1 chip.
[0093] like Figure 6As shown, the display screen circuit 133 is composed of a 262K color single-chip TFT driver ST7735S chip (J1 chip), and the J1 chip has six pins, namely a first GND pin, a first VCC pin, a DO pin, a DI pin, a RST pin and a DC pin, wherein the first GND pin of the J1 chip is grounded, the first VCC pin of the J1 chip is connected to any VCC3V3 pin of the U1 chip, the DO pin of the J1 chip is connected to the PB15 pin of the U1 chip, the DI pin of the J1 chip is connected to the PB14 pin of the U1 chip, the RST pin of the J1 chip is connected to the PB13 pin of the U1 chip, and the DC pin of the J1 chip is connected to the PA6 pin of the U1 chip, which is used to display the heart rate, blood oxygen value and prompt information of the person wearing the smart bracelet.
[0094] like Figure 7 As shown, the heart rate and blood oxygen circuit 134 is composed of a MAX30102 chip (J2 chip), and the J2 chip has five pins, namely a second VCC pin, an SDA pin, an SCL pin, a second GND pin and an INT pin, wherein the second VCC pin of the J2 chip is connected to any VCC3V3 pin of the U1 chip, the SDA pin of the J2 chip is connected to the PB9 pin of the U1 chip, the SCL pin of the J2 chip is connected to the PB8 pin of the U1 chip, the second GND pin of the J2 chip is grounded, and the INT pin of the J2 chip is connected to the PB7 pin of the U1 chip, for collecting the heart rate and blood oxygen value of the wearer.
[0095] like Figure 8 As shown, the SWD interface circuit 135 is composed of a first connector P1 and a fifteenth capacitor C15, the connector P1 has four pins, namely a first pin, a second pin, a third pin and a fourth pin, the first pin of the first connector P1 is connected to the ground and one end of the fifteenth capacitor C15 at the same time, the other end of the fifteenth capacitor C15 is connected to any VCC3V3 pin of the U1 chip, the second pin of the first connector P1 is connected to the PA14 pin of the U1 chip, the third pin of the first connector P1 is connected to the PA13 pin of the U1 chip, and the fourth pin of the first connector P1 is connected to any VCC3V3 pin of the U1 chip, which is used for program downloading of the U1 chip and program debugging during operation.
[0096] like Fig. 9As shown, the high-frequency clock circuit 141 is composed of a sixteenth capacitor C16, a seventeenth capacitor C17 and a third crystal oscillator Y3. The third crystal oscillator Y3 is a 4-pin crystal oscillator. The second and fourth pins of the third crystal oscillator Y3 are suspended, the first pin of the third crystal oscillator Y3 is connected to the XOSC_Q2 pin of the U2 chip and one end of the sixteenth capacitor C16 at the same time, the other end of the sixteenth capacitor C16 is grounded, the third pin of the third crystal oscillator Y3 is connected to the XOSC_Q1 pin of the U2 chip and one end of the seventeenth capacitor C17 at the same time, the other end of the seventeenth capacitor C17 is grounded, and is used to provide a clock for the system clock and RF transceiver of the U2 chip.
[0097] like Fig.10 As shown, the low-frequency clock circuit 142 is composed of an eighteenth capacitor C18, a nineteenth capacitor C19 and a fourth crystal oscillator Y4. The fourth crystal oscillator Y4 has two pins, one of which is connected to the XOSC32K_Q1 pin of the U2 chip and one end of the eighteenth capacitor C18 at the same time, and the other end of the eighteenth capacitor C18 is grounded, and the other pin is connected to the XOSC32K_Q2 pin of the U2 chip and one end of the nineteenth capacitor C19 at the same time, and the other end of the nineteenth capacitor C19 is grounded, which is used to provide an accurate clock source for the real-time clock and timing clock of the U2 chip.
[0098] like Fig.11 As shown, the antenna circuit 143 is composed of a 2450BM15A0002 chip (U3 chip), a third resistor R3, a fourth resistor R4, a fifth resistor R5 and a ceramic antenna AN9520-245 chip (TP3 chip). The U3 chip has six pins, namely the fifth pin, the sixth pin, the seventh pin, the eighth pin, the ninth pin and the tenth pin. The fifth pin of the U3 chip is connected to one end of the third resistor R3 and one end of the fourth resistor R4, the other end of the third resistor R3 is connected to one end of the fifth resistor R5 and the feedback point of the TP3 chip, the sixth pin, the ninth pin and the tenth pin of the U3 chip are simultaneously connected to the ground, the other end of the fourth resistor R4 and the other end of the fifth resistor R5, the seventh pin of the U3 chip is connected to the RF_N pin of the U2 chip, the eighth pin of the U3 chip is connected to the RF_P pin of the U2 chip, and is responsible for sending and receiving wireless signals of the U2 chip.
[0099] The third resistor R3, the fourth resistor R4 and the fifth resistor R5 are π-type matching circuits reserved in the RF antenna part, so as to adjust the performance of the RF antenna.
[0100] like Fig.12As shown, the JTAG interface circuit 144 is composed of a second connector P2, and the second connector P2 has five pins, namely the eleventh pin, the twelfth pin, the thirteenth pin, the fourteenth pin and the fifteenth pin. The eleventh pin of the second connector P2 is connected to the VCC3V3 pin of the U2 chip, the twelfth pin of the second connector P2 is connected to the P2_1 pin of the U2 chip, the thirteenth pin of the second connector P2 is connected to the P2_2 pin of the U2 chip, the fourteenth pin of the second connector P2 is connected to the RESET_N pin of the U2 chip, and the fifteenth pin of the second connector P2 is grounded, which is used for program downloading of the U2 chip and program debugging during operation.
[0101] like Fig.13 As shown, the voltage stabilizing circuit 150 is composed of a TPS73701DRBR chip (U4 chip), a sixth resistor R6, a seventh resistor R7, a twentieth capacitor C20, a twenty-first capacitor C21 and a twenty-second capacitor C22. The U4 chip has nine pins, namely, a sixteenth pin, a seventeenth pin, an eighteenth pin, a nineteenth pin, a twentieth pin, a twenty-first pin, a twenty-second pin, a twenty-third pin and a twenty-fourth pin. The sixteenth pin of the U4 chip is simultaneously connected to one end of the seventh resistor R7, one end of the twenty-first capacitor C21, one end of the twenty-second capacitor C22 and the U1 chip. Any one of the VCC3V3 pins is connected, the eighteenth pin of the U4 chip is simultaneously connected to one end of the sixth resistor R6 and the other end of the seventh resistor R7, the 20th pin and the twenty-third pin of the U4 chip are simultaneously connected to the positive VBAT pin of the power supply 160 and one end of the 20th capacitor C20, the nineteenth pin and the twenty-fourth pin of the U4 chip are simultaneously connected to the other end of the 20th capacitor C20, the other end of the 21st capacitor C21, the other end of the 22nd capacitor C22, the other end of the sixth resistor R6 and ground, and the seventeenth pin, the twenty-first pin and the twenty-second pin of the U4 chip are suspended.
[0102] The power supply 160 is a 3.7V rechargeable battery. The voltage stabilizing circuit 150 steps down the 3.7V voltage to output 3.3V stably. 3.3V is the working voltage that can be used by the U1 chip and the U2 chip.
[0103] like Fig.14As shown, the charging circuit 170 is composed of a TP4057 chip (U5 chip), a light emitting diode KPTB-1615YSGC chip (D1 chip), an eighth resistor R8, a ninth resistor R9, a twenty-third capacitor C23, a twenty-fourth capacitor C24 and a twenty-fifth capacitor C25. The U5 chip has six pins, namely, the twenty-fifth pin, the twenty-sixth pin, the twenty-seventh pin, the twenty-eighth pin, the twenty-ninth pin and the thirtieth pin. The D1 chip has four pins, namely, the thirty-first pin, the thirty-second pin, the thirty-third pin and the thirty-fourth pin. The thirty-first pin and the thirty-third pin of the D1 chip are connected to one end of the eighth resistor R8, the other end of the eighth resistor R8 is connected to the positive electrode VBAT pin of the power supply 160, and the thirty-second pin of the D1 chip is also connected to the U5 The 29th pin of the chip is connected to the P0_4 pin of the U2 chip, the 34th pin of the D1 chip is simultaneously connected to the 25th pin of the U5 chip and the P0_5 pin of the U2 chip, the 26th pin of the U5 chip is grounded, the 27th pin of the U5 chip is simultaneously connected to the positive VBAT pin of the power supply 160 and one end of the 23rd capacitor C23, the other end of the 23rd capacitor C23 is grounded, the 28th pin of the U5 chip is simultaneously connected to one end of the 24th capacitor C24 and one end of the 25th capacitor C25, and the 28th pin of the U5 chip can be optionally connected to the power adapter, the other end of the 24th capacitor C24 and the other end of the 25th capacitor C25 are both grounded, the 30th pin of the U5 chip is connected to one end of the ninth resistor R9, and the other end of the ninth resistor R9 is grounded.
[0104] When the power supply 160 is insufficient, the battery needs to be charged by connecting to the mains through the charging circuit 170 , and the charging power converted by the power adapter is the V_CHARGE pin.
[0105] The capacitors described in the present invention are all non-polar capacitors, and the crystal oscillators described are all passive crystal oscillators.
[0106] The smart bracelet described in the present invention collects the heart rate and blood oxygen of the wearer through the J2 chip in the heart rate and blood oxygen circuit 134 and stores the raw data in the internal register FIFO buffer of the J2 chip, and then transmits the raw data to the U1 chip through the I2C protocol. The U1 chip processes the raw data and calculates the vital sign parameters of the wearer of the smart bracelet. Thereafter, the U1 chip transmits the data to the U2 chip through the serial port, and the U1 chip transmits the data to the display module through the general input and output interface.
[0107] The U1 chip processes the raw data to calculate the vital sign parameters of the person wearing the smart bracelet, specifically including:
[0108] The collection of vital sign parameters depends on the J2 chip. After the smart bracelet is powered on, the J2 chip is reset and the interrupt is cleared first. After the above operations are completed, it is initialized and the working mode of the module is set to the blood oxygen mode, the sampling rate is 100Hz, and the pulse width is 400μs. After the above functions are set, the module is placed on the fingertips or wrists for data collection, and the original photoelectric volumetric pulse wave data (Photo Plethysmo Graphic, PPG) in the FIFO buffer is read. To ensure that the measurement data is true and reliable, 500 original data are collected each time, and these data are used to calculate the heart rate and blood oxygen saturation values respectively.
[0109] When calculating the heart rate, it is necessary to find the average value of 500 original data, use the original data to make a difference with the average value to obtain the data signal with the DC component removed, then use the recursive average filtering algorithm with a queue length of 4 to eliminate noise interference, and add the Hamming window to calculate the threshold to get the peak value of the data. Finally, use the Hamming window function to eliminate noise interference for the second time to make the data more stable before calculating the heart rate value.
[0110] The blood oxygen saturation value is the percentage of oxygenated hemoglobin capacity bound to oxygen in the blood to the total bindable hemoglobin capacity, and is an important vital parameter for measuring respiratory circulation.
[0111] According to the collected original PPG signal, the DC and AC components of red light and infrared light are calculated respectively, and the infrared absorption rate value is calculated:
[0112]
[0113] In the formula, AC R and DC R is the AC and DC components of the red light PPG signal cardiac synchronization pulse, AC IR and DC IR are the AC and DC components of the infrared light PPG signal cardiac synchronization pulse, and R is the infrared absorption rate.
[0114] Based on the infrared absorption rate value, estimate the heart rate and blood oxygen saturation value:
[0115] SpO2=-45.060×R 2 +30.354×R+94.845;
[0116] Where SpO2 is the blood oxygen saturation value.
[0117] The smart bracelet of the present invention combines the ZigBee network to realize the positioning of personnel and the planning of escape routes through gateway nodes, reference nodes, IoT cloud platform, system application server and client, which specifically includes:
[0118] (1) Gateway node: As the coordinator of the ZigBee network, the main control chip uses CC2530, which is connected to the ESP8266 WiFi transparent transmission module through UART and is responsible for creating the ZigBee network and connecting to the IoT cloud platform.
[0119] After the gateway node is powered on, it creates a ZigBee network according to the PANID and channel number set in the program, and waits for the reference node and mobile node to join as a network introducer. The gateway node receives the data packet sent by the smart bracelet in unicast form, and then uploads the data packet to the IoT cloud platform wirelessly through the WiFi transparent transmission module and the EDP protocol for storage.
[0120] (2) Reference node: As the router of the ZigBee network, it is responsible for broadcasting messages and forwarding data. After being powered on, the reference node searches for existing ZigBee networks nearby, requests to join the network according to the PANID value set in the program, and waits for the gateway node to randomly assign it a network short address after successful access. After that, it can communicate with any node in the ZigBee network and can also act as an introducer node.
[0121] The reference node has a fixed spatial position in the ZigBee network. The program stores the number and location coordinate information in a fixed manner. When working stably, it broadcasts a data packet with the number and coordinate information every 5 seconds.
[0122] (3) Smart wristband: As a mobile node of the ZigBee network, it is responsible for collecting the vital signs of the wearer, receiving data packets sent by the reference node in broadcast form, and integrating and packaging the data and submitting them to the gateway node in unicast form. After power-on, the smart wristband searches for a suitable ZigBee network to join, just like the reference node. After obtaining the network short address randomly assigned by the gateway node, it can enter the normal working mode.
[0123] In the smart bracelet, the heart rate and blood oxygen saturation circuit 134 continuously collects the heart rate and blood oxygen saturation values of the person wearing the smart bracelet, and displays the calculated results on the display screen through the main control chip 110. At the same time, the main control chip 110 sends them to the wireless data transmission chip 120 through the serial port. In addition to receiving the vital sign value parameters through the serial port, the wireless data transmission chip 120 also receives the data packets sent by the reference node in a broadcast form in a wireless manner, selects the three reference nodes with the strongest signals to extract data, reads the reference node number, position coordinates and received signal strength value in the AF message structure carried in the data packet, and appends the heart rate and blood oxygen saturation values at the end to form a new data packet for storage. The wireless data transmission chip 120 sends the new data packet to the gateway node in a unicast form through the antenna circuit 143.
[0124] (4) Internet of Things cloud platform: It plays the role of connecting the lower computer and the system application server in the personnel positioning and escape system. It is responsible for receiving and storing the reference node number, location coordinates, received signal strength value, heart rate and blood oxygen saturation value uploaded by the gateway node, and then pushing the received data information to the system application server in the form of POST request.
[0125] (5) System application server: As the manager of personnel positioning and escape system data collation and distribution, it is written using the Django framework and is mainly responsible for saving data pushed by the IoT cloud platform, processing client login requests, retrieving the vital signs of people wearing smart bracelets, calculating the current location information of people, and planning escape routes for trapped people when a fire occurs.
[0126] (6) Client: As the display platform of the personnel positioning and escape system, it includes a mobile APP platform and a Web client. It is mainly responsible for displaying the vital signs of the person wearing the smart bracelet, the person’s current location information, and the escape route in the event of a fire.
[0127] The current location information of the computing personnel specifically includes:
[0128] The system application server receives the received signal strength value pushed by the IoT cloud platform and uses the three-sided positioning algorithm to calculate the coordinate information of the bracelet wearer in the two-dimensional plane.
[0129] The coordinate information of the three reference nodes is taken as a known quantity, and the location of the smart bracelet, that is, the location of the person, is taken as an unknown quantity. The distances between the three reference nodes and the smart bracelet are set to d1, d2, and d3 respectively. The RSSI value decays as the communication distance increases. The RSSI value is converted into distance:
[0130] V RSSI =-10nlgd i -A RSSI ;
[0131] Where, d i is the distance between the i-th reference node and the smart bracelet, in m, A RSSI is the signal strength at 1m away from the reference node, in dBm, n is the attenuation coefficient of the environment to the signal, which is related to the signal transmission environment and the type of building. The value range of n is between 3.25 and 4.5. V RSSI It is the power attenuation value of the smart bracelet receiving the reference node information, in dBm. It is the actual value, which is directly obtained by extracting the RSSI value in the structure when the smart bracelet communicates with the reference node.
[0132] Calculate the distance between the smart bracelet and the reference node:
[0133]
[0134] Where (x, y) is the coordinate of the smart bracelet, (x1, y1) is the coordinate of the first reference node, (x2, y2) is the coordinate of the second reference node, and (x3, y3) is the coordinate of the third reference node;
[0135] Expand the squares on the left side of the above equation and you can get:
[0136]
[0137] Subtract the first and second equations from the third equation in the above formula to get:
[0138]
[0139] Convert it into Python code, take x and y as the quantities to be calculated, and use the solve method in sympy, a scientific computing library in Python, to solve the system of equations. The current x-axis and y-axis coordinate values of the person are calculated and saved in the database, and then returned to the client in sequence.
[0140] The escape route planning specifically includes:
[0141] The system application server is written in the Django framework. The floor plan is saved in the form of a picture in static resources. The parameters passed by the front-end page are used as screening conditions to retrieve the floor plan. The pixel value of the aggregated grid is set to 30, that is, the original image is divided into grids according to squares of 30 pixels. The color of each grid is set to the average color of all the pixels in the grid, thereby obtaining low-pixel image data and performing color recognition on the newly generated image. The white and yellow areas are passable corridors and rooms, which are set as asterisks to indicate passages. The green and dark gray parts are inaccessible rooms and walls, which are set as pound signs to indicate obstacles, and the two-dimensional map data of the floor plan is obtained.
[0142] The path search on the system application server side adopts the A-Star heuristic search algorithm. It is necessary to define the starting node, destination node, open list and closed list in the algorithm. Combined with the three variables F, G and H introduced in the algorithm process, the shortest path can be searched by calculation:
[0143] F = G + H;
[0144] In the formula, F represents the evaluation function, which is the main judgment condition of the A-Star algorithm, and is the sum of the distance cost and the estimated cost; G represents the distance cost between the starting node and the current node, which is the actual value; H represents the estimated cost between the current node and the destination node, which is an estimated value. In this invention, the diagonal distance is used as the estimated cost.
[0145] After receiving the location information of the fire point, the application server compares the coordinates of the fire point with the processed image data, sets the corresponding position coordinates as the obstacle point, and uses the pound sign to represent it. The two-dimensional map data of the plane map, the coordinates of the starting node and the destination node are passed into the function as parameters, and the starting node is added to the open list. When the open list is not empty, the node with the smallest F in the pop-up open list is defined as the current node, and it is determined whether the current node is the destination node. If it is, the path result set is returned to the client. If not, the current node is added to the closed list as the parent node, and the nodes in eight directions above, below, left, right and diagonal of the current node are traversed as neighboring nodes. It is determined whether the neighboring node is a non-obstacle point that is not in the closed list and the open list. If the requirements are met, the evaluation function of the neighboring node is calculated, and the current node is set as the parent node of the node, and then it is put into the open list. If the requirements are not met, it is necessary to further determine whether the G value of the neighboring node is better than the node in the open list. Repeat the above process. If the current node is the destination node, the algorithm ends and the path result set is returned to the client. If the shortest path is not found, a warning prompt message is returned.
[0146] The present invention designs and develops a smart bracelet with indoor positioning function. The main control chip is combined with a wireless data transmission chip. Wireless communication with an Internet of Things cloud server can be achieved through a ZigBee network. The vital signs values and received signal strength values of the person wearing the smart bracelet are transmitted regularly. The system application server calculates the person's position information by using a three-sided positioning algorithm according to the received signal strength values, and calculates the escape path of trapped persons in a living situation by using an A-Star heuristic search algorithm. The position information and vital signs values are displayed on the client, so as to achieve the purpose of monitoring at any time, indoor positioning, and assisting trapped persons to escape in dangerous situations such as fire.
[0147] Although the embodiments of the present invention have been disclosed as above, they are not limited to the applications listed in the specification and the implementation modes. They can be fully applied to various fields suitable for the present invention. For those familiar with the art, additional modifications can be easily implemented. Therefore, without departing from the general concept defined by the claims and the scope of equivalents, the present invention is not limited to the specific details and the embodiments shown and described herein.
Claims
1. A smart bracelet with indoor positioning function, characterized in that: include: Power supply; as well as A main control chip, which includes multiple VCC3V3 pins, PA2 pins, PA3 pins, PB7-PB9 pins, PB13-PB15 pins, PA6 pins and multiple ground pins, wherein the multiple VCC3V3 pins are the same electrical network, and any one of the VCC3V3 pins is connected to the power supply, and is responsible for receiving, processing and transmitting data; A heart rate and blood oxygen circuit, which is connected to any VCC3V3 pin and PB7-PB9 pin of the main control chip through multiple pins, and is used to collect the heart rate and blood oxygen value of the wearer; A wireless data transmission chip, comprising a P0_2 pin and a P0_3 pin, wherein the P0_2 pin is connected to the PA2 pin, and the P0_3 pin is connected to the PA3 pin, for receiving data and sending data packets; A display screen circuit, which is connected to any one of the VCC3V3 pins, PB13-PB15 pins and PA6 pin of the main control chip through multiple pins, and is used to display the heart rate value, blood oxygen value and prompt information of the wearer; The smart bracelet is added to the ZigBee network as a mobile node, and the wearer's vital signs and the received reference node data packets are packaged and submitted to the gateway node. The IoT cloud platform receives and stores the data uploaded by the gateway node and pushes it to the system application server to obtain the wearer's current location and plan an escape route. Wherein, the main control chip is an STM32F103C8T6 chip, and the main control chip also includes an OSC32 IN pin, an OSC32 OUT pin, an OSCIN pin, an OSC OUT pin, an NRST pin, a PA13 pin, a PA14 pin, a PB10 pin, a PB11 pin and 20 vacant pins; The display screen circuit is composed of a 262K color single-chip TFT driver ST7735S chip, and the display screen circuit includes: A first GND pin, a first VCC pin, a DO pin, a DI pin, a RST pin, and a DC pin; The first GND pin is grounded, the first VCC pin is connected to any VCC3V3 pin of the main control chip, the DO pin is connected to the PB15 pin, the DI pin is connected to the PB14 pin, the RST pin is connected to the PB13 pin, and the DC pin is connected to the PA6 pin; The heart rate and blood oxygen circuit is composed of a MAX30102 chip, and the heart rate and blood oxygen circuit includes: The second VCC pin, the SDA pin, the SCL pin, the second GND pin and the INT pin; The second VCC pin is connected to any VCC3V3 pin of the main control chip, the SDA pin is connected to the PB9 pin, the SCL pin is connected to the PB8 pin, the second GND pin is grounded, and the INT pin is connected to the PB7 pin; The wireless data transmission chip is a CC2530 chip, and the wireless data transmission chip includes: A plurality of ground pins, P0_4-P0_6 pins, P2_1-P2_2 pins, RESET N pin, RF_P pin, RF_N pin, RBIAS pin, XOSC_Q2 pin, XOSC_Q1 pin, DCOUPL pin, XOSC32K_Q1 pin, XOSC32K_Q2 pin, DVDD1 pin, DVDD2 pin, AVDD1-AVDD6 pins and 12 vacant pins, wherein the DVDD1 pin, DVDD2 pin and AVDD1-AVDD6 pins are connected in parallel to form a VCC3V3 pin, and the VCC3V3 pin is connected to a power supply; are all connected to the power supply; The wireless data transmission chip also includes: A first capacitor, one end of which is connected to the DCOUPL pin, and the other end of which is grounded; The second capacitor to the ninth capacitor are respectively connected in parallel between the VCC3V3 pin and any ground pin; A first resistor, one end of which is connected to the RESET N pin; A tenth capacitor, one end of which is connected to the RESET N pin, and the other end is grounded; A second resistor, one end of which is connected to the RBIAS pin and the other end is grounded; The creation of the ZigBee network specifically includes the following steps: Step 1: The gateway node creates a ZigBee network; Step 2: The reference node is fixed in the spatial position of the ZigBee network and stores the number and position coordinate information, and sends a data packet with the number and position coordinate information in the form of broadcast every 5 seconds; Step 3: After joining the ZigBee network, the smart bracelet receives the data packet of the reference node wirelessly, selects the three reference node data with the strongest received signal strength value, reads the reference node number, location coordinates and received signal strength value in the AF message structure carried in the data packet, appends the heart rate and blood oxygen value at the end of the data packet to form a new data packet for storage and sends it to the gateway node in unicast form; Step 4: The gateway node uploads the new data packet to the IoT cloud platform; Step 5: The IoT cloud platform pushes the data to the system application server, which saves the data and calculates the current position of the wearer, and plans an escape route for the trapped persons when a fire occurs; The calculation of the current position of the wearer specifically includes: Calculate the distance between the smart bracelet and three reference nodes: V RSSI =-10nlgd i -A RSSI ; Where, d i is the distance between the i-th reference node and the smart bracelet, i=1,2,3, A RSSI is the signal strength at 1m away from the reference node, n is the attenuation coefficient of the environment to the signal, n = 3.25 ~ 4.5, V RSSI The power attenuation value of the smart bracelet receiving reference node information; Calculate the coordinates of the smart bracelet: Where (x, y) is the coordinate of the smart bracelet, (x1, y1) is the coordinate of the first reference node, (x2, y2) is the coordinate of the second reference node, and (x3, y3) is the coordinate of the third reference node; After converting the coordinate calculation formula of the smart bracelet, x and y are used as the quantities to be calculated, and the equation group is solved to calculate the current x-axis coordinate and y-axis coordinate values of the person; The planned escape path is searched by using the A-Star heuristic search algorithm.
2. The smart bracelet with indoor positioning function as claimed in claim 1, characterized in that: Also includes: a main clock circuit, comprising an eleventh capacitor, a twelfth capacitor and a first crystal oscillator; Wherein, the first crystal oscillator includes two pins, one of which is connected to the OSC IN pin and one end of the eleventh capacitor, and the other pin is connected to the OSC OUT pin and one end of the twelfth capacitor, and the other ends of the eleventh capacitor and the twelfth capacitor are both grounded; The RTC clock circuit includes a thirteenth capacitor, a fourteenth capacitor and a second crystal oscillator; The second crystal oscillator includes two pins, one of which is connected to the OSC32 IN pin and one end of the thirteenth capacitor, and the other pin is connected to the OSC32 OUT pin and one end of the fourteenth capacitor, and the other ends of the thirteenth capacitor and the fourteenth capacitor are both grounded; The SWD interface circuit includes a first connector and a fifteenth capacitor; Among them, the first connector includes a first pin, a second pin, a third pin and a fourth pin, the first pin is connected to the ground and one end of the fifteenth capacitor at the same time, the other end of the fifteenth capacitor is connected to any VCC3V3 pin of the main control chip, the second pin is connected to the PA14 pin, the third pin is connected to the PA13 pin, and the fourth pin is connected to any VCC3V3 pin of the main control chip.
3. The smart bracelet with indoor positioning function as claimed in claim 1, characterized in that: Also includes: a high-frequency clock circuit, comprising a sixteenth capacitor, a seventeenth capacitor and a third crystal oscillator; Wherein, the third crystal oscillator is a 4-pin crystal oscillator, the 2nd and 4th pins are suspended, the 1st pin is connected to the XOSC_Q2 pin and one end of the 16th capacitor at the same time, the other end of the 16th capacitor is grounded, the 3rd pin is connected to the XOSC_Q1 pin and one end of the 17th capacitor at the same time, and the other end of the 17th capacitor is grounded; a low-frequency clock circuit, comprising an eighteenth capacitor, a nineteenth capacitor and a fourth crystal oscillator; Wherein, the fourth crystal oscillator is a 2-pin crystal oscillator, the first pin is connected to the XOSC32K_Q1 pin and one end of the eighteenth capacitor at the same time, the other end of the eighteenth capacitor is grounded, the second pin is connected to the XOSC32K_Q2 pin and one end of the nineteenth capacitor at the same time, the other end of the nineteenth capacitor is grounded; An antenna circuit, which is composed of a 2450BM15A0002 chip, a third resistor, a fourth resistor, a fifth resistor and a ceramic antenna; Wherein, the 2450BM15A0002 chip includes a fifth pin, a sixth pin, a seventh pin, an eighth pin, a ninth pin and a tenth pin, the fifth pin is connected to one end of the third resistor and one end of the fourth resistor, the other end of the third resistor is connected to one end of the fifth resistor and a feedback point of the ceramic antenna, the sixth pin, the ninth pin and the tenth pin are simultaneously connected to the ground, the other end of the fourth resistor and the other end of the fifth resistor, the seventh pin is connected to the RF_N pin, and the eighth pin is connected to the RF_P pin; The JTAG interface circuit is composed of a second connector, which includes an eleventh pin, a twelfth pin, a thirteenth pin, a fourteenth pin and a fifteenth pin, the eleventh pin is connected to the VCC3V3 pin of the wireless data transmission chip, the twelfth pin is connected to the P2_1 pin, the thirteenth pin is connected to the P2_2 pin, the fourteenth pin is connected to the RESET_N pin, and the fifteenth pin is grounded.
4. The smart bracelet with indoor positioning function as claimed in claim 3, characterized in that: Also includes: A voltage stabilizing circuit, which is composed of a TPS73701DRBR chip, a sixth resistor, a seventh resistor, a twentieth capacitor, a twenty-first capacitor and a twenty-second capacitor; Wherein, the TPS73701DRBR chip includes a sixteenth pin, a seventeenth pin, an eighteenth pin, a nineteenth pin, a twentieth pin, a twenty-first pin, a twenty-second pin, a twenty-third pin and a twenty-fourth pin, the sixteenth pin is simultaneously connected to one end of the seventh resistor, one end of the twenty-first capacitor, one end of the twenty-second capacitor and any one VCC3V3 pin of the main control chip, the eighteenth pin is simultaneously connected to one end of the sixth resistor and the other end of the seventh resistor, the 20th pin and the twenty-third pin are simultaneously connected to the power supply and one end of the 20th capacitor, the nineteenth pin and the twenty-fourth pin are simultaneously connected to the other end of the 20th capacitor, the other end of the 21st capacitor, the other end of the 22nd capacitor, the other end of the sixth resistor and the ground, and the seventeenth pin, the twenty-first pin and the twenty-second pin are suspended; A charging circuit, which is composed of a TP4057 chip, a light-emitting diode chip, an eighth resistor, a ninth resistor, a twenty-third capacitor, a twenty-fourth capacitor and a twenty-fifth capacitor; Among them, the TP4057 chip includes a twenty-fifth pin, a twenty-sixth pin, a twenty-seventh pin, a twenty-eighth pin, a twenty-ninth pin and a thirtieth pin, and the light-emitting diode chip includes a thirty-first pin, a thirty-second pin, a thirty-third pin and a thirty-fourth pin, the thirty-first pin and the thirty-third pin are connected to one end of the eighth resistor, and the other end of the eighth resistor is connected to the power supply, the thirty-second pin is simultaneously connected to the twenty-ninth pin and the P0_4 pin, the thirty-fourth pin is simultaneously connected to the twenty-fifth pin and the P0_5 pin, the twenty-sixth pin is grounded, the twenty-seventh pin is simultaneously connected to the power supply and one end of the twenty-third capacitor, and the other end of the twenty-third capacitor is grounded, the twenty-eighth pin is simultaneously connected to one end of the twenty-fourth capacitor and one end of the twenty-fifth capacitor, and when charging, the twenty-eighth pin is connected to the power adapter, the other end of the twenty-fourth capacitor and the other end of the twenty-fifth capacitor are both grounded, the 30th pin is connected to one end of the ninth resistor, and the other end of the ninth resistor is grounded.
5. The smart bracelet with indoor positioning function as claimed in claim 4, characterized in that: The power supply is a 3.7V rechargeable battery, and the power adapter is connected to the mains during charging.
Citation Information
Patent Citations
Internet of Things intrinsic safety rescue watch with fast networking function and capable of being detected and design method
CN111447585A
Abstinence monitoring system based on smart bracelet and Internet of Things
CN111887806A
