With the maturity of wireless sensor three-dimensional space technology and the improvement of people’s requirement for three-dimensional experience, the control demand for free and convenient three-dimensional space wireless sensor technology is increasing.
This paper introduces the software design of a three-dimensional perception-oriented wireless sensor controller. A three-dimensional wireless sensor technology is used to realize the control of the wireless device controller in three-dimensional space. With the progress of science and technology, people’s life has gradually entered the entertainment of science and technology, and some high-tech wearable devices have appeared one after another. Modern control input devices are equipped with a variety of sensors to absorb signals into the equipment. The most frequently used signal is photoelectric signal or sensor signal. In the somatosensory input devices, most of them are based on camera image or sensor technology. The role of wireless sensor technology in the network is generally to locate in two-dimensional space, while in three-dimensional space, the technology is gradually mature. Compared with two-dimensional space technology, its data volume and complexity are higher, and the amount of information is also larger. So the current technical difficulty is to produce high performance, low cost, high strength and high stability three-dimensional controller.
According to the existing motion recognition algorithm and microprocessor, a three-dimensional stereo controller is designed by using wireless devices reasonably. This three-dimensional controller uses Freescale’s KL25Z chip as the control unit of the whole machine, and designs the bottom hardware control module to realize data communication and transmission between the main control unit and the MEMS sensor. A set of data processing and upper computer testing software is developed on PC, and the communication protocol between PC and lower computer is established. The basic 3D physical simulation can be realized in PC software with C# language, and interactive simulation can be carried out with real objects. The software of the lower computer completes the programming of the microprocessor of the lower computer.
The compiler can choose KEIL4, IAR or CW MCU v10.5. Its main functions include: LCD driver interface or display data; data function driver of LSM330DLC; use of TSI (capacitive touch technology); use of QMX operating system and so on. After power-on, the lower computer first configures the running clock, which runs at 48M. Then initialize the system stack, data and other system parameters.
Create three new system tasks. TSI module, thermostatic element LCD module and sensor LSM330DLC module are initialized in the task. Initialize the initial values of acceleration and angular velocity. Initialize the timer module. Enter the task processing cycle, listen for all message signals, and process. In the task cycle, the system needs to process, receive command events, send events, sensor click events, TSI touch events, IMU posture update processing events, and image display events. Read the sensor values and perform IMU attitude calculation once every 4ms to get the solution angle.
Data is sent to PC through serial port. Real-time monitoring of touch button tasks, monitoring and processing of touch button events. The upper computer software adopts C compiler. The main tasks are: initialization, receiving and processing of serial messages.
Data icon real-time display and three-dimensional control display, camera acquisition and data processing. The upper computer software adopts C compiler. The main tasks are: initialization, receiving and processing of serial messages. Data icon real-time display and three-dimensional control display, camera acquisition and data processing. The blank part of this interface is used to display real-time data charts, which can be used to observe the data parameters of the lower computer.
The key “real-time display” is the switch to turn on the display. Display speed can be adjusted by “display speed -” and “display speed ” to refresh data fast and slow. The “Record Data Open” button is used to distinguish refresh display from demonstration use of 3D controls by recording data into the cache.
“Clear data” is to empty the data in the data cache and restart recording later data. The upper left labels of the 3D window are real-time display of data. The blank part is the software execution interface. When executed, there is an analog 3D space display in the center of the screen. The operation diagram is shown in Fig. 5. After debugging of software and hardware, the design basically realizes three-dimensional display and three-dimensional stereo control. The motion signal of wireless sensor controller can be converted into several or more general control commands, which can be made into a general controller and applied to three-dimensional mouse and other products.