Magic wand
Through the magic wand that integrates multiple sensors and modules, complex interaction and stable power supply are achieved, solving the problems of poor interaction and insufficient power management of traditional magic wands, and enhancing the user's immersion and operational authenticity.
Patent Information
- Application Number
- CN202422618066.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-29
- Publication Date
- 2025-08-29
- Estimated Expiration
- 2034-10-29
AI Technical Summary
Traditional magic wand toys have poor interaction, single functions, lack of real-time sensing and imperfect power management, resulting in weak interactive experience and prone to instability in power supply.
Integrate infrared sensors, wireless communication modules, RGB modules, sound sensors and vibration motors, combined with STM32F103C8T6 single-chip microcontroller chips to achieve the linkage interaction between gestures, sounds and light effects, and adopt the power management design of BL8530 boost chips and 662K voltage stabilization chips.
Enhances the interactive and personalized experience of the magic wand, triggers different light effects and vibration feedback through gestures and sounds, supports Bluetooth and Wi-Fi connections, realizes remote control and function expansion, and ensures power stability.
Smart Images

Figure CN223284594U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of circuit design, in particular to a magic wand. Background Art
[0002] With the development of the smart toy market, more and more toys are integrating Internet of Things technology, sensor technology and wireless communication functions to enhance users' interactive experience and creativity. Traditional magic wand toys usually only have simple lighting or sound effects, and user operations and toy feedback are relatively simple, which cannot achieve complex interaction and personalized experience.
[0003] Traditional magic wands are mostly based on button controls or static light effects. They lack real-time sensing of user movements and sounds, and have a weak interactive experience. They cannot trigger different effects based on the user's waving gestures, which limits the user's imagination. In addition, the power management in the toy is imperfect, and unstable power supply problems are prone to occur, resulting in functional failure or insufficient battery life. Utility Model Content
[0004] The magic wand proposed in this utility model integrates multiple sensors, wireless communication modules and efficient power management technology to achieve the linkage interaction of user gestures, sound, light effects and vibration, solving the problems of poor interactivity, single function and insufficient energy consumption management of traditional magic wand toys.
[0005] The utility model is achieved through the following technical solutions:
[0006] A magic wand includes a magic wand body, wherein the magic wand body is provided with a main control module, and an infrared sensor module, a communication module, an RGB module, a sound sensor module, a motion processing module and a vibration motor module electrically connected to the main control module respectively. The main control module includes a single-chip microcomputer chip U3 with the model number of STM32F103C8T6.
[0007] Furthermore, the infrared sensor module includes a comparator U10, the non-inverting input end of the comparator U10 is connected to the sliding end of the variable resistor RVAR1, one end of the variable resistor RVAR1 is respectively connected to one end of the resistor R24 and the ground end of the comparator U10, the other end of the variable resistor RVAR1 is respectively connected to the emitter of the phototransistor CGQ1, the power supply end of the comparator U10, and one end of the resistor R23, the collector of the phototransistor CGQ1 is respectively connected to the other end of the resistor R24 and the inverting input end of the comparator U10, the other end of the resistor R23 is respectively connected to the output end of the comparator U10, pin 27 of the single-chip microcomputer chip U3, the cathode of the light-emitting diode LED6, and the anode of the light-emitting diode LED7, the anode of the light-emitting diode LED6 is connected to one end of the resistor R22, and the cathode of the light-emitting diode LED7 is connected to one end of the resistor R25.
[0008] Furthermore, the communication module includes a Bluetooth module and a WIFI module;
[0009] The Bluetooth module includes a Bluetooth chip U7, the model of which is CSR BC417. Pin 1 of the Bluetooth chip U7 is connected to pin 21 of the single-chip microcomputer chip U3, pin 2 of the Bluetooth chip U7 is connected to pin 22 of the single-chip microcomputer chip U3, pin 34 of the Bluetooth chip U7 is connected to one end of the switch SW1, the other end of the switch SW1 is connected to power, pin 31 of the Bluetooth chip U7 is connected to one end of the resistor R16, and the other end of the resistor R16 is connected to the anode of the light-emitting diode LED3;
[0010] The WIFI module includes a WIFI chip U4, the model of which is ESP8266. Pin 1 of the WIFI chip U4 is connected to one end of the resistor R13, the other end of the resistor R13 is respectively connected to one end of the resistor R12, one end of the capacitor C19, and pin 8 of the WIFI chip U4. Pin 21 of the WIFI chip U4 is connected to pin 31 of the microcontroller chip U3, pin 22 of the WIFI chip U4 is connected to pin 30 of the microcontroller chip U3, pin 18 of the WIFI chip U4 is connected to one end of the resistor R14, and the other end of the resistor R14 is connected to power.
[0011] Furthermore, the RGB module includes an RGB driver LED1, the model of the RGB driver is R6GHBHC, pin 4 of the RGB driver LED1 is connected to one end of the resistor R1, the other end of the resistor R1 is connected to pin 16 of the microcontroller chip U3, pin 5 of the RGB driver LED1 is connected to one end of the resistor R2, the other end of the resistor R2 is connected to pin 17 of the microcontroller chip U3, pin 6 of the RGB driver LED1 is connected to one end of the resistor R3, the other end of the resistor R3 is connected to pin 18 of the microcontroller chip U3, and pins 1, 2, and 3 of the RGB driver LED1 are all grounded.
[0012] Furthermore, the sound sensor module includes an audio chip U8, the model of the audio chip U8 is LM386D, the 3rd pin of the audio chip U8 is connected to the sliding end of the variable resistor RP1, one end of the variable resistor RP1 is connected to one end of the capacitor C24, the other end of the capacitor C24 is respectively connected to one end of the resistor R17, one end of the capacitor C27, and the connector J1, the other end of the resistor R17 is respectively connected to one end of the capacitor C20 and the positive electrode of the electrolytic capacitor C21, the other end of the capacitor C20 and the negative electrode of the electrolytic capacitor C21 are grounded, the other end of the sliding resistor RP1 is connected to the 4th pin of the audio chip U8 and then grounded. Pin 7 of the audio chip U8 is connected to one end of the capacitor C25, and pin 5 of the audio chip U8 is respectively connected to one end of the capacitor C28, the positive electrode of the electrolytic capacitor C26, and the inverting input end of the comparator U9. The negative electrode of the electrolytic capacitor C26 is connected to pin 15 of the microcontroller chip U3. The non-inverting input end of the comparator U9 is connected to the sliding end of the variable resistor RP2, and one end of the variable resistor RP2 is connected to the ground end of the comparator U9. The output end of the comparator U9 is respectively connected to one end of the resistor R19 and the cathode of the light-emitting diode LED4. The anode of the light-emitting diode LED4 is connected to one end of the resistor R20, and the other end of the resistor R20 is connected to power.
[0013] Furthermore, the motion processing module includes a six-axis sensor chip U6, the model of the six-axis sensor chip U6 is MPU-6050, pin 1 of the six-axis sensor chip U6 is connected to one end of capacitor C12, the other end of capacitor C12 is connected to pin 8 of the six-axis sensor chip U6, pin 24 of the six-axis sensor chip U6 is respectively connected to pin 43 of the single-chip microcomputer chip U3 and one end of resistor R7, the other end of resistor R7 is connected to one end of resistor R8, the other end of resistor R8 is respectively connected to pin 42 of the single-chip microcomputer chip U3 and pin 23 of the six-axis sensor chip U6, pin 20 of the six-axis sensor chip U6 is connected to one end of capacitor C13, the other end of capacitor C13 is respectively connected to pin 18 of the six-axis sensor chip U6 and one end of capacitor C15, and the other end of capacitor C15 is connected to pin 13 of the six-axis sensor chip U6.
[0014] Furthermore, the vibration motor module includes a motor M1, one end of the motor M1 is respectively connected to the cathode of the diode MD1, one end of the capacitor MC1, and one end of the resistor R9, the anode of the diode MD1 is respectively connected to the other end of the motor M1 and the drain of the MOS tube MQ1, the source of the MOS tube MQ1 is connected to one end of the resistor R11, the other end of the resistor R11 is respectively connected to the gate and one end of the resistor R10, and the other end of the resistor R10 is connected to pin 10 of the microcontroller chip U3.
[0015] Furthermore, it also includes a power supply module, which is electrically connected to the main control module, infrared sensor module, communication module, RGB module, sound sensor module, motion processing module and vibration motor module. The power supply module includes a boost chip U1 and a voltage regulator chip U2. The model of the boost chip U1 is BL8530, and the model of the voltage regulator chip U2 is 662K. The input end of the boost chip U1 is connected to one end of the inductor L1, the anode of the Schottky diode D1, and the positive electrode of the electrolytic capacitor C4. The other end of the inductor L1 is connected to the Schottky diode D1. The cathode of the Schottky diode D2 and the anode of the Schottky diode D2 are connected to one end of the switch S1, and the other end of the switch S1 is connected to the battery power supply. The output end of the boost chip U1 is respectively connected to the cathode of the Schottky diode D1, the positive electrode of the electrolytic capacitor C1, and the input end of the voltage stabilizing chip U2. The output end of the voltage stabilizing chip U2 is respectively connected to one end of the capacitor C2 and one end of the capacitor C3. The other end of the capacitor C3 is connected to the other end of the capacitor C2, the ground end of the voltage stabilizing chip U2, the negative electrode of the electrolytic capacitor C1, the ground end of the boost chip U1, the negative electrode of the electrolytic capacitor C4 and then grounded.
[0016] Beneficial effects of the utility model:
[0017] (1) The utility model proposes a magic wand that realizes complex interactions through multiple sensors, uses infrared detection to sense obstacles, and realizes gesture sensing or proximity triggering functions, so that the magic wand can automatically activate specific effects when it approaches an object. It uses the MPU-6050 six-axis sensor chip to monitor the tilt angle, acceleration and swing direction of the magic wand in real time, realizes diversified gesture control and triggers different light effects and vibration feedback. By detecting ambient sound, it triggers corresponding magic effects, thereby enhancing the user's sense of immersion.
[0018] (2) The utility model proposes a magic wand that supports short-range connection with terminal devices such as mobile phones through a Bluetooth module. Users can control the magic wand through mobile devices to achieve personalized settings and real-time interaction. The magic wand supports networking functions through a Wi-Fi module, can interact with the cloud for data, allows remote control and firmware upgrades, and realizes functional expansion and sustainable updates.
[0019] (3) The utility model proposes a magic wand that controls the color change of the RGB LED light. The magic wand can emit different colors of light effects according to different actions or sound feedback, thereby enhancing visual appeal. When the user successfully completes a magic action, the vibration motor starts to provide the user with tactile feedback, enhancing the realism of the operation. The light effect and vibration are triggered synchronously to achieve multi-sensory interaction;
[0020] (4) The magic wand proposed in this utility model adopts a power supply design that combines the BL8530 boost chip with the 662K voltage regulator chip to ensure stable power supply to each module inside the magic wand and avoid functional failure caused by voltage fluctuations. At the same time, it supports a USB charging interface to achieve fast charging and firmware updates. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0022] Figure 1 This is a circuit schematic diagram of the main control module of a magic wand proposed in this utility model;
[0023] Figure 2 This is a circuit diagram of the infrared sensor module of a magic wand proposed in this utility model;
[0024] Figure 3 This is a schematic diagram of the Bluetooth module circuit of a magic wand proposed in this utility model;
[0025] Figure 4 This is a circuit diagram of the WIFI module of a magic wand proposed by the utility model;
[0026] Figure 5 This is a circuit schematic diagram of the RGB module of a magic wand proposed in this utility model;
[0027] Figure 6 This is a circuit diagram of a sound sensor module of a magic wand proposed by the utility model;
[0028] Figure 7 This is a circuit schematic diagram of a motion processing module of a magic wand proposed in the present invention;
[0029] Figure 8 This is a circuit diagram of a vibration motor module of a magic wand proposed in the present invention;
[0030] Figure 9 This is a circuit schematic diagram of a power supply module of a magic wand proposed in the utility model. DETAILED DESCRIPTION
[0031] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with embodiments and drawings. The schematic implementation methods of the present invention and their descriptions are only used to explain the present invention and are not intended to limit the present invention.
[0032] Example 1
[0033] A magic wand includes a magic wand body, wherein the magic wand body is provided with a main control module, and an infrared sensor module, a communication module, an RGB module, a sound sensor module, a motion processing module and a vibration motor module electrically connected to the main control module respectively. The main control module includes a single-chip microcomputer chip U3 with the model number of STM32F103C8T6.
[0034] The infrared sensor module is used to detect the object pointed by the magic wand. When the magic wand points to an obstacle, it can trigger a specific magic effect or feedback, such as lighting an LED or starting other functions, so that the magic wand can sense the surrounding environment. This adds interactivity to the magic wand of this embodiment, similar to the magic detection function.
[0035] By connecting to a mobile phone or other smart device via a Bluetooth module, users can control the magic wand's functions or receive the magic wand's status information through the mobile device. For example, they can remotely set magic effects through the mobile phone APP or receive the magic wand's sensing data, which increases remote control and customizability.
[0036] By connecting the Magic Wand to the Internet through the WIFI module, longer-distance control and interaction can be achieved. That is, the function expansion can be achieved through the server platform. For example, the Magic Wand can obtain specific magic instructions from the server or trigger preset effects, which brings higher intelligence and networking features to the Magic Wand.
[0037] The RGB module provides color-changing lighting effects, showing different magic through different colors and flashing modes. Users can trigger different lighting effects based on gestures, sounds, or obstacle sensing, enhancing the visual expression of the magic experience;
[0038] The sound sensor module is used to detect surrounding sounds. When it detects specific sounds such as clapping or shouting, it triggers magic effects, such as lighting up the magic wand's light or activating vibration feedback. This makes the magic wand voice-activated and can respond to user voice commands, enhancing the interactive experience.
[0039] The motion processing module senses the magic wand's posture and movement to identify the user's waving gestures. Combined with accelerometer and gyroscope data, the magic wand can determine the user's waving direction, speed, and other information, and then trigger the corresponding magic effect. This allows the magic wand to recognize different waving gestures and perform different magic.
[0040] The vibration motor module is used to provide tactile feedback. When certain magic effects are triggered, the magic wand will vibrate, giving the user a real sense of feedback. For example, when a magic spell is successfully cast, the magic wand will vibrate to enhance the experience and make the user feel that they are actually casting a spell.
[0041] Example 2
[0042] This embodiment proposes a specific circuit of a magic wand based on the first embodiment.
[0043] refer to Figures 1-9 The magic wand body is provided with a main control module, as well as an infrared sensor module, a communication module, an RGB module, a sound sensor module, a motion processing module and a vibration motor module electrically connected to the main control module. The main control module includes a single-chip microcomputer chip U3 of model STM32F103C8T6.
[0044] Among them, the infrared sensor module includes a comparator U10, the non-inverting input end of the comparator U10 is connected to the sliding end of the variable resistor RVAR1, one end of the variable resistor RVAR1 is respectively connected to one end of the resistor R24 and the ground end of the comparator U10, the other end of the variable resistor RVAR1 is respectively connected to the emitter of the phototransistor CGQ1, the power supply end of the comparator U10, and one end of the resistor R23, the collector of the phototransistor CGQ1 is respectively connected to the other end of the resistor R24 and the inverting input end of the comparator U10, the other end of the resistor R23 is respectively connected to the output end of the comparator U10, pin 27 of the microcontroller chip U3, the cathode of the light-emitting diode LED6, and the anode of the light-emitting diode LED7, the anode of the light-emitting diode LED6 is connected to one end of the resistor R22, and the cathode of the light-emitting diode LED7 is connected to one end of the resistor R25. When the detection direction encounters an obstacle, that is, a reflective surface, the infrared ray is reflected back and received by the receiving tube. When there is an obstacle directly in front, the green light is on, the OUT pin is low, otherwise it is high.
[0045] The communication module includes a Bluetooth module and a WIFI module, wherein the Bluetooth module includes a Bluetooth chip U7, the model of the Bluetooth chip U7 is CSR BC417, pin 1 of the Bluetooth chip U7 is connected to pin 21 of the microcontroller chip U3, pin 2 of the Bluetooth chip U7 is connected to pin 22 of the microcontroller chip U3, pin 34 of the Bluetooth chip U7 is connected to one end of the switch SW1, the other end of the switch SW1 is connected to power, pin 31 of the Bluetooth chip U7 is connected to one end of the resistor R16, the other end of the resistor R16 is connected to the anode of the light-emitting diode LED3, the Bluetooth module can switch between the master device mode Master or the slave device mode Slave, and has high flexibility. In addition, the Bluetooth module can also be configured and controlled through AT commands.
[0046] The WIFI module includes a WIFI chip U4, the model of which is ESP8266. Pin 1 of the WIFI chip U4 is connected to one end of a resistor R13, the other end of the resistor R13 is respectively connected to one end of a resistor R12, one end of a capacitor C19, and pin 8 of the WIFI chip U4. Pin 21 of the WIFI chip U4 is connected to pin 31 of the microcontroller chip U3, pin 22 of the WIFI chip U4 is connected to pin 30 of the microcontroller chip U3, and pin 18 of the WIFI chip U4 is connected to one end of a resistor R14. The other end of the resistor R14 is connected to power. The WIFI module communicates with the main control module via the serial port UART and uses the AT instruction set as the communication protocol. The main control module can control Wi-Fi connection, data transmission, and network configuration by sending AT commands to the WIFI module.
[0047] The RGB module includes an RGB driver LED1, the model of which is R6GHBHC. Pin 4 of the RGB driver LED1 is connected to one end of the resistor R1, the other end of which is connected to pin 16 of the single-chip microcomputer chip U3. Pin 5 of the RGB driver LED1 is connected to one end of the resistor R2, the other end of which is connected to pin 17 of the single-chip microcomputer chip U3. Pin 6 of the RGB driver LED1 is connected to one end of the resistor R3, the other end of which is connected to pin 18 of the single-chip microcomputer chip U3. Pins 1, 2, and 3 of the RGB driver LED1 are all grounded. The RGB lamp bead used in this embodiment has 6 pins, 3 of which are input pins for the three RGB colors, and the other 3 are ground pins. The RGB color is controlled by controlling the 3 input pins.
[0048] The sound sensor module includes an audio chip U8, the model of the audio chip U8 is LM386D, the 3rd pin of the audio chip U8 is connected to the sliding end of the variable resistor RP1, one end of the variable resistor RP1 is connected to one end of the capacitor C24, the other end of the capacitor C24 is respectively connected to one end of the resistor R17, one end of the capacitor C27, and the connector J1, the other end of the resistor R17 is respectively connected to one end of the capacitor C20 and the positive electrode of the electrolytic capacitor C21, the other end of the capacitor C20 and the negative electrode of the electrolytic capacitor C21 are grounded, the other end of the sliding resistor RP1 is connected to the 4th pin of the audio chip U8 and then to the ground, the 7th pin of the audio chip U8 is connected to one end of the capacitor C25, and the audio Pin 5 of the frequency chip U8 is respectively connected to one end of the capacitor C28, the positive electrode of the electrolytic capacitor C26, and the inverting input end of the comparator U9. The negative electrode of the electrolytic capacitor C26 is connected to pin 15 of the single-chip microcomputer chip U3. The non-inverting input end of the comparator U9 is connected to the sliding end of the variable resistor RP2. One end of the variable resistor RP2 is connected to the ground end of the comparator U9. The output end of the comparator U9 is respectively connected to one end of the resistor R19 and the cathode of the light-emitting diode LED4. The anode of the light-emitting diode LED4 is connected to one end of the resistor R20. The other end of the resistor R20 is connected to electricity. The presence or absence of sound is judged by vibration. When the sound intensity reaches a certain threshold, high and low level signals are output.
[0049] The motion processing module includes a six-axis sensor chip U6, the model of which is MPU-6050. Pin 1 of the six-axis sensor chip U6 is connected to one end of capacitor C12, and the other end of capacitor C12 is connected to pin 8 of the six-axis sensor chip U6. Pin 24 of the six-axis sensor chip U6 is respectively connected to pin 43 of the single-chip microcomputer chip U3 and one end of resistor R7. The other end of resistor R7 is connected to one end of resistor R8. The other end of resistor R8 is respectively connected to pin 42 of the single-chip microcomputer chip U3 and pin 23 of the six-axis sensor chip U6. Pin 20 of the six-axis sensor chip U6 is connected to one end of capacitor C13, and the other end of capacitor C13 is respectively connected to pin 18 of the six-axis sensor chip U6 and one end of capacitor C15. The other end of capacitor C15 is connected to pin 13 of the six-axis sensor chip U6. The motion processing module not only integrates a three-axis gyroscope, but also integrates a three-axis accelerometer, which can output three-axis angle information and three-axis acceleration information.
[0050] The vibration motor module includes a motor M1, one end of which is connected to the cathode of a diode MD1, one end of a capacitor MC1, and one end of a resistor R9. The anode of the diode MD1 is connected to the other end of the motor M1 and the drain of the MOS tube MQ1. The source of the MOS tube MQ1 is connected to one end of a resistor R11. The other end of the resistor R11 is connected to the gate and one end of the resistor R10. The other end of the resistor R10 is connected to pin 10 of the microcontroller chip U3. The vibration motor module controls the vibration intensity through the PWM input IN end.
[0051] This embodiment also includes a power supply module, which is electrically connected to the main control module, infrared sensor module, communication module, RGB module, sound sensor module, motion processing module and vibration motor module. The power supply module includes a boost chip U1 and a voltage regulator chip U2. The model of the boost chip U1 is BL8530, and the model of the voltage regulator chip U2 is 662K. The input end of the boost chip U1 is respectively connected to one end of the inductor L1, the anode of the Schottky diode D1, and the positive electrode of the electrolytic capacitor C4. The other end of the inductor L1 is connected to the cathode of the Schottky diode D2. The anode of the Schottky diode D2 is connected to one end of the switch S1, and the other end of the switch S1 is connected to the positive electrode of the electrolytic capacitor C4. Connect to the battery power supply, the output end of the boost chip U1 is respectively connected to the cathode of the Schottky diode D1, the positive electrode of the electrolytic capacitor C1, and the input end of the voltage regulator chip U2, the output end of the voltage regulator chip U2 is respectively connected to one end of the capacitor C2 and one end of the capacitor C3, the other end of the capacitor C3 is connected to the other end of the capacitor C2, the ground end of the voltage regulator chip U2, the negative electrode of the electrolytic capacitor C1, the ground end of the boost chip U1, the negative electrode of the electrolytic capacitor C4 and then grounded. By boosting and then reducing the voltage, the 3.3V voltage regulator input end can have a stable 5V voltage source, thereby improving the working power supply quality of the single-chip microcomputer, that is, the voltage is boosted by the boost chip U1, and then stabilized by the voltage regulator chip U2 to output 3.3V.
[0052] The above shows and describes the basic principles and main features of the present utility model and the advantages of the present utility model. Those skilled in the art should understand that the present utility model is not limited to the above embodiments. The above embodiments and descriptions are merely illustrative of the principles of the present utility model. Various changes and improvements are possible without departing from the spirit and scope of the present utility model. Such changes and improvements are within the scope of the present utility model. The scope of protection claimed in the present utility model is defined by the appended claims and their equivalents.
Claims
1. A magic wand, comprising a magic wand body, characterized in that: The magic wand body is provided with a main control module, as well as an infrared sensor module, a communication module, an RGB module, a sound sensor module, a motion processing module and a vibration motor module electrically connected to the main control module. The main control module includes a single-chip microcomputer chip U3 with model number STM32F103C8T6.
2. A magic wand according to claim 1, characterized in that: The infrared sensor module includes a comparator U10, a non-inverting input end of the comparator U10 connected to the sliding end of the variable resistor RVAR1, one end of the variable resistor RVAR1 respectively connected to one end of the resistor R24 and the ground end of the comparator U10, the other end of the variable resistor RVAR1 respectively connected to the emitter of the phototransistor CGQ1, the power supply end of the comparator U10, and one end of the resistor R23, the collector of the phototransistor CGQ1 respectively connected to the other end of the resistor R24 and the inverting input end of the comparator U10, the other end of the resistor R23 respectively connected to the output end of the comparator U10, pin 27 of the single-chip microcomputer chip U3, the cathode of the light-emitting diode LED6, and the anode of the light-emitting diode LED7, the anode of the light-emitting diode LED6 is connected to one end of the resistor R22, and the cathode of the light-emitting diode LED7 is connected to one end of the resistor R25.
3. A magic wand according to claim 1, characterized in that: The communication module includes a Bluetooth module and a WIFI module; The Bluetooth module includes a Bluetooth chip U7, the model of which is CSR BC417. Pin 1 of the Bluetooth chip U7 is connected to pin 21 of the single-chip microcomputer chip U3, pin 2 of the Bluetooth chip U7 is connected to pin 22 of the single-chip microcomputer chip U3, pin 34 of the Bluetooth chip U7 is connected to one end of the switch SW1, the other end of the switch SW1 is connected to power, pin 31 of the Bluetooth chip U7 is connected to one end of the resistor R16, and the other end of the resistor R16 is connected to the anode of the light-emitting diode LED3; The WIFI module includes a WIFI chip U4, the model of which is ESP8266. Pin 1 of the WIFI chip U4 is connected to one end of the resistor R13, the other end of the resistor R13 is respectively connected to one end of the resistor R12, one end of the capacitor C19, and pin 8 of the WIFI chip U4. Pin 21 of the WIFI chip U4 is connected to pin 31 of the microcontroller chip U3, pin 22 of the WIFI chip U4 is connected to pin 30 of the microcontroller chip U3, pin 18 of the WIFI chip U4 is connected to one end of the resistor R14, and the other end of the resistor R14 is connected to power.
4. A magic wand according to claim 1, characterized in that: The RGB module includes an RGB driver LED1, the model of the RGB driver is R6GHBHC, pin 4 of the RGB driver LED1 is connected to one end of the resistor R1, the other end of the resistor R1 is connected to pin 16 of the microcontroller chip U3, pin 5 of the RGB driver LED1 is connected to one end of the resistor R2, the other end of the resistor R2 is connected to pin 17 of the microcontroller chip U3, pin 6 of the RGB driver LED1 is connected to one end of the resistor R3, the other end of the resistor R3 is connected to pin 18 of the microcontroller chip U3, and pins 1, 2, and 3 of the RGB driver LED1 are all grounded.
5. The magic wand according to claim 1, characterized in that: The sound sensor module includes an audio chip U8, the model of the audio chip U8 is LM386D, the 3rd pin of the audio chip U8 is connected to the sliding end of the variable resistor RP1, one end of the variable resistor RP1 is connected to one end of the capacitor C24, the other end of the capacitor C24 is respectively connected to one end of the resistor R17, one end of the capacitor C27, and the connector J1, the other end of the resistor R17 is respectively connected to one end of the capacitor C20 and the positive electrode of the electrolytic capacitor C21, the other end of the capacitor C20 and the negative electrode of the electrolytic capacitor C21 are grounded, the other end of the sliding resistor RP1 is connected to the 4th pin of the audio chip U8 and then grounded, the audio chip Pin 7 of chip U8 is connected to one end of capacitor C25, pin 5 of audio chip U8 is respectively connected to one end of capacitor C28, the positive electrode of electrolytic capacitor C26, and the inverting input end of comparator U9, the negative electrode of electrolytic capacitor C26 is connected to pin 15 of microcontroller chip U3, the non-inverting input end of comparator U9 is connected to the sliding end of variable resistor RP2, one end of variable resistor RP2 is connected to the ground end of comparator U9, the output end of comparator U9 is respectively connected to one end of resistor R19 and the cathode of light-emitting diode LED4, the anode of light-emitting diode LED4 is connected to one end of resistor R20, and the other end of resistor R20 is connected to power.
6. The magic wand according to claim 1, characterized in that: The motion processing module includes a six-axis sensor chip U6, the model of which is MPU-6050. Pin 1 of the six-axis sensor chip U6 is connected to one end of capacitor C12, and the other end of capacitor C12 is connected to pin 8 of the six-axis sensor chip U6. Pin 24 of the six-axis sensor chip U6 is respectively connected to pin 43 of the single-chip microcomputer chip U3 and one end of resistor R7. The other end of resistor R7 is connected to one end of resistor R8. The other end of resistor R8 is respectively connected to pin 42 of the single-chip microcomputer chip U3 and pin 23 of the six-axis sensor chip U6. Pin 20 of the six-axis sensor chip U6 is connected to one end of capacitor C13. The other end of capacitor C13 is respectively connected to pin 18 of the six-axis sensor chip U6 and one end of capacitor C15. The other end of capacitor C15 is connected to pin 13 of the six-axis sensor chip U6.
7. The magic wand according to claim 1, characterized in that: The vibration motor module includes a motor M1, one end of which is connected to the cathode of a diode MD1, one end of a capacitor MC1, and one end of a resistor R9. The anode of the diode MD1 is connected to the other end of the motor M1 and the drain of the MOS tube MQ1. The source of the MOS tube MQ1 is connected to one end of a resistor R11. The other end of the resistor R11 is connected to the gate and one end of a resistor R10. The other end of the resistor R10 is connected to pin 10 of the microcontroller chip U3.
8. The magic wand according to claim 1, characterized in that: It also includes a power supply module, which is electrically connected to the main control module, infrared sensor module, communication module, RGB module, sound sensor module, motion processing module and vibration motor module. The power supply module includes a boost chip U1 and a voltage regulator chip U2. The model of the boost chip U1 is BL8530, and the model of the voltage regulator chip U2 is 662K. The input end of the boost chip U1 is connected to one end of the inductor L1, the anode of the Schottky diode D1, and the positive electrode of the electrolytic capacitor C4. The other end of the inductor L1 is connected to the Schottky diode The cathode of the tube D2 and the anode of the Schottky diode D2 are connected to one end of the switch S1, and the other end of the switch S1 is connected to the battery power supply. The output end of the boost chip U1 is respectively connected to the cathode of the Schottky diode D1, the positive electrode of the electrolytic capacitor C1, and the input end of the voltage stabilizing chip U2. The output end of the voltage stabilizing chip U2 is respectively connected to one end of the capacitor C2 and one end of the capacitor C3. The other end of the capacitor C3 is connected to the other end of the capacitor C2, the ground end of the voltage stabilizing chip U2, the negative electrode of the electrolytic capacitor C1, the ground end of the boost chip U1, the negative electrode of the electrolytic capacitor C4 and then grounded.