Go to advanced search

by christian-nils
Thu Aug 04, 2016 7:25 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Problem in loading I2C Driver for multiple MCP23017 chips
Replies: 4
Views: 1297

Re: Problem in loading I2C Driver for multiple MCP23017 chip

Hello, If you have UU shown on i2cdetect, it means that the probing was skipped because the address is in use by a driver ( http://linux.die.net/man/8/i2cdetect). So this is normal. That you have only one device "detected" is also normal, in the binding that you do, you have only one address registe...
by christian-nils
Thu Jul 28, 2016 12:27 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C not reliable
Replies: 5
Views: 1687

Re: I2C not reliable

Super! Good job! :D
by christian-nils
Thu Jul 28, 2016 5:58 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C not reliable
Replies: 5
Views: 1687

Re: I2C not reliable

EDIT: Maybe I can use this thread for another question. How do I read a 32bit Value using WiringPi? My Arduino is sending it in 4 bytes. I tried to read it like this: int32_t altitudeLow = wiringPiI2CReadReg16(handler, 0x6); //get the year int8_t altitude1Low = wiringPiI2CRead(handler); int8_t alti...
by christian-nils
Thu Jul 28, 2016 5:49 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Can't get I2C to work correctly
Replies: 5
Views: 1490

Re: Can't get I2C to work correctly

tsaG and I had a problem with the i2c baudrate. You can try increasing the baudrate to something like 1Mbps to see if the accelerometer replies.

/CN
by christian-nils
Thu Jul 28, 2016 5:46 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C not reliable
Replies: 5
Views: 1687

Re: I2C not reliable

Hello,

I just post to say that I had a problem with the i2c baudrate as well. I had to set it to 2Mbps to make the communication work. However the i2c slave device that I use is supposed to work between 100 and 400kbps...

Greetings,

Christian-Nils
by christian-nils
Wed Jul 27, 2016 6:34 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Can't get I2C to work correctly
Replies: 5
Views: 1490

Re: Can't get I2C to work correctly

Hello! A linux driver for ST accelerometers exists (https://github.com/raspberrypi/linux/blob/rpi-4.4.y/drivers/iio/accel/st_accel_i2c.c) You just have to enable the driver by recompiling the kernel. Then you should bind the hardware (For the binding, I guess you can have a look to https://github.co...
by christian-nils
Tue Jul 26, 2016 7:47 pm
Forum: Device Tree
Topic: Setting up hid over i2c: binding and interrupt [solved]
Replies: 9
Views: 4865

Re: Setting up hid over i2c: binding and interrupt

Hi Walter, Actually, I was waiting for a happy ending before replying to this thread. I think I reached it today! ;) The binding was properly made. There was no problem. The problem was coming from the i2c baudrate. And actually it is extremely weird. I had to set the i2c baudrate to 2 000 000 inste...
by christian-nils
Sun Jul 03, 2016 6:08 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Interruption and other I2C configuration adaption from PIC32
Replies: 1
Views: 430

Re: Interruption and other I2C configuration adaption from P

Hi, I am no expert in PIC32 so I cannot help you on that part unfortunately. But, recently, I tried to adapt a code for a PIC24F to RPi, it is not that straightforward. Can't you get some documentation for the thermopile device? The documentation should tell you more or less what kind of request the...
by christian-nils
Tue Jun 28, 2016 12:41 pm
Forum: Device Tree
Topic: Setting up hid over i2c: binding and interrupt [solved]
Replies: 9
Views: 4865

Re: Setting up hid over i2c: binding and interrupt

Thank you PhilE. I have checked further (I got help from the creator of i2c-hid module) and it seems that the interrupt is not set correctly. So I think we can continue to try to fix the problem in this thread. I have a RPi 3. I have connected the interrupt line from the MM7150 to the physical pin 1...
by christian-nils
Tue Jun 28, 2016 6:43 am
Forum: Device Tree
Topic: Setting up hid over i2c: binding and interrupt [solved]
Replies: 9
Views: 4865

Re: Setting up hid over i2c: binding and interrupt

Hej! Thanks for your help! I modified the file as you suggested me. I think the falling edge is not the right interrupt flag, according to MM7150 datasheet. Even though, I tried and I have the same error. Anyway, I think my interrupt binding works after having checked the line with the oscilloscope....
by christian-nils
Mon Jun 27, 2016 6:07 pm
Forum: Device Tree
Topic: Setting up hid over i2c: binding and interrupt [solved]
Replies: 9
Views: 4865

Setting up hid over i2c: binding and interrupt [solved]

Hello, I am trying to interface a IMU (from Microchip MM7150) which supports the HID over I2C standard defined by Microsoft. I have activated the module (i2c-hid) in the kernel as well as activating the different drivers needed (hid-sensor-hub, and each single sensor drivers). Following the document...

Go to advanced search