Show Posts
Pages: [1] 2 3 ... 20
1  Using Arduino / Sensors / Re: Guide to gyro and accelerometer with Arduino including Kalman filtering on: July 17, 2014, 01:03:23 am
@Barsil
Please have a look at the following example: https://github.com/TKJElectronics/Example-Sketch-for-IMU-including-Kalman-filter/tree/master/IMU/ITG3205_ADXL345.

Regards
Lauszus
2  Using Arduino / Sensors / Re: Guide to gyro and accelerometer with Arduino including Kalman filtering on: July 01, 2014, 05:35:56 pm
@Geoffroy
It seems weird that you can't access both sensors on the same bus, but yes your code looks good to me if you want to use it in bypass mode.

You should be able to simply connect both sensors to SCL and SDA at the same time. Maybe try adding a pullup resistor to 3.3V and see if that solves the problem.
3  Using Arduino / Sensors / Re: Guide to gyro and accelerometer with Arduino including Kalman filtering on: June 20, 2014, 06:39:32 pm
@Geoffroy
Are you by any chance using a Due? There was a bug in the Wire library for the Due: https://github.com/arduino/Arduino/issues/1976 which will be available when a new release of the Arduino IDE is available - or simply compile the IDE yourself.
For now simply ignore the returned value.

@enkaytynguyen91
It depends on what sensitivity you use. Please see these datasheets for more information: http://www.invensense.com/mems/gyro/documents/PS-MPU-6000A-00v3.4.pdf and http://www.invensense.com/mems/gyro/documents/RM-MPU-6000A-00v4.2.pdf.

4  Using Arduino / Sensors / Re: Guide to gyro and accelerometer with Arduino including Kalman filtering on: May 15, 2014, 09:02:39 am
@timtianyang
No I haven't got time to do that at the moment, as I got my finals coming up.
5  Using Arduino / Sensors / Re: Guide to gyro and accelerometer with Arduino including Kalman filtering on: April 26, 2014, 05:42:50 pm
@enkaytynguyen91
Yes you can do that just fine smiley-wink
6  Using Arduino / Sensors / Re: Guide to gyro and accelerometer with Arduino including Kalman filtering on: April 17, 2014, 09:28:58 am
@AlexTeos
Please take a look at the following code: https://github.com/TKJElectronics/Example-Sketch-for-IMU-including-Kalman-filter/tree/master/IMU/MPU6050_HMC5883L.

You will need to buy a HMC5883L 3-axis magnetometer as well and use it together with the MPU-6050. Note that "GY-521" is just the name of the breakout board and not the sensor. The sensor on the "GY-521" is the MPU-6050.
7  Using Arduino / Sensors / Re: Guide to gyro and accelerometer with Arduino including Kalman filtering on: April 11, 2014, 02:13:20 pm
@juanvivo
It will only help to increase the resolution if you expect to do maneuvers that exceed +-2g.
What you could do instead is try to use the built in filter inside the MPU-6050. I am using that myself for the Balanduino: https://github.com/TKJElectronics/Balanduino/blob/aec22dafe8e98f0a16df6b5031a92354bb27ec5b/Firmware/Balanduino/Balanduino.ino#L225-L226 and the MPU-6050 datasheet: http://invensense.com/mems/gyro/documents/RM-MPU-6000A-00v4.2.pdf at page 13.

@Lany
Yes I know that you could do that as well, but it would be easier to for example just use a low pass filter on the raw acceleromter values.

@mariocaptain
Please read: http://www.freescale.com/files/sensors/doc/app_note/AN3461.pdf.

@grasshopper
These are zero-values for the accelerometer - just send set them to 0. I have added a note about it: https://github.com/TKJElectronics/Example-Sketch-for-IMU-including-Kalman-filter/commit/21c9f6fcdf781861cb461c3078f9bef25cf3d5ca.
I'm planning to make a short calibration routine as I have done for the Balanduino: https://github.com/TKJElectronics/Balanduino/blob/aec22dafe8e98f0a16df6b5031a92354bb27ec5b/Firmware/Balanduino/Tools.ino#L109-L144, but for now you have to enter them manually.
8  Using Arduino / Sensors / Re: Guide to gyro and accelerometer with Arduino including Kalman filtering on: March 14, 2014, 06:18:36 pm
@juanvivo
I have answered your question at my blog: http://blog.tkjelectronics.dk/2012/09/a-practical-approach-to-kalman-filter-and-how-to-implement-it/comment-page-4/#comment-486873.

@andremorais
I believe you can't use the angles directly, as the one of the angles is being restricted to +-90 degrees, you should instead modify your Processing code, so it shows the block correctly.
9  Using Arduino / Sensors / Re: Guide to gyro and accelerometer with Arduino including Kalman filtering on: March 02, 2014, 08:37:43 am
@mbedfordm
I just updated the MPU-6050 code. The changes newest code can be found in the Github repository: https://github.com/TKJElectronics/Example-Sketch-for-IMU-including-Kalman-filter/tree/master/IMU/MPU6050.
10  Using Arduino / Sensors / Re: Guide to gyro and accelerometer with Arduino including Kalman filtering on: March 02, 2014, 06:19:24 am
@mbedfordm
You can get the unbiased rate using the following function: https://github.com/TKJElectronics/KalmanFilter/blob/master/Kalman.h#L81.

I know what you are talking about and will upload a fix very soon. Please read this for now: http://www.freescale.com/files/sensors/doc/app_note/AN3461.pdf.
11  Using Arduino / Sensors / Re: Guide to gyro and accelerometer with Arduino including Kalman filtering on: February 19, 2014, 10:44:49 am
@kirky
I am aware of the problem and have actually solved it in my local repo, but I need to clean it a bit before I push it. You should take a look at this app-note: http://www.freescale.com/files/sensors/doc/app_note/AN3461.pdf for now smiley-wink

@PeterCheng
You should not open the Graph code in the Arduino IDE, but in Processing: http://processing.org/.

You can find more information in the readme: https://github.com/TKJElectronics/Example-Sketch-for-IMU-including-Kalman-filter/tree/master/IMU6DOF/MPU6050/Graph#developed-by-kristian-lauszus-tkj-electronics-2012.
12  Using Arduino / Sensors / Re: Guide to gyro and accelerometer with Arduino including Kalman filtering on: February 11, 2014, 11:28:06 am
@kirky
This is how I deal with it in the firmware for my balancing robot: https://github.com/TKJElectronics/Balanduino/blob/cc8beb5f3a78cfd615a00c490b6656bdcc1a9d8b/Firmware/Balanduino/Balanduino.ino#L290-L304.
13  Using Arduino / Sensors / Re: Guide to gyro and accelerometer with Arduino including Kalman filtering on: February 09, 2014, 03:15:45 pm
@ninor
You will need some other sensor like a GPS sensor to get the position. See my previous reply to Ked85: http://forum.arduino.cc/index.php?topic=58048.msg1551502#msg1551502.
14  Using Arduino / Sensors / Re: Guide to gyro and accelerometer with Arduino including Kalman filtering on: February 08, 2014, 07:11:53 am
@ninor
What do you mean by displacement?
15  Using Arduino / Sensors / Re: Guide to gyro and accelerometer with Arduino including Kalman filtering on: February 07, 2014, 08:50:01 am
@Pendax
Try to use the Kalman filter I have provided and see if that helps. You could also try to implement a low-pass filter of the accelerometer reading, to get rid of some of the noise.

@ninor
This graph code: https://github.com/TKJElectronics/Example-Sketch-for-IMU-including-Kalman-filter/tree/master/Graph is for these codes: https://github.com/TKJElectronics/Example-Sketch-for-IMU-including-Kalman-filter/tree/master/IMU6DOF/ITG3205_ADXL345 and https://github.com/TKJElectronics/Example-Sketch-for-IMU-including-Kalman-filter/tree/master/IMU6DOF/LPR530AL_LY530ALH_ADXL335.

While this one: https://github.com/TKJElectronics/Example-Sketch-for-IMU-including-Kalman-filter/tree/master/IMU6DOF/MPU6050/Graph is for the MPU-6050.

@ceciliazy13
You can find the code for my balancing robot here: https://github.com/TKJElectronics/Balanduino.

@siddhu99199
You need to download the I2C.ino and Kalman.h files in this directory: https://github.com/TKJElectronics/Example-Sketch-for-IMU-including-Kalman-filter/tree/master/IMU6DOF/MPU6050 as well. Then simply click on the file name MPU6050.ino.
Pages: [1] 2 3 ... 20