open-dobot icon indicating copy to clipboard operation
open-dobot copied to clipboard

Firmware change to support MP65 accelerometer

Open rgrbic opened this issue 9 years ago • 6 comments

The dobot arm from v1.2 comes with MP65 accelerometers. The current firmware version (0.5.0) does not properly read these accelerometers.

rgrbic avatar May 25 '16 09:05 rgrbic

Current open-dobot version is 1.1.0 https://github.com/maxosprojects/open-dobot/releases/tag/1.1.0

open-dobot simply doesn't read MP65 at all as it is unknown and didn't come with dobot v1.0

maxosprojects avatar May 25 '16 22:05 maxosprojects

There are three options here:

  1. Someone who has a logic analyzer (BeagleBone can be used as one) or an oscilloscope implements that.
  2. Get 2 of these http://www.amazon.com/SMAKN%C2%AE-Arduino-MPU-6050-gyroscope-accelerometer/dp/B00NH8Z6BU/ or similar, solder 5 wires (or 4 wires and 2 resistors) and mount those accelerometers on top of existing ones (hot glue would do).
  3. Switch to RAMPS v1.4 and do the same as in option 2.

Looking at the amount of contributions to this project option 1 is not likely to happen any time soon. Support for MPU-6050 in FPGA version for option 2 can be added within two weeks once someone expresses interest in that option. Support for MPU-6050 in RAMPS version for option 3 is coming with open-dobot v1.2 (in the next couple of days).

MP65 is most probably a clone of MPU-6050 with "who knows what implementation" and absolutely no documentation (thanks dobot team for using unknown crap). To start with, it looks like it sits on SPI bus, while MPU6050 sits on I2C - in documentation for MPU-60x0 only MPU6000 can work on SPI. Given I don't have MP65-based accelerometer, guessing the protocol is not likely to get us anywhere.

So I highly recommend switching to MPU6050 regardless of the board version (ramps or fpga) - it is a well-known and widely used (e.g. in drones) MPU.

maxosprojects avatar May 26 '16 01:05 maxosprojects

I agree.

rgrbic avatar May 26 '16 12:05 rgrbic

I'm going to look at that https://www.amazon.com/UCTRONICS-MPU-6500-6-Axis-Gyroscope-Accelerometer/dp/B01DIPU152/ . If it appears to be the same chip (MPU-6500) installed on version 1.2 then I will add it to the firmware.

maxosprojects avatar Jan 07 '17 21:01 maxosprojects

Hi here is picture of mine accelerometer if it helps wp_20170112_15_28_28_pro

rgrbic avatar Jan 14 '17 16:01 rgrbic

The label on the chip in the middle is not clear on your picture, but it's ok, other users have uploaded pictures before and it was clear that it is MP65.

maxosprojects avatar Jan 15 '17 02:01 maxosprojects