[MinnowBoard] I2C with MPU6050
Nanik T
nanikjava at gmail.com
Thu Oct 16 01:52:43 UTC 2014
Just a quick update after got help from IRC folks.
* Seems like Ubuntu 14.04 does not export the GPIO hence there is no
/sys/class/gpio
* After using Ubuntu 14.10 beta 2 I can see the /sys/class/gpio
* Was told to try "echo 220 > /sys/class/gpio/export" which throws an error
"-bash: echo: writer error: Invalid argument"
So seems like it's missing some driver or config perhaps ?
Thanks for the help
On Thu, Oct 16, 2014 at 10:04 AM, Nanik T <nanikjava at gmail.com> wrote:
> Thanks John for the reply.
>
> Here is the screenshot of the BIOS ( http://postimg.org/image/p2quw3weh/
> ) for the LPSS 2 Configuration. I checked it and can see that the LPSS I2C
> are enabled. I'm using Ubuntu 14.04 (ubuntu-14.04.1-desktop-amd64.iso)
> 64bit version
>
> Let me know what to check next ?
>
> Appreciate your help.
>
> Cheers
>
>
> On Thu, Oct 16, 2014 at 12:51 AM, John Hawley <john.hawley at intel.com>
> wrote:
>
>> On 10/15/2014 4:32 AM, Nanik T wrote:
>> > Hi,
>> >
>> > I've got a MPU6050 (like this one
>> >
>> http://www.ebay.com/itm/MPU-6050-Module-3-Axis-Gyroscope-Acce-lerometer-for-Arduino-Power-supply-3v-5v-/351196348540
>> )
>> > and I'm able to read it using Raspberry Pi using this instruction
>> >
>> http://blog.bitify.co.uk/2013/11/interfacing-raspberry-pi-and-mpu-6050.html
>> >
>> > I'm trying to do the same by interfacing it with Minnowboard Max by
>> > connecting it using the JP1 header pins as follows:
>> >
>> > MPU6050 (VCC) --> Pin 4
>> > MPU6050 (GND) --> Pin 1
>> > MPU6050 (SDA) --> Pin 15
>> > MPU6050 (SCL) --> Pin 13
>> >
>> > I'm using the schematics
>> > (http://www.elinux.org/images/f/fd/MinnowMax_RevA1_sch.pdf) on page 20.
>> >
>> > I'm using i2cdetect to detect the MPU6050 but it does not show anywhere
>> > I tried 'i2cdetec -y 1/2/4/5/6' with no luck.
>> >
>> > I've loaded the 'i2c-dev' driver too before running i2cdetect.
>> >
>> > Any idea what seem to be the problem ?
>>
>> Should be on i2c bus #7 if you are using Linux (the low speed header
>> enumerates under Linux to #7, high speed header #8). You should double
>> check and make sure that firmware has i2c enabled
>>
>> http://www.elinux.org/Minnowboard:MaxBios#LPSS_.26_SCC_Configuration
>>
>> specifically:
>>
>> LPSS 2 Configuration
>> LPSS DMA #2 Support
>> Enable / Disable
>> LPSS I2C #5 Support
>> Enable / Disable
>> Note: This is what's used on the Low-speed pins #13, #15
>> LPSS I2C #6 Support
>> Enable / Disable
>> Note: This is what's used for the High Speed I2C pins
>>
>> If you aren't seeing 7 you might be missing the driver for lpss, so you
>> might want to check your kernel / kernel config (could be helpful to let
>> us know so we can help you double check)
>>
>> - John
>> _______________________________________________
>> elinux-MinnowBoard mailing list
>> elinux-MinnowBoard at lists.elinux.org
>> http://lists.elinux.org/mailman/listinfo/elinux-minnowboard
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.elinux.org/pipermail/elinux-minnowboard/attachments/20141016/7725168f/attachment-0001.html>
More information about the elinux-MinnowBoard
mailing list