I am working on a project which are based on two imu sensor to measure angle of a moving part. One imu fixed on machine body and second imu fixed on part which makes rotational movement to open and close unloading gate. also machine moves with wheel. We measure the fixed imu angular change and also second imu has same angular change. When we want to open the unloading gate with a desired angle, we make movement according to difference of angular change. Our problem is gate has vibration while machine working. the output of fixed one was stationary but gate output starts to change from 0 to 4-5 degree in a few seconds.
How can we make measurements? any suggestion or idea will be helpful.
thanks
can you give details of the imu sensors? e.g. power requirements, interface, etc
any idea how you wish to report results? e.g. over serial to a laptop, WiFi to a PC, Bluetooth to a smartphone?
We are using a ready to use sensor from china which is HWT605. It has 3 axis acc and 3 axis gyro and give output of acc,gyro and angles for 3 axis( roll pitch yaw). We are using arduino uno to control gate opening. We get values of yaw angle from sensor and compare it according to difference, try to control gate opening.
Thanks
if you have a program reading yaw angles can you post it (using code tags </>)?
also a printout of any output you get on the serial monitor
post a schematic of the circuit?
the HWT605 output aoppears to be TTL serial, e.g. i. Data output : Time, Acceleration, Angular velocity, Angle,Magnetic field, Quaternion j. Serial port (TTL protocol, Baud rate support 2400,4800,9600,19200,38400,57600,115200,230400,460800,921600)
using an UNO to read serial data using SoftwareSerial from two devices concurrently will probably not work - I would recommend switching to a Arduino with multiple hardware serial ports such as a Mega
HWT605 is a 6 axis sensor, It doen't have any magnetometer on it. It only has gyro and acc. We used the mega on test as you said it has 3 serial port one is connected to pc and other two is for connecting the sensors.
Also with out moving machine, it has some motors on it which creates vibration on gate opening
after zero sensor, if we start the motors output gets some values
Yes, It gives the output as I required but with noise or drift. I check the internet and made some research, it says that I need to make kalman filtering.