New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DMP values go erratic due to interference. How to Reset Coms? #444
Comments
Did you found a solution to this problem? |
The only solution I’ve found is to keep the wires less than an inch long. |
I'm having similar problems, and even zero-length I2C lines is not a guarantee. See my posts at fpaynter.com (this post, for instance, among many others). You mentioned you were using the Teensy 3.6; can you tell me what MPU6050 libraries you are using for this? I can't seem to get the MPU6050 libraries here to compile for the Teensy 3.x line Frank |
Read your post, would suggest others read it too, it is a very detailed account that matches the issue i was having exactly. As for issue of compiling for teensy 3.6, i don't recall having that issue but working code (MPU 6050) for my robot that compiles (with a modified PID library) is uploaded on my page |
Yeah, I've been fighting this problem a lot. If you do a search on my site
for 'Motor Noise', you'll find several relevant posts ;-)
Hmm, I looked around a bit on your GearDownForWhat site for your
Teensy/MPU6050 code, but couldn't find it. Did you maybe mean your GitHub
account instead?
TIA,
Frank
…On Thu, Dec 12, 2019 at 11:08 AM GearDownForWhat ***@***.***> wrote:
Read your post, would suggest others read it too, it is a very detailed
account that matches the issue i was having exactly. As for issue of
compiling for teensy 3.6, i don't recall having that issue but working code
(MPU 6050) for my robot that compiles (with a modified PID library) is
uploaded on my page
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#444?email_source=notifications&email_token=AA6T3236HYD2HRZXH5IZCFLQYJOWPA5CNFSM4HP7HDF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGXFDDI#issuecomment-565072269>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA6T322LPH6CPFWFDR2PEATQYJOWPANCNFSM4HP7HDFQ>
.
--
G.Frank Paynter, PhD
OSU ESL Research Scientist (ret)
EM Workbench LLC
614 638-6749 (cell)
|
Frank, While I haven't run my balancing bot for hours on end. I have not experienced locking issues. I custom made my Arduino board and drive the motors off of the same 12V pack that powers the motors. Some thoughts. To combat magnetic interference, what if we added (2) 4.7k ohm resistors (one for data and the other for the Clock) to the Arduino Uno 3.3V supply as a supplemental source. Second thought what if the locking issue is caused by RF interference. Placing the MPU6050 inside a, let's say a simple aluminum foil enclosure to isolate it could resolve the issue. Another possibility is power supply noise so adding additional capacitors before and or after the voltage regulators could solve the interference issues Homer p.s. GearDownForWhat - I love what you did with your balancing bot Nice Job! |
Hey all,
I have had this issue occur with 3 different Arduino boards, and 3 different MPU-6050's, the common denominator is mostly the motor driver, but the issue can sometimes occur with the motor driver not even in play.
So, Issue is partially related to the large motor driver mounted to the same chassis, and the interference is mostly related to the proximity of the motor driver to the MPU6050&Teensy
The solution that I am searching for is the ability to recover communications with the MPU-6050 without rebooting everything.
MPU-6050, Teesny 3.6, Odrive 3.6.
Everything is wired as expected, and works most of the time, but every now and then the MPU6050 starts spitting out values that are all over the map, almost as if they were all shifted by one bit. This only happens when the Teensy and 6050 are in the vicinity of the motor controller, and is more and more likely the longer the wires between the Teensy and MPU are. I have a routine to detect this problem and shut everything down, but I would like to have a way to reset the DMP sketch without having to manually hit the reset button. (maybe a output to pull the reset pin low 🤣... J/K)
I'm in the process of designing a custom circuit board to make the wires as short as possible, so in a couple of weeks It likely won't be happening nearly as often, but if it would help to diagnose this issue I would be happy to send lend out some hardware where the issue is repeatable, the R/C Car from this video:
https://youtu.be/k_vYA-xRXyo
The text was updated successfully, but these errors were encountered: