
luisrodenas
Moderators-
Posts
82 -
Joined
-
Last visited
-
Days Won
22
luisrodenas last won the day on August 13 2019
luisrodenas had the most liked content!
About luisrodenas

Profile Information
-
Gender
Not Telling
Recent Profile Visitors
luisrodenas's Achievements
-
i3130002 reacted to a post in a topic: MPU-6050 Temperature Compensation
-
lolizz00 reacted to a post in a topic: Arduino Sketch to automatically calculate MPU6050 offsets
-
sarahSherif reacted to a post in a topic: Arduino Sketch to automatically calculate MPU6050 offsets
-
swordfish reacted to a post in a topic: Arduino Sketch to automatically calculate MPU6050 offsets
-
Zeta.Investigator reacted to a post in a topic: DMP polling (no interrupt/FIFO)
-
Andrew112 reacted to a post in a topic: Arduino Sketch to automatically calculate MPU6050 offsets
-
nidhin jacob reacted to a post in a topic: Why should I wait for MPU interrupt (sometimes very long!!!)
-
JesseTsai reacted to a post in a topic: Arduino Sketch to automatically calculate MPU6050 offsets
-
hobby16 reacted to a post in a topic: Arduino Sketch to automatically calculate MPU6050 offsets
-
PENG reacted to a post in a topic: MPU 6050 Sampling Rate
-
calculating frequency
luisrodenas replied to cbanta1's topic in MPU-6050 6-axis accelerometer/gyroscope (InvenSense)
Hello cbanta. First of all, these forums are almost abandoned, so I would suggest you look for help somewhere else, like the Invensense forums. Now some suggestions: in order to detect sound frecuencies I would use Fourier Transform in order to get the frequencies of the signal. If you knew what frequencies you are looking for or at least a range you want to detect, you could use instead some band-pass filters. First you have to capture the signal, I would do this using a microphone. Audio frecuencies go from 20 to 20000Hz (https://en.wikipedia.org/wiki/Audio_frequency) , in order to detect a frecuency there is a law somewhere that you have to measure at double the frequency you want to capture. If you are using an accelerometer, it is hard to reach high measure frequencies. Usually it is about 1kHz, but let's suppose you can get to measure at 10kHz, still you would only be able to capture audio up to 5kHz, missing all audio from 5 to 20 kHz. So that is why I would try with something different that an accelerometer. Good luck with your project and do a larger search online on that topic, I am sure there are lots of info out there. -
Hello MattE, Just wanted to make sure you know there is a developers corner at the Invensense's website. http://www.invensense.com/developers/login/ At first there was very little information available about their products, but nowadays they have lots of information, code, examples for different platforms, etc. I guess that's the reason this forum is now kind of outdated, even though things here are still usable, reliable, easy to use and implement, etc... But the most updated features are at Invensense's developers corner.
-
Hello wambo, please attach the modified version of the sketch that is not working for you and I will take a look.
- 61 replies
-
- calibration
- offset
-
(and 1 more)
Tagged with:
-
Hello Simon, I am sure you cannot disable gyro drift compensation, with new libraries MAYBE there is some option to adjust how much it compensates, but that is just a guess. Your easiest option is to implement your own filter for yaw, google "complementary filter" (easy) or "kalman filter" (advanced). Good luck.
-
Hello gilperon, There is no way of getting DMP angles without fifo buffer, but if I am not mistaken there was a way of just leaving angles and removing giro and accel data from buffer... Anyway, I think the easiest way is to make your arduino read that buffer and use or discard data, but read it. It takes very little time if you are using fast I2C. By the way, you should use gyro data as well to control your quadcopter. Sorry I can't be of more help. Good luck
-
Hi, I think you cannot call the function readBytes() from an ISR, at least you shouldnt. The reason for this is because that function includes I2C communications, that take some time and also may conflict with ISR manager for reasons I don't really know. Just use the timer interrupt to change the value of a flag, and then check that flag from main code and execute the readbytes().
-
Gyro Data
luisrodenas replied to dsfgsho's topic in MPU-6050 6-axis accelerometer/gyroscope (InvenSense)
Gyro returns ANGULAR VELOCITY, not angle. You could integrate this measure to get angle, but better apply some sensor fusion algorithm. By the way, I think pin INT should not be connected to 3.3V. -
MPU6050 connection failed
luisrodenas replied to Riccati's topic in MPU-6050 6-axis accelerometer/gyroscope (InvenSense)
Check these pictures: http://www.google.com/imgres?imgurl=http%3A%2F%2Fmk90.ru%2Ffiles%2Fimg%2Fpromini_pins.png&imgrefurl=http%3A%2F%2Fmk90.ru%2Fstore%2Fru%2Fmicrocontrollers%2F320-freeduino-pro-mini.html&h=346&w=530&tbnid=KWPd379HUDUazM%3A&zoom=1&docid=0E1PS3sfMZXUjM&ei=gJSiU-LPOI6u7AamyYGYDA&tbm=isch&ved=0CCsQMygPMA8&iact=rc&uact=3&dur=4756&page=1&start=0&ndsp=18 http://www.google.com/imgres?imgurl=http%3A%2F%2Faeroquad.com%2Fattachment.php%253Fattachmentid%253D4210%2526d%253D1315917105%2526stc%253D1&imgrefurl=http%3A%2F%2Faeroquad.com%2Fshowwiki.php%3Ftitle%3DHardware%2BAssembly%2BMini%2BShield%2Bv1%2B0&h=493&w=640&tbnid=qT03lmkFYKOWDM%3A&zoom=1&docid=T02Xc-RT9lrLNM&ei=gJSiU-LPOI6u7AamyYGYDA&tbm=isch&ved=0CC4QMygSMBI&iact=rc&uact=3&dur=2774&page=2&start=18&ndsp=23 -
MPU6050 connection failed
luisrodenas replied to Riccati's topic in MPU-6050 6-axis accelerometer/gyroscope (InvenSense)
¿? The pins just above A2 and A3 are A4 and A5. -
MPU6050 connection failed
luisrodenas replied to Riccati's topic in MPU-6050 6-axis accelerometer/gyroscope (InvenSense)
It looks like you are using an Arduino Pro Mini. At the official Arduino website (http://arduino.cc/en/Main/ArduinoBoardProMini) you can see that the I2C pins are A4 and A5, not 4 and 5 that you are using. Maybe that's the problem. -
Newbie - MPU-6050 Project
luisrodenas replied to shinds's topic in MPU-6050 6-axis accelerometer/gyroscope (InvenSense)
Yes. As far as you read the DMP's fifo fast enough so it does not overflow. Also, you can change fifo's frequency to fit your needs. -
Compiling problems
luisrodenas replied to xaliax's topic in MPU-6050 6-axis accelerometer/gyroscope (InvenSense)
Hi, Trivial question, but just to confirm things: Are you using MSP430? We need more info so somebody can help you. MPU's board? MCU board? Wiring? Example you are trying to run? -
Hello deck, That behaviour you describe can be found with the YAW measure, but shouldn't happen with PITCH and ROLL. Rigth now I cannot confirm you if this is happening in my MPU because I never use it for such long times. So, have you calibrated DMP with your offsets? What measure are you using (yaw, pitch or roll)? Your project sounds really interesting, is it online somewhere?
-
I use MPU6050's 6 axis DMP to control quadrotors. It works fine as long as the sensor is well placed in the quad. The noise depends on the FIFO's frequency (200Hz has more noise than 100Hz), but it is almost neglectable in both cases (around 0.2º, search my other posts to find more info). I have also tried raw values + Kalman, and it works also fine, but I believe DMP is enough and easier. I have tested its measures versus a Microstrain 3DM-GX2 (2000 euros a few years ago), and it is almost identical. Good luck with your proyects!
- 45 replies
-
- invensense
- documentation
-
(and 2 more)
Tagged with: