简体   繁体   English

自平衡两轮车辆的水平加速度测量?

[英]horizontal acceleration measurement in self-balancing 2-wheel vehicles?

it's now the standard practices to fuse the measurements from accelerometers and gyro through Kalman filter, for applications like self-balancing 2-wheel carts: for example: http://www.mouser.com/applications/sensor_solutions_mems/ 现在,对于自平衡两轮手推车等应用,将加速度计和陀螺仪的测量结果通过卡尔曼滤波器融合起来已成为标准做法:例如: http : //www.mouser.com/applications/sensor_solutions_mems/

accelerometer gives a reading of the tilt angle through arctan(a_x/a_y). 加速度计通过arctan(a_x / a_y)给出倾斜角的读数。 it's very confusing to use the term "acceleration" here, since what it really means is the projection of gravity along the devices axis (though I understand that , physically, gravity is really just acceleration ). 这里使用“加速度”一词非常令人困惑,因为它的真正含义是重力沿设备轴的投影(尽管据我所知,实际上,重力实际上只是加速度)。

here is the big problem: when the cart is trying to move, the motor drives the cart and creates a non-trivial acceleration in horizontal direction, this would make the a_x no longer a just projection of gravity along the device x-axis. 这是个大问题:当手推车试图移动时,电动机会驱动手推车并在水平方向上产生不小的加速度,这将使a_x不再是沿设备x轴的重力投影。 in fact it would make the measured tilt angle appear larger. 实际上,这会使测得的倾斜角显得更大。 how is this handled? 如何处理? I guess given the maturity of Segway, there must be some existing ways to handle it. 我想,鉴于赛格威(Segway)的成熟程度,必须有一些现有的处理方法。 anybody has some pointers? 有人有指针吗?

thanks Yang 谢谢杨

You are absolutely right. 你是绝对正确的。 You can estimate pitch and roll angles using projection of gravity vector. 您可以使用重力向量的投影来估计俯仰和横滚角。 You can obtain gravity vector by utilizing motionless accelerometer, but if accelerometer moves, then it measures gravity + linear component of acceleration and the main problem here is to sequester gravity component from linear accelerations. 您可以通过使用静止不动的加速度计来获取重力矢量,但是如果加速度计运动,那么它将测量重力+加速度的线性分量,这里的主要问题是将线性加速度与线性加速度隔离。 The best way to do it is to pass the accelerometer signal through Low-Pass filter. 最好的方法是使加速度计信号通过低通滤波器。 Please refer to Low-Pass Filter: The Basics or Android Accelerometer: Low-Pass Filter Estimated Linear Acceleration to learn more about Low-Pass filter. 请参阅低通滤波器:基础知识Android加速度计:低通滤波器估计线性加速度,以了解有关低通滤波器的更多信息。

Sensor fusion algorithm should be interesting for you as well. 传感器融合算法对您也应该很有趣。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM