[go: up one dir, main page]

CN106621318B - A joystick system and method for collecting signals based on sensor mpu6050 - Google Patents

A joystick system and method for collecting signals based on sensor mpu6050 Download PDF

Info

Publication number
CN106621318B
CN106621318B CN201611262473.4A CN201611262473A CN106621318B CN 106621318 B CN106621318 B CN 106621318B CN 201611262473 A CN201611262473 A CN 201611262473A CN 106621318 B CN106621318 B CN 106621318B
Authority
CN
China
Prior art keywords
module
sin
chip
follows
cos
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201611262473.4A
Other languages
Chinese (zh)
Other versions
CN106621318A (en
Inventor
刘华
李玉光
胡梦恬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dalian University
Original Assignee
Dalian University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dalian University filed Critical Dalian University
Priority to CN201910848013.7A priority Critical patent/CN110465075B/en
Priority to CN201611262473.4A priority patent/CN106621318B/en
Publication of CN106621318A publication Critical patent/CN106621318A/en
Application granted granted Critical
Publication of CN106621318B publication Critical patent/CN106621318B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/20Input arrangements for video game devices
    • A63F13/23Input arrangements for video game devices for interfacing with the game device, e.g. specific interfaces between game controller and console
    • A63F13/235Input arrangements for video game devices for interfacing with the game device, e.g. specific interfaces between game controller and console using a wireless connection, e.g. infrared or piconet
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/20Input arrangements for video game devices
    • A63F13/24Constructional details thereof, e.g. game controllers with detachable joystick handles

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Length Measuring Devices With Unspecified Measuring Means (AREA)
  • Measurement Of Length, Angles, Or The Like Using Electric Or Magnetic Means (AREA)
  • Position Input By Displaying (AREA)
  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

The invention relates to a handle rocker system and a method based on signals collected by a sensor mpu6050, belonging to the field of handles. The method comprises the following steps: signal acquisition module, wireless transceiver module, GPIO button module, power voltage stabilizing module and pressure measuring module, signal acquisition module respectively with wireless transceiver module, GPIO button module, power voltage stabilizing module and pressure measuring module are connected, signal acquisition module includes microprocessor K60 and rocker device, wireless transceiver module includes the NRF24L01 wireless radio frequency module of being connected with microprocessor K60, GPIO button module includes outside button and LED pilot lamp, power voltage stabilizing module includes battery and steady voltage chip LM-2596, pressure measuring module includes voltage comparator LM 301A. The beneficial effects are that: the invention can obtain better dynamic performance and static performance, and obtain higher accuracy, stability and comfort, thereby obtaining better user experience.

Description

一种基于传感器mpu6050采集信号的手柄摇杆系统和方法A joystick system and method for collecting signals based on sensor mpu6050

技术领域technical field

本发明涉及手柄领域,尤其涉及一种基于传感器mpu6050采集信号的手柄摇杆系统和方法。The invention relates to the field of handles, in particular to a handle rocker system and method for collecting signals based on a sensor mpu6050.

背景技术Background technique

随着当今社会经济的不断进步以及科学技术的日益发展,人们日常的娱乐方式也越来越丰富。其中电子游戏和无人机是比较常见的娱乐项目,尤其无人机作为新兴的娱乐方式也收到了更多人的欢迎和喜爱,二者都需要使用手柄进行操作,而高精度的摇杆手柄能使用户获得更好的体验。当前市场上传统的手柄摇杆多以电位器作为角度采集元件,由于电位器是易损元件,摩擦力大,易造成摇杆的控制精度和耐用度下降,并且这一类元件具有一定的反向空程、磨损大、动态性能差等现象,造成使用过程中的不稳定。所以人们需要一种准确度、平稳度和舒适度更高的摇杆手柄进行电子游戏的控制和无人机的遥控。With the continuous progress of today's social economy and the development of science and technology, people's daily entertainment methods are becoming more and more abundant. Among them, electronic games and drones are relatively common entertainment items, especially drones have been welcomed and loved by more people as an emerging entertainment method, both of which need to be operated with handles, and high-precision joystick handles Can enable users to obtain a better experience. Most of the traditional joysticks on the market currently use potentiometers as angle acquisition components. Since potentiometers are vulnerable components with high friction, it is easy to reduce the control accuracy and durability of the joystick, and this type of components has a certain degree of reaction. Phenomena such as empty travel, large wear, and poor dynamic performance cause instability during use. Therefore, people need a rocker handle with higher accuracy, stability and comfort for controlling video games and remote control of drones.

发明内容Contents of the invention

为了克服现有的摇杆手柄具有一定反向空程、磨损大、动态性能差的缺陷,本发明提供一种基于传感器mpu6050采集信号的手柄摇杆系统和方法,该手柄摇杆系统能获得更好的动态性能和静态性能,获得更高的准确度、平稳度和舒适度,从而能获得更好的用户体验。所述技术方案如下:In order to overcome the disadvantages of the existing rocker handles, such as a certain amount of reverse air travel, large wear, and poor dynamic performance, the present invention provides a handle rocker system and method based on sensor mpu6050 signal acquisition, the handle rocker system can obtain more Good dynamic performance and static performance, higher accuracy, smoothness and comfort, so as to obtain a better user experience. Described technical scheme is as follows:

一种基于传感器mpu6050采集信号的手柄摇杆系统,包括:信号采集模块、无线收发模块、GPIO按键模块、电源稳压模块和测压模块,所述信号采集模块分别与所述无线收发模块、GPIO按键模块、电源稳压模块和测压模块连接,所述信号采集模块包括微处理器K60和摇杆装置,所述无线收发模块包括与微处理器K60连接的NRF24L01无线射频模块,所述GPIO按键模块包括外部按键和LED指示灯,所述电源稳压模块包括电池和稳压芯片LM-2596,所述测压模块包括电压比较器LM301A。A handle rocker system based on sensor mpu6050 signal acquisition, comprising: a signal acquisition module, a wireless transceiver module, a GPIO button module, a power supply voltage stabilization module and a pressure measurement module, the signal acquisition module is connected to the wireless transceiver module, GPIO The button module, the power supply voltage stabilization module and the pressure measurement module are connected, the signal acquisition module includes a microprocessor K60 and a rocker device, the wireless transceiver module includes an NRF24L01 wireless radio frequency module connected with the microprocessor K60, and the GPIO button The module includes external keys and LED indicator lights, the power supply voltage stabilization module includes a battery and a voltage stabilization chip LM-2596, and the pressure measurement module includes a voltage comparator LM301A.

进一步的,所述摇杆装置包括摇杆、旋转球、压缩弹簧、芯片A和芯片B,所述摇杆穿过旋转球分别连接芯片A和芯片B,所述压缩弹簧一端与所述旋转球连接,所述芯片A和芯片B的距离为100mm,所述芯片A和芯片B为传感器mpu6050,所述芯片A和芯片B分别与微处理器K60连接。Further, the rocker device includes a rocker, a rotating ball, a compression spring, chip A and chip B, and the rocker passes through the rotating ball to connect chip A and chip B respectively, and one end of the compression spring is connected to the rotating ball connection, the distance between the chip A and the chip B is 100mm, the chip A and the chip B are sensor mpu6050, and the chip A and the chip B are respectively connected with the microprocessor K60.

进一步的,所述电源稳压模块选用7.2V电压电池。Further, the power supply voltage stabilizing module uses a 7.2V voltage battery.

进一步的,所述GPIO按键模块还包括LCD显示屏。Further, the GPIO button module also includes an LCD display.

本发明还包括一种基于传感器mpu6050采集信号获得摇杆位置的方法,步骤如下:The present invention also includes a method for obtaining the rocker position based on the signal collected by the sensor mpu6050, the steps are as follows:

S1、在摇杆装置上建立右手笛卡尔坐标系为绝对坐标系,用芯片B的几何中心为原点,x、y和z轴表示固定参考坐标系F(x,y,z),用芯片A的几何中心为原点,n、o和a轴表示运动坐标系F(n,o,a)S1. Establish a right-handed Cartesian coordinate system on the rocker device as an absolute coordinate system, use the geometric center of chip B as the origin, x, y and z axes represent a fixed reference coordinate system F (x, y, z) , and use chip A The geometric center of is the origin, and the n, o and a axes represent the motion coordinate system F (n, o, a) ;

S2、手指拨动摇杆,芯片B进行数据采集,获得绕x轴方向上旋转α角度,绕y轴方向上旋转β角度;芯片A进行数据采集,获得绕n轴方向上旋转γ角度,绕o轴方向上旋转δ角度;S2. Finger moves the rocker, chip B performs data collection, obtains the rotation angle α around the x-axis direction, and rotates the angle β around the y-axis direction; chip A performs data collection, obtains the rotation angle γ around the n-axis direction, and rotates the angle γ around the Rotate the δ angle in the direction of the o axis;

S3、微处理器K60通过IIC协议读取数据,并采用扩展卡尔曼滤波将传感器收集的角度数据进行融合并对误差进行补偿,得到手柄摇杆的最优估计值;S3. The microprocessor K60 reads the data through the IIC protocol, and uses the extended Kalman filter to fuse the angle data collected by the sensor and compensate the error to obtain the optimal estimated value of the joystick;

S4、在固定参考坐标系中使用位置向量P建立数学模型为:S4, use the position vector P in the fixed reference coordinate system to establish a mathematical model as:

式中,n、o和a表示方向向量;p表示位置向量;x、y和z为坐标轴;In the formula, n, o and a represent the direction vector; p represents the position vector; x, y and z are coordinate axes;

S5、使用手柄摇杆补偿后得到的最优估计值建立向量pxyz相对坐标方程式为:S5. The relative coordinate equation of the vector p xyz is established by using the optimal estimated value obtained after the joystick compensation:

pxyz=Rot(y,β)Rot(x,α)Rot(n,(γ-α))Rot(o,(δ-β))pnoa p xyz = Rot(y,β)Rot(x,α)Rot(n,(γ-α))Rot(o,(δ-β))p noa

pxyz为手柄摇杆几何中心变换后的坐标点;p xyz is the coordinate point after the transformation of the geometric center of the joystick;

S6、建立向量pxyz的矩阵方程:S6, set up the matrix equation of vector p xyz :

S7、进一步处理向量得:S7, further process the vector to get:

S8、获得在平面xy内的坐标:S8. Obtain the coordinates in the plane xy:

横坐标为:The abscissa is:

px=180(sin(δ-β)cosβ-sin(γ-α)cos(δ-β)sinβsinα+cos(γ-α)sin(δ-β)sinβcosα)p x =180(sin(δ-β)cosβ-sin(γ-α)cos(δ-β)sinβsinα+cos(γ-α)sin(δ-β)sinβcosα)

纵坐标为:The vertical coordinate is:

py=-180(sin(γ-α)cos(δ-β)cosα+cos(γ-α)sin(δ-β)sinα);p y =-180(sin(γ-α)cos(δ-β)cosα+cos(γ-α)sin(δ-β)sinα);

进一步的,S2中,通过扩展卡尔曼滤波建立系统状态方程和观测方程,如下:Further, in S2, the system state equation and observation equation are established through the extended Kalman filter, as follows:

XK+1=f(XK)+wK+1 X K+1 =f(X K )+w K+1

YK=h(XK)+vK Y K =h(X K )+v K

式中,XK+1为系统在k+1时刻的状态变量,YK为系统在k时刻的测量变量,w、v为零均值高斯白噪声。In the formula, X K+1 is the state variable of the system at time k+1, Y K is the measured variable of the system at time k, and w and v are zero-mean Gaussian white noise.

通过非线性函数泰勒级数展开线性化方法,可以近似的表示初始系统的状态方程和观测方程,如下:Through the nonlinear function Taylor series expansion linearization method, the state equation and observation equation of the initial system can be approximated, as follows:

式中,FX(K)和Fw分别是对X、v的偏导数;HX(K)和Hv分别是对X、w的偏导数。In the formula, F X (K) and F w are partial derivatives to X and v respectively; H X (K) and H v are partial derivatives to X and w respectively.

预测前的状态估计[State estimation before prediction [ :

预测前的方差估计:Variance estimates before forecasting:

式中,Q(K)为K时刻的过程激励噪声协方差矩阵。系统通过实时调整修正后,得出状态更新方程。其增益矩阵、状态估计和方差估计分别为:where Q(K) is the process excitation noise covariance matrix at time K. After the system is adjusted and corrected in real time, the state update equation is obtained. Its gain matrix, state estimate and variance estimate are:

本发明的有益效果是:The beneficial effects of the present invention are:

本发明所述的基于传感器mpu6050采集信号的手柄摇杆系统和方法能获得更好的动态性能和静态性能,获得更高的准确度、平稳度和舒适度,从而能获得更好的用户体验。The handle and rocker system and method based on the signal collected by the sensor mpu6050 of the present invention can obtain better dynamic performance and static performance, higher accuracy, stability and comfort, thereby obtaining better user experience.

附图说明Description of drawings

图1为本发明系统结构框图;Fig. 1 is a block diagram of the system structure of the present invention;

图2为本发明摇杆装置结构图;Fig. 2 is a structural diagram of the rocker device of the present invention;

图3为本发明微处理器K60与传感器mpu6050数据传输接口图;Fig. 3 is the data transmission interface figure of microprocessor K60 of the present invention and sensor mpu6050;

图4为本发明微处理器K60与无线射频模块NRF24L01通信接口图;Fig. 4 is the communication interface figure of microprocessor K60 of the present invention and wireless radio frequency module NRF24L01;

图5为本发明电源稳压模块LM2596和测压模块LM301A电路图。Fig. 5 is a circuit diagram of the power supply voltage stabilizing module LM2596 and the voltage measuring module LM301A of the present invention.

具体实施方式Detailed ways

实施例1:Example 1:

一种基于传感器mpu6050采集信号的手柄摇杆系统,包括:信号采集模块、无线收发模块、GPIO按键模块、电源稳压模块和测压模块,所述信号采集模块分别与所述无线收发模块、GPIO按键模块、电源稳压模块和测压模块连接。A handle rocker system based on sensor mpu6050 signal acquisition, comprising: a signal acquisition module, a wireless transceiver module, a GPIO button module, a power supply voltage stabilization module and a pressure measurement module, the signal acquisition module is connected to the wireless transceiver module, GPIO The button module, the power supply voltage stabilization module and the pressure measurement module are connected.

所述信号采集模块包括微处理器K60和摇杆装置,所述K60为微处理器MK60N512VLQ100。The signal acquisition module includes a microprocessor K60 and a rocker device, and the K60 is a microprocessor MK60N512VLQ100.

所述无线收发模块包括与微处理器K60连接的NRF24L01无线射频模块,NRF24L01无线射频模块是一款新型单片机射频收发器件,工作于2.4~2.5GH ISM频段,内置频率合成器,并融合了增强ShockBurst技术。其输出功率和通信频道通过程序进行配置。直接模式可以通过软件在发射端添加密码和传输地址。具有功耗小,传输过程中抗干扰能力强,传输数据准确等特点,满足手柄摇杆数据传输的要求。如图4所示,RF_SCK是传输时钟信号,用来控制数据交换的时机以及速率。RF_MOSI和RF_MOSO相对于主设备是数据的输入和输出,主要根据时钟信号进行数据的传输和交换。The wireless transceiver module includes an NRF24L01 wireless radio frequency module connected to the microprocessor K60. The NRF24L01 wireless radio frequency module is a new type of single-chip radio frequency transceiver device, which works in the 2.4-2.5GH ISM frequency band, has a built-in frequency synthesizer, and incorporates an enhanced ShockBurst technology. Its output power and communication channel are configured through the program. Direct mode can add password and transmission address on the transmitter through software. It has the characteristics of low power consumption, strong anti-interference ability during transmission, and accurate transmission data, which meets the requirements for data transmission of handles and joysticks. As shown in Figure 4, RF_SCK is a transmission clock signal used to control the timing and rate of data exchange. RF_MOSI and RF_MOSO are data input and output relative to the master device, and mainly transmit and exchange data according to the clock signal.

所述GPIO按键模块包括外部按键和LED指示灯,所述GPIO按键模块还包括LCD显示屏。The GPIO button module includes external buttons and LED indicators, and the GPIO button module also includes an LCD display.

所述电源稳压模块包括电池和稳压芯片LM-2596,所述测压模块包括电压比较器LM301A。The power supply voltage stabilizing module includes a battery and a voltage stabilizing chip LM-2596, and the voltage measuring module includes a voltage comparator LM301A.

所述摇杆装置包括摇杆、旋转球、压缩弹簧、芯片A和芯片B,所述摇杆穿过旋转球分别连接芯片A和芯片B,所述压缩弹簧一端与所述旋转球连接,所述芯片A和芯片B的距离为100mm,所述芯片A和芯片B为传感器mpu6050,所述芯片A和芯片B分别与微处理器K60连接。本装置由于利用弹性元件压缩弹簧无接触式摩擦的优势,避免了摇杆运动时的摩擦,提高控制精度和耐用度,实现无限度高精度使用。同时摇杆被操作时的力度和舒服度都有很大的改进。The rocker device includes a rocker, a rotating ball, a compression spring, a chip A and a chip B, and the rocker passes through the rotating ball to connect the chip A and the chip B respectively, and one end of the compression spring is connected to the rotating ball, so The distance between the chip A and the chip B is 100 mm, the chip A and the chip B are sensor mpu6050, and the chip A and the chip B are respectively connected with the microprocessor K60. Due to the advantages of the non-contact friction of the compression spring of the elastic element, the device avoids the friction during the movement of the rocker, improves the control accuracy and durability, and realizes unlimited high-precision use. At the same time, the strength and comfort of the rocker when it is operated have been greatly improved.

摇杆在摆动时产生角位移,旋转球会使变螺距弹簧发生形变,摇杆就会产生与运动方向相反的力矩,也满足摇杆回中位时的准确性要求。传感芯片A、B也会有相应的角位移变化,通过下述方法得出摇杆运动的位置。The rocker produces angular displacement when swinging, and the rotating ball will deform the variable-pitch spring, and the rocker will generate a moment opposite to the direction of motion, which also meets the accuracy requirements when the rocker returns to the neutral position. The sensor chips A and B will also have corresponding angular displacement changes, and the position of the rocker movement can be obtained by the following method.

一种基于传感器mpu6050采集信号获得摇杆位置的方法,步骤如下:A method for obtaining the position of the joystick based on the signal collected by the sensor mpu6050, the steps are as follows:

S1、在摇杆装置上建立右手笛卡尔坐标系为绝对坐标系,用芯片B的几何中心为原点,x、y和z轴表示固定参考坐标系F(x,y,z),用芯片A的几何中心为原点,n、o和a轴表示运动坐标系F(n,o,a)S1. Establish a right-handed Cartesian coordinate system on the rocker device as an absolute coordinate system, use the geometric center of chip B as the origin, x, y and z axes represent a fixed reference coordinate system F (x, y, z) , and use chip A The geometric center of is the origin, and the n, o and a axes represent the motion coordinate system F (n, o, a) ;

S2、手指拨动摇杆,芯片B进行数据采集,获得绕x轴方向上旋转α角度,绕y轴方向上旋转β角度;芯片A进行数据采集,获得绕n轴方向上旋转γ角度,绕o轴方向上旋转δ角度;S2. Finger moves the rocker, chip B performs data collection, obtains the rotation angle α around the x-axis direction, and rotates the angle β around the y-axis direction; chip A performs data collection, obtains the rotation angle γ around the n-axis direction, and rotates the angle γ around the Rotate the δ angle in the direction of the o axis;

S3、微处理器K60通过IIC协议读取数据,并采用扩展卡尔曼滤波将传感器收集的角度数据进行融合并对误差进行补偿,得到手柄摇杆的最优估计值;S3. The microprocessor K60 reads the data through the IIC protocol, and uses the extended Kalman filter to fuse the angle data collected by the sensor and compensate the error to obtain the optimal estimated value of the joystick;

S4、在固定参考坐标系中使用位置向量P建立数学模型为:S4, use the position vector P in the fixed reference coordinate system to establish a mathematical model as:

式中,n、o和a表示方向向量;p表示位置向量;x、y和z为坐标轴;In the formula, n, o and a represent the direction vector; p represents the position vector; x, y and z are coordinate axes;

S5、使用手柄摇杆补偿后得到的最优估计值建立向量pxyz相对坐标方程式为:S5. The relative coordinate equation of the vector p xyz is established by using the optimal estimated value obtained after the joystick compensation:

pxyz=Rot(y,β)Rot(x,α)Rot(n,(γ-α))Rot(o,(δ-β))pnoa p xyz = Rot(y,β)Rot(x,α)Rot(n,(γ-α))Rot(o,(δ-β))p noa

pxyz为手柄摇杆几何中心变换后的坐标点;p xyz is the coordinate point after the transformation of the geometric center of the joystick;

S6、建立向量pxyz的矩阵方程:S6, set up the matrix equation of vector p xyz :

S7、进一步处理向量得:S7, further process the vector to get:

S8、获得在平面xy内的坐标:S8. Obtain the coordinates in the plane xy:

横坐标为:The abscissa is:

px=180(sin(δ-β)cosβ-sin(γ-α)cos(δ-β)sinβsinα+cos(γ-α)sin(δ-β)sinp x =180(sin(δ-β)cosβ-sin(γ-α)cos(δ-β)sinβsinα+cos(γ-α)sin(δ-β)sin

纵坐标为:The vertical coordinate is:

py=-180(sin(γ-α)cos(δ-β)cosα+cos(γ-α)sin(δ-β)sinα);p y =-180(sin(γ-α)cos(δ-β)cosα+cos(γ-α)sin(δ-β)sinα);

S2中,通过扩展卡尔曼滤波建立系统状态方程和观测方程,如下:In S2, the system state equation and observation equation are established by extended Kalman filter, as follows:

XK+1=f(XK)+wK+1 X K+1 =f(X K )+w K+1

YK=h(XK)+vK Y K =h(X K )+v K

式中,XK+1为系统在k+1时刻的状态变量,YK为系统在k时刻的测量变量,w、v为零均值高斯白噪声。In the formula, X K+1 is the state variable of the system at time k+1, Y K is the measured variable of the system at time k, and w and v are zero-mean Gaussian white noise.

通过非线性函数泰勒级数展开线性化方法,可以近似的表示初始系统的状态方程和观测方程,如下:Through the nonlinear function Taylor series expansion linearization method, the state equation and observation equation of the initial system can be approximated, as follows:

式中,FX(K)和Fw分别是对X、v的偏导数;HX(K)和Hv分别是对X、w的偏导数。In the formula, F X (K) and F w are partial derivatives to X and v respectively; H X (K) and H v are partial derivatives to X and w respectively.

预测前的状态估计[State estimation before prediction [ :

预测前的方差估计:Variance estimates before forecasting:

式中,Q(K)为K时刻的过程激励噪声协方差矩阵。系统通过实时调整修正后,得出状态更新方程。其增益矩阵、状态估计和方差估计分别为:where Q(K) is the process excitation noise covariance matrix at time K. After the system is adjusted and corrected in real time, the state update equation is obtained. Its gain matrix, state estimate and variance estimate are:

实施例2:Example 2:

作为对实施例1中一种基于传感器mpu6050采集信号的手柄摇杆系统的补充,整个系统选用7.2V电池电压,通过稳压模块将电池电压7.2V稳压到3.3V。因为整个系统的模块都只用3.3V电压供电,所以稳压模块只用进行一级降压和稳压,所选用的稳压芯片LM-2596是一款输出电流3A降压开关型集成稳压芯片,电流具有很好的线性和负载调节特性。功率小,效率高,整个系统平稳工作电流可达到0.8A,瞬时工作电流在1.2A左右。所以,本申请电源设计符合系统工作的要求。由于mpu6050传感器芯片对工作电压要求极高,所以此设计系统增加一个测压模块,通过电压比较器LM301A来读出电池电量,确保系统始终稳定工作在有效的电压范围之内。As a supplement to the joystick and rocker system based on the sensor mpu6050 collecting signals in the first embodiment, the whole system uses a 7.2V battery voltage, and the battery voltage is regulated to 3.3V by the voltage stabilizing module. Because the modules of the entire system are only powered by 3.3V voltage, the voltage regulator module only needs to perform one-stage step-down and voltage regulation. Chip, current has very good linearity and load regulation characteristics. Small power, high efficiency, the stable working current of the whole system can reach 0.8A, and the instantaneous working current is about 1.2A. Therefore, the power supply design of this application meets the requirements of the system work. Since the mpu6050 sensor chip requires extremely high operating voltage, a voltage measurement module is added to this design system, and the battery power is read out through the voltage comparator LM301A to ensure that the system always works stably within the effective voltage range.

以上所述,仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明披露的技术范围内,根据本发明的技术方案及其发明构思加以等同替换或改变,都应涵盖在本发明的保护范围之内。The above is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone familiar with the technical field within the technical scope disclosed in the present invention, according to the technical solution of the present invention Any equivalent replacement or change of the inventive concepts thereof shall fall within the protection scope of the present invention.

Claims (2)

1. a kind of method for obtaining rocking bar position based on sensor mpu6050 acquisition signal, which is characterized in that steps are as follows:
S1, right-handed Cartesian coordinate system is established on rocker actuator as absolute coordinate system, the geometric center with chip B is origin, X, y and z axes indicate fixed reference frame F(x, y, z), the geometric center with chip A is origin, and n, o and a axis indicate the coordinates of motion It is F(n, o, a)
S2, finger stir rocking bar, and chip B carries out data acquisition, obtain the rotation alpha angle in x-axis direction, revolve on y-axis direction Turn β angle;Chip A carries out data acquisition, obtains and rotates γ angle in n axis direction, and δ angle is rotated in o axis direction;
S3, microprocessor K60 read data by IIC agreement, and use Extended Kalman filter by the angle of sensor collection Data merge and compensate to error, obtain the optimal estimation value of handle rocker;
S4, position vector P founding mathematical models are used in fixed reference frame are as follows:
In formula, n, o and a indicate direction vector;P indicates position vector;X, y and z is reference axis;
S5, the optimal estimation value obtained after being compensated using handle rocker establish vector pxyzRelative coordinate equation are as follows:
pxyz=Rot (y, β) Rot (x, α) Rot (n, (γ-α)) Rot (o, (δ-β)) pnoa
pxyzFor the transformed coordinate points of handle rocker geometric center;
S6, vector p is establishedxyzMatrix equation:
S7, it is further processed to measuring:
S8, the coordinate obtained in plane xy:
Abscissa are as follows:
px=180 (sin (δ-β) cos β-sin (γ-α) cos (δ-β) sin β sin α+cos (γ-α) sin (δ-β) sin β cos α)
Ordinate are as follows:
py=-180 (sin (γ-α) cos (δ-β) cos α+cos (γ-α) sin (δ-β) sin α).
2. the method for obtaining rocking bar position based on sensor mpu6050 acquisition signal as described in claim 1, feature exist In, in S2, system state equation and observational equation are established by Extended Kalman filter, as follows:
XK+1=f (XK)+wK+1
YK=h (XK)+vK
In formula, XK+1State variable for system at the k+1 moment, YKMeasurand for system at the k moment, w, v are that zero-mean is high This white noise.
By nonlinear function Taylor series expansion linearization technique, state equation and the sight of initial system can be approximately indicated Equation is surveyed, as follows:
In formula, FX(K) and FwIt is the partial derivative to X, v respectively;HX(K) and HvIt is the partial derivative to X, w respectively.
State estimation before prediction[:
Variance evaluation before prediction:
In formula, Q (K) is the procedure activation noise covariance matrix at K moment.After system is by adjustment amendment in real time,
Must do well renewal equation.Its gain matrix, state estimation and variance evaluation are respectively as follows:
CN201611262473.4A 2016-12-30 2016-12-30 A joystick system and method for collecting signals based on sensor mpu6050 Active CN106621318B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910848013.7A CN110465075B (en) 2016-12-30 2016-12-30 Handle rocker system for implementing method for acquiring rocker position based on sensor mpu6050 acquisition signal
CN201611262473.4A CN106621318B (en) 2016-12-30 2016-12-30 A joystick system and method for collecting signals based on sensor mpu6050

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611262473.4A CN106621318B (en) 2016-12-30 2016-12-30 A joystick system and method for collecting signals based on sensor mpu6050

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN201910848013.7A Division CN110465075B (en) 2016-12-30 2016-12-30 Handle rocker system for implementing method for acquiring rocker position based on sensor mpu6050 acquisition signal

Publications (2)

Publication Number Publication Date
CN106621318A CN106621318A (en) 2017-05-10
CN106621318B true CN106621318B (en) 2019-11-29

Family

ID=58838846

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201910848013.7A Active CN110465075B (en) 2016-12-30 2016-12-30 Handle rocker system for implementing method for acquiring rocker position based on sensor mpu6050 acquisition signal
CN201611262473.4A Active CN106621318B (en) 2016-12-30 2016-12-30 A joystick system and method for collecting signals based on sensor mpu6050

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN201910848013.7A Active CN110465075B (en) 2016-12-30 2016-12-30 Handle rocker system for implementing method for acquiring rocker position based on sensor mpu6050 acquisition signal

Country Status (1)

Country Link
CN (2) CN110465075B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107137925A (en) * 2017-06-11 2017-09-08 吴昊阳 A kind of game paddle system and its control method
EP3444016A1 (en) * 2017-08-17 2019-02-20 Bigben Interactive SA Method for controlling a display element by a game console
CN108008759B (en) * 2017-11-30 2020-05-22 歌尔科技有限公司 Rocker calibration method, device and system, rocker and computer readable storage medium
CN109395382A (en) * 2018-09-12 2019-03-01 苏州蜗牛数字科技股份有限公司 A kind of linear optimization method for rocking bar
CN111413862A (en) * 2020-03-31 2020-07-14 涵涡智航科技(玉溪)有限公司 Unmanned aerial vehicle rocker redundancy control system and control method thereof
CN118203824B (en) * 2024-05-16 2024-09-03 歌尔股份有限公司 Rocker structure, working method of rocker structure and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2718694Y (en) * 2004-05-27 2005-08-17 伟信电子股份有限公司 Game control device
CN203070206U (en) * 2012-07-31 2013-07-17 北京播思软件技术有限公司 Mouse controlled by human eyes
CN104515519A (en) * 2013-09-28 2015-04-15 南京专创知识产权服务有限公司 Space track positioning system based on accelerated speed, gyroscope and magnetic field nine-axis sensors
CN204502376U (en) * 2014-12-09 2015-07-29 邹其志 The special game paddle of a kind of novel android

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070188455A1 (en) * 2006-02-15 2007-08-16 Logitech Europe S.A. Single element digital and analog input for a control device
CN100591880C (en) * 2006-12-31 2010-02-24 三一重工股份有限公司 An intelligent boom control device
CN101110001A (en) * 2007-08-24 2008-01-23 华南理工大学 A wireless mouse control device and method based on spatial motion detection
US20130082840A1 (en) * 2011-10-03 2013-04-04 Research In Motion Limited Method and Apparatus Pertaining to Automatically Moving a Component that Comprises a Part of a Portable Electronic Device
CN103721422B (en) * 2013-12-19 2016-03-09 桂林飞宇电子科技有限公司 A kind of model airplane remote control handle that can realize attitude and automatically control
CN106125754B (en) * 2016-08-30 2019-01-04 青岛大学 A kind of multi-rotor unmanned aerial vehicle remote controler

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2718694Y (en) * 2004-05-27 2005-08-17 伟信电子股份有限公司 Game control device
CN203070206U (en) * 2012-07-31 2013-07-17 北京播思软件技术有限公司 Mouse controlled by human eyes
CN104515519A (en) * 2013-09-28 2015-04-15 南京专创知识产权服务有限公司 Space track positioning system based on accelerated speed, gyroscope and magnetic field nine-axis sensors
CN204502376U (en) * 2014-12-09 2015-07-29 邹其志 The special game paddle of a kind of novel android

Also Published As

Publication number Publication date
CN110465075B (en) 2023-04-28
CN106621318A (en) 2017-05-10
CN110465075A (en) 2019-11-19

Similar Documents

Publication Publication Date Title
CN106621318B (en) A joystick system and method for collecting signals based on sensor mpu6050
CN106941395B (en) A kind of vehicle carried pick device and localization method
CN106468951A (en) A kind of intelligent remote control systems based on the fusion of both hands ring sensor and its method
CN104267815A (en) Motion capturing system and method based on inertia sensor technology
CN104199460A (en) Intelligent four-rotor aircraft reconnoitering system based on image recognition and tracking
CN104215278B (en) Measuring device and measuring method for a variety of motion parameters of product under logistics environment
WO2021016985A1 (en) Gimbal control method, controller, gimbal, unmanned mobile platform, and storage medium
CN105865453A (en) Navigation system of position sensor and attitude sensor and fusion method of system
CN109916453A (en) A moving object environment monitoring device and method based on narrowband Internet of Things
CN106968979A (en) A kind of fan control system
CN101110001A (en) A wireless mouse control device and method based on spatial motion detection
CN101387926A (en) Remote control or pointer control device with multi-axis control and method
CN206715283U (en) A kind of handle rocker system based on sensor mpu6050 collection signals
CN206209622U (en) A kind of wireless midair mouse based on STM32 microcontrollers
CN103777634A (en) Large-size spherical robot control system
Lin et al. Development of an ultra-miniaturized inertial measurement unit WB-3 for human body motion tracking
CN204725501U (en) Body sense mechanical arm comfort level checkout gear
CN105425660B (en) The analysis that human body behavior judgement is carried out by inertial sensor matches method of work
CN206840095U (en) A kind of audio-visual real-time Transmission search and rescue robot system based on LoRa and MSP430
CN118700125A (en) Digital twin robot arm control method based on motion sensor
CN102927976B (en) integrated spatial information measuring method and device
CN207359075U (en) Underwater robot non line of sight control system
WO2019174123A1 (en) Intelligent humidity sensor
CN205228472U (en) Indoor positionable tracks mark tracker
CN108415448A (en) A kind of winged control method and system of aerial crusing robot

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant