An intelligent detection system
By designing an intelligent detection system with integrated multifunction mode, the problem that existing equipment cannot stimulate students' interest in learning is solved, and the effect of providing leisure and entertainment and direction guidance after learning is accumulated is achieved.
Patent Information
- Application Number
- CN202111340810.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-12
- Publication Date
- 2025-06-27
- Estimated Expiration
- 2041-11-12
AI Technical Summary
Existing teaching equipment and student entertainment equipment cannot effectively stimulate students' interest in learning, resulting in students being unwilling to continue learning during extracurricular time.
An intelligent detection system is designed, integrating circuit substrates, LED lights, acceleration sensors, angular velocity sensors, magnetometers and mode switches, and stimulate students' interest in learning through different functional modes (water mode, game mode, compass mode and lottery turntable mode).
Through the multi-functional intelligent detection system, it can provide leisure and entertainment and direction guidance after learning accumulation, enhance students' interest in learning, and provide an interesting learning experience in extracurricular time.
Smart Images

Figure CN114067645B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electronic technology, and in particular to an intelligent detection system. Background Art
[0002] Existing teaching equipment includes teaching experiment boxes or test benches, etc., and student entertainment equipment includes mobile phones and game consoles, etc., which often cause students to become addicted. At the same time, since the experimental equipment only includes teaching experiment functions, the learning interest of students is not high. Many students do not spend other time studying except during class. Therefore, in order to improve the learning interest of students and enable more students to spend more time studying, it is necessary to design an interesting experimental device that can stimulate students' learning interest and an intelligent detection system. Summary of the Invention
[0003] The purpose of the present invention is to provide an intelligent detection system to solve the technical problems raised in the background art.
[0004] An intelligent detection system includes a circuit board, a central hole, a plurality of LED lights, a controller, an LED driver, an acceleration sensor, an angular velocity sensor, a magnetometer, and a mode switch. The central hole is provided at the center of the circuit board. The plurality of LED lights are arranged equiangularly on the periphery of the circuit board and are arranged on the same circular line. The controller, the LED driver, the acceleration sensor, the angular velocity sensor, the magnetometer, and the mode switch are all arranged on the circuit board. The acceleration sensor, the angular velocity sensor, the magnetometer, and the mode switch are all connected to the controller. The controller is connected to the plurality of LED lights through the LED driver. The mode switch is used to switch function modes, and the function modes include a water mode, a game mode, a compass mode, and a lottery turntable mode. The circuit board is set as a circular board.
[0005] Further, after starting up, the acceleration components Gx, Gy, Gz of the X-axis, Y-axis, and Z-axis of the acceleration sensor are detected at a time period of T, the angular velocity values Ax, Ay, Az of the X-axis, Y-axis, and Z-axis of the angular velocity sensor are detected, and the magnetic induction intensity values Hx, Hy, Hz of the X-axis, Y-axis, and Z-axis of the magnetometer are detected, so that the yaw angle ya, the roll angle ro, and the pitch angle pi can be obtained.
[0006]
[0007]
[0008]
[0009] Then, the change amount of the Y-axis angle is detected by integration each time. A y2is the angular velocity value for a subsequent detection, A y1 is the angular velocity value for the previous detection, t is the detection period and is equal to T. Similarly, the angular change amounts of the X-axis and Z-axis can be calculated. The initial position is set horizontally, so the initial yaw angle, roll angle, and pitch angle are all 0.
[0010] Furthermore, when the function mode is the water mode, the PWM of 25 LED lights is calculated, that is, the brightness of each LED light. The brightness of the LED lights is divided into 25 levels, ranging from 0 to 24, with 24 being the brightest and 0 being the weakest. The position of each LED light is fixed to simulate the gravity effect of the fluid. The total brightness K remains unchanged, that is, the sum of the brightness of all LED lights is unchanged. The LED lights closer to the ground on the circuit board are brighter. Let the LED lights be y1 - y25. First, detect the vertical position of each light. Taking the center hole as the origin of the three axes and the radius of the circuit board as r, the LED light is represented as yn, where n is from 1 to 25. Then, the vertical position of each LED light is h yn= r * sin(ro yn ),ro yn represents the roll angle of the yn LED lights. Then, sort the vertical positions h yn of the 25 LED lights in ascending order, and arrange the brightness from 24 to 0 one by one, decreasing gradually. Then, send a PWM waveform through the controller to control the brightness of each LED light through the LED driver;
[0011] When it is detected that the yaw angle, roll angle, and pitch angle are all 0, but the angular change amount of the X-axis, Z-axis, or Y-axis is not 0, detect the yaw angle change amount ya 加 = ya ynt - ya yn(t-1) of each LED light. When the yaw angle change amount ya 加 is not 0, select a direction as the acceleration indication point. Then, the LED lights rotated to this point are all the brightest. When the LED lights after rotating past this position are extinguished, then gradually brighten from the rotation direction to the indication point one by one. The brightness of the acceleration indication point LED light = yaw angle change amount ya 加 * basic brightness.
[0012] Furthermore, when the function mode is the compass mode, the brightness of an LED light closest to the south direction is the brightest, and the brightness of the other lights farther away from the south direction gradually weakens. The controller detects the position of each LED light and then sends a PWM waveform to control the brightness.
[0013] Further, when the function mode is the game mode, two LED lights randomly light up. The controller generates random numbers through a random function, and then lights up two LED lights according to the two random numbers. The controller emits a PWM waveform to control one of the LED lights to be constantly on, and the other LED light rotates counterclockwise or clockwise. That is, the circuit board remains stationary, and the controller emits a PWM waveform to control the LED lights to light up in sequence counterclockwise or clockwise starting from the other LED light, with the same time interval between the lights. When the positions where the two LED lights are on are the same, the player presses the button to indicate passing. After passing, the controller controls the time interval between the LED lights to become smaller, that is, the rotation speed increases until failure occurs, and a buzzer alarm is emitted, and the speed returns to the default value.
[0014] Further, when the function mode is the lottery turntable mode, one or several of the LED lights are marked with prizes. The user presses the mode switch to indicate the start of the lottery. The controller generates the lottery rotation time through a random function, with the unit being seconds, and then counts down from the start of the lottery. After the lottery rotation time countdown is completed, the last LED light (3) remains constantly on, and the corresponding prize is the prize of the lottery.
[0015] The present invention adopts the above technical solutions, and the present invention has the following technical effects:
[0016] The present invention simply measures the horizontal and angle. As a compass, it can help people find the correct direction. When people are bored or under great pressure at ordinary times, they can relax physically and mentally. According to the brightness and darkness of the small lights, they can intuitively understand the attitude of the board. It can be used as a compass to guide the direction, can be used for leisure and entertainment, can play a stress-relieving small light game, can be used for random lottery, and can perform operations such as a large turntable with this device. It has multiple functions and can be used by students to play after studying tired or for direction recognition when going out. Description of the Drawings
[0017] Figure 1 It is a schematic diagram of the structure of the present invention.
[0018] Figure 2 It is a circuit block diagram of the present invention.
[0019] Reference numerals in the figures: 1 - circuit board; 2 - central hole; 3 - LED light; 4 - controller; 5 - LED driver; 6 - acceleration sensor; 7 - angular velocity sensor; 8 - magnetometer; 9 - buzzer; 10 - mode switch. Detailed Embodiments
[0020] To make the objectives, technical solutions and advantages of the present invention more clearly understood, preferred embodiments are given to further elaborate on the present invention. However, it should be noted that many details listed in the specification are only for enabling the reader to have a thorough understanding of one or more aspects of the present invention, and these aspects of the present invention can be implemented even without these specific details.
[0021] An intelligent detection system, as Figure 1-2 shown, includes a circuit board 1, a central hole 2, a plurality of LED lights 3, a controller 4, an LED driver 5, an acceleration sensor 6, an angular velocity sensor 7, a magnetometer 8 and a mode switch 10. The central hole 2 is disposed at the center of the circuit board 1. The plurality of LED lights are equiangularly arranged on the periphery of the circuit board 1 and are arranged on the same circular line. The controller 4, the LED driver 5, the acceleration sensor 6, the angular velocity sensor 7, the magnetometer 8 and the mode switch 10 are all disposed on the circuit board 1. The acceleration sensor 6, the angular velocity sensor 7, the magnetometer 8 and the mode switch 10 are all connected to the controller 4. The controller 4 is connected to the plurality of LED lights via the LED driver 5. The mode switch 10 is used to switch function modes, and the function modes include a water mode, a game mode, a compass mode and a lottery turntable mode. The circuit board 1 is configured as a circular board. Through button detection, it can be adjusted to four modes, namely the water mode (posture interaction mode), the game mode, the compass mode and the lottery turntable mode.
[0022] After power-on startup, the acceleration components Gx, Gy, Gz of the X-axis, Y-axis and Z-axis of the acceleration sensor 6, the angular velocity values Ax, Ay, Az of the X-axis, Y-axis and Z-axis of the angular velocity sensor 7 and the magnetic induction intensity values Hx, Hy, Hz of the X-axis, Y-axis and Z-axis of the magnetometer 8 are detected at a time period of T, and the yaw angle ya, roll angle ro and pitch angle pi can be obtained therefrom.
[0023]
[0024]
[0025]
[0026] Then, the change amount of the Y-axis angle each time is detected by integration A y2 is the angular velocity value of the subsequent detection, A y1ω is the angular velocity value of the previous detection, t is the detection period, which is equal to T. Similarly, the angular change amounts of the X-axis and Z-axis can be calculated. The initial position is set horizontally, so the initial yaw angle, roll angle, and pitch angle are all 0. Obtain the accelerations and angular velocities of the X, Y, and Z axes, and calculate the attitude of the circuit board through a fusion algorithm; obtain the angular velocities and magnetometer values of the X, Y, and Z axes, and calculate the current orientation of the circuit board through a fusion algorithm. Calculate the PWM for each small light to be lit through the circuit board attitude, control the lighting and extinguishing of the small lights, and control the tone of the buzzer (not specifically introduced here), etc. Obtain the current attitude of the circuit board through the acceleration and angular velocity sensors. Calculate the lighting frequency of each small light through the attitude. Use the small lights and the buzzer to prompt the fixed-point attitude, such as the horizontal attitude and the vertical attitude. Switch the mode through the button, and the modes include the water mode, the compass mode, and the game mode.
[0027] When the function mode is the water mode, calculate the PWM of 25 LED lights 3, that is, the brightness of each LED light 3. The brightness of the LED lights 3 is divided into 25 levels, ranging from 0 to 24, with 24 being the brightest and 0 being the weakest. The position of each LED light 3 is fixed, simulating the gravity effect of the fluid. The total brightness K is constant, that is, the sum of the brightness of all LED lights (3) is constant. The LED lights 3 closer to the ground on the circuit board are brighter. Let the LED lights 3 be y1 - y25 respectively. First, detect the vertical position of each light. Taking the center hole 2 as the origin of the three axes and the radius of the circuit board 1 as r, the LED light 3 is represented as yn, where n is 1 - 25. Then, the vertical position of each LED light 3 is h yn= r * sin(ro yn ),ro yn represents the roll angle of the yn-th LED light 3. Then, sort the vertical positions h of the 25 LED lights 3 yn in ascending order and arrange the brightness from 24 to 0 one by one, decreasing gradually. Then, send out a PWM waveform through the controller 4 to control the brightness of each LED light 3 through the LED driver 5.
[0028] When it is detected that the yaw angle, roll angle, and pitch angle are all 0 and the angular change amount of the X-axis, Z-axis, or Y-axis is not 0, detect the yaw angle change amount ya of each LED light 3 加 = ya ynt - ya yn(t-1) . When the yaw angle change amount ya 加 is not 0, select a direction as the acceleration indication point. Then, the LED lights 3 rotated to this point are all the brightest. When the LED lights 3 after rotating past this position are extinguished, then gradually increase the brightness one by one from the rotation direction to the indication point. The brightness of the LED light 3 at the acceleration indication point = the yaw angle change amount ya 加*Base brightness, which is a known quantity. By the brightness and the lit direction of the LED lights, it can be intuitively known which side the board is biased towards and to what extent, facilitating quick measurement. Attitude feedback, the attitude of the board can be intuitively understood according to the on / off and brightness of the lights.
[0029] When the function mode is the compass mode, the brightness of the LED light 3 closest to the south direction is the brightest, and the brightness of the other lights gradually weakens as they are farther away from the south direction. The controller 4 detects the positions of each LED light 3 and then emits a PWM waveform to control the brightness. In the compass mode, a light closest to the south direction needs to be constantly on, and the light in the current facing direction also needs to be constantly on but with half brightness. Here, the brightness is fixed, only the direction changes, and the human facing direction is the same as the board's facing direction. The facing lights do not need to be calculated and are directly fixed. The buzzer sounds once when the two lights coincide. Therefore, we need to calculate the position of the light closest to the south on the circuit board.
[0030] When the function mode is the game mode, two LED lights (3) are randomly lit. The controller 4 generates random numbers through a random function and then lights two LED lights 3 according to the two random numbers. The controller 4 emits a PWM waveform to control one LED light 3 to be constantly on, and the other LED light 3 rotates counterclockwise or clockwise, that is, the circuit board 1 remains stationary, and the controller 4 emits a PWM waveform to control the LED lights 3 to be lit in sequence counterclockwise or clockwise starting from the other LED light 3, with the same time interval between lit times. When the lit positions of the two LED lights 3 are the same, the player presses the button to indicate passing. After passing, the controller 4 controls the time interval between the lit times of the LED lights 3 to become smaller, that is, the rotation speed increases until failure, and a buzzer alarm is issued, and the speed returns to the default value.
[0031] When the function mode is the lottery turntable mode, one or several of the LED lights 3 are marked with prizes. The user presses the mode switch 10 to indicate the start of the lottery. The controller 4 generates the lottery rotation time through a random function, with the unit being seconds, and then counts down from the start of the lottery. After the lottery rotation time countdown is completed, the last LED light 3 remains constantly on, and the corresponding prize is the lottery prize. After pressing the button, it rotates a random angle value and then stops, and the buzzer sounds. This can be used to play a random game similar to rolling dice at a party.
[0032] The above are only the preferred embodiments of the present invention. It should be noted that for those of ordinary skill in the art in this technical field, without departing from the principle of the present invention, several improvements and refinements can be made, and these improvements and refinements should also be regarded as the protection scope of the present invention.
Claims
1. An intelligent detection system, characterized in that: Circuit board (1), central hole (2), several LED lights (3), controller (4), LED driver (5), acceleration sensor (6), angular velocity sensor (7), magnetometer (8) and mode switch (10). The central hole (2) is set at the center of the circuit board (1). Several LED lights are arranged equiangularly on the periphery of the circuit board (1) and are on the same circular line. The controller (4), LED driver (5), acceleration sensor (6), angular velocity sensor (7), magnetometer (8) and mode switch (10) are all set on the circuit board (1). The acceleration sensor (6), angular velocity sensor (7), magnetometer (8) and mode switch (10) are all connected to the controller (4). The controller (4) is connected to several LED lights through the LED driver (5). The mode switch (10) is used to switch the function mode. The function modes include water mode, game mode, compass mode and lottery turntable mode. The circuit board (1) is set as a circular board. After power-on and startup, the acceleration components Gx, Gy, Gz of the X-axis, Y-axis and Z-axis of the acceleration sensor (6) are detected at a time period of T, the angular velocity values Ax, Ay, Az of the X-axis, Y-axis and Z-axis of the angular velocity sensor (7) are detected, and the magnetic induction intensity values Hx, Hy, Hz of the X-axis, Y-axis and Z-axis of the magnetometer (8) are detected. Then the yaw angle ya, roll angle ro and pitch angle pi can be obtained. Then, the change amount of the Y-axis angle is detected by integration each time A y2 is the angular velocity value for the subsequent detection. A y1 is the angular velocity value for the previous detection. t is the detection period and is equal to T. Similarly, the change amounts of the X-axis and Z-axis angles can be calculated. The initial position is set horizontally, so the initial yaw angle, roll angle, and pitch angle are all 0 When the function mode is the water mode, the PWM of 25 LED lights (3) is calculated, that is, the brightness of each LED light (3). The brightness of the LED lights (3) is divided into 25 levels, ranging from 0 to 24, with 24 being the brightest and 0 being the weakest. The position of each LED light (3) is fixed to simulate the gravity effect of the fluid. The total brightness K is constant, that is, the sum of the brightness of all LED lights (3) is constant. The LED lights (3) closer to the ground on the circuit board are brighter. Let the LED lights (3) be y1 - y25 respectively. First, detect the vertical position of each light. Taking the center hole (2) as the origin of the three axes, the radius of the circuit board (1) is r, and the LED light (3) is represented as yn, where n is from 1 to 25. Then the vertical position of each LED light (3) is h yn = r * sin(ro yn ), ro yn represents the roll angle of the yn LED lights (3). Then, sort the vertical positions h yn of the 25 LED lights (3) from smallest to largest, and arrange the brightness from 24 to 0 one by one, decreasing gradually. Then, the controller (4) issues a PWM waveform to control the brightness of each LED light (3) through the LED driver (5); When it is detected that the yaw angle, roll angle, and pitch angle are all 0, and the angle change of the X-axis, Z-axis, or Y-axis is not 0, detect the yaw angle change ya of each LED lamp (3). 加 = ya ynt -ya yn(t-1) , when the yaw angle change ya 加 is not 0, select a direction as the acceleration indication point, then the LED lamps (3) rotated to this point are the brightest. When the LED lamps (3) after rotating past this position are extinguished, then gradually brighten them one by one from the rotation direction to the indication point. The brightness of the LED lamp (3) at the acceleration indication point = the yaw angle change ya 加 * basic brightness. When the function mode is the compass mode, the LED light (3) closest to the south direction is the brightest, and the brightness of the other lights farther away from the south direction gradually weakens. The controller (4) detects the position of each LED light (3) and then emits a PWM waveform to control the brightness. When the function mode is the game mode, two LED lights (3) are randomly lit. The controller (4) generates random numbers through a random function and then lights two LED lights (3) according to the two random numbers. The controller (4) emits a PWM waveform to control one LED light (3) to be constantly on, and the other LED light (3) rotates counterclockwise or clockwise. That is, the circuit board (1) remains stationary, and the controller (4) emits a PWM waveform to control the LED lights (3) to light up in sequence counterclockwise or clockwise starting from the other LED light (3) with the same time interval between lights. When the positions of the two lit LED lights (3) are the same, the player presses the button to indicate passing. After passing, the controller (4) controls the time interval between the lit LED lights (3) to become smaller, that is, the rotation speed increases until failure, and a buzzer alarm is issued and the speed returns to the default value. When the function mode is the lottery turntable mode, one or several of the LED lights (3) are marked with prizes. The user presses the mode switch (10) to indicate the start of the lottery. The controller (4) generates the lottery rotation time in seconds through a random function and then counts down from the start of the lottery. After the lottery rotation time countdown is completed, the last LED light (3) remains constantly on, and the corresponding prize is the lottery prize.
Citation Information
Patent Citations
Breathing type running lamp with action response
CN101737764A