I²C stands for Inter-Integrated circuit, and is a data transferation system that allows connections between computers and low-level peripherals.

learn more… | top users | synonyms

0
votes
0answers
79 views

Using the wiringPi I2C Library

I am trying to figure out how this library works (https://projects.drogon.net/raspberry-pi/wiringpi/i2c-library/) . Firstly, what is int fd that all the functions require. It is never stated. I can't ...
0
votes
1answer
67 views

How to get pin addresses on a MCP23017

Recently I purchased a few MCP23017. I've been reading up on them and I've gotten a few lights to turn on and such. I am having a problem trying to understand how to figure out the register address ...
2
votes
1answer
161 views

MMA8452 I2C module

I am working on Raspberry Pi Model B. I am trying to interface this device over the I2C Bus on the Rpi. My hardware Connections are: RPi Accelerometer Vcc P1_1 ...
0
votes
1answer
59 views

Detect version 1 or version 2 Pi

I'm writing a small application that could run on version one Pi ( mine ) or a version two ( co-workers ) that uses the I2C bus. Since the I2C bus is different depending on the version, I was ...
0
votes
1answer
63 views

Converting two's complement hex values to binary using PHP

I'm reading x-axis accelerometer data from an IC via the I2C bus using I2C-Tools' ( specifically i2cget ) in Linux. Here is the code that is reading these values: $OUT_X_L_A = shell_exec( 'i2cget -y ...
1
vote
0answers
32 views

How can I read and write data to a Character Device File in Linux with PHP?

I'm trying to read and write to modules on the I2C bus on a Raspberry Pi using PHP. I'm using fopen() and fskeek(). Below is the code I've been trying to use to read data coming in from the physical ...
1
vote
1answer
111 views

I2C: Raspberri pi as a Slave

I am trying to make two raspberry pi communicate through I2C protocol. I got little information that how I can code as a master in C using i2c-dev.h. So my question is how to make one of my raspberry ...
1
vote
0answers
93 views

Raspberry Pi on AVC-LAN / IEBus

I'm planning on using my Raspberry Pi in my car as an XBMC server. I'll be able to select songs/videos using the Android remote control app, but it occurred to me that it would be really neat if I ...
0
votes
0answers
59 views

Parallax L3G4200D reading from Pi

I am looking for information on how to setup the Parallax 3 axis Gyroscope with temperature module. I cant seem to find good documentation anywhere on how to get it working. The only thing I can find ...
1
vote
1answer
164 views

Connecting the HMC6352 compass module to a Raspi using I2C

I am trying to connect a HMC6352 compass module to my Raspberry Pi. According to the datasheet I need to send an "A" for a read command. However, I am somewhat new to I2C and do not know how to ...
0
votes
1answer
129 views

Proven I2C sensors or expansion boards for RPI

Can someone point me to a good list of i2c sensors that will work with RPI - I am interested in pretty much any kind of them. Or perhaps there is an GPIO-mountable expansion board that I could use to ...
0
votes
1answer
68 views

I²C frequency changeable?

Is the I²C frequency meanwhile changeable? I read a few articles a while ago, that the frequency is not changeable.
2
votes
1answer
142 views

Couldnt get any value from accelerometer

I am using accelerometer MMA766 to read values. Used the following commands root@raspberrypi:/home/pi# i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- ...
3
votes
0answers
192 views

Xenomai RTDM Skins for I2C, SPI

In another post I read that Xenomai could be used for real-time tasks like control loops. I'd need to implement a real-time task which also talks to I2C and SPI. In this mailing list message I read ...
2
votes
1answer
246 views

PREEMPT_RT and RPi Drivers

I'm planning to do some realtime control loop tasks with the RPi. In this post PREEMPT_RT and Xenomai were proposed. I'm thinking about trying PREEMPT_RT, as I'd like to keep it as simple as possible. ...

1 2
15 30 50 per page