I²C stands for Inter-Integrated circuit, and is a data transferation system that allows connections between computers or microcontrollers and low-level peripherals (e.g. sensors or EEPROMS). It is a is a multi-master, multi-slave, single-ended, serial computer bus.

learn more… | top users | synonyms

0
votes
0answers
13 views

Can't write to i2c but can read. (LSM303 / Adafruit 10DOF)

I connected an Adafruit accelerometer + gyro + barometer to my Raspberry Pi v3 and did the necessary configuration to enable I2C, and installed some tools. running i2cdetect -y 1 shows me: 0 ...
1
vote
0answers
15 views

Recommended Accel/Gryo/Compass Sensors for the Pi?

Is there a guide or list of accel/gyro/compass sensors that have well-documented code that are known to work with the Pi2/3? I've wasted several weeks trying to get various InvenSense chips to work (...
0
votes
0answers
12 views

MLX90615 Sensor for Raspberry Pi 3 Model B

i have connected mlx90615 Thermometer module to my raspberry i2c pins but i was not able to find any code or guidance on how to receive measured temperatures from the sensor (i2c bus) but there are ...
3
votes
1answer
46 views

Read synchronous serial communication with Raspberry Pi

I am evaluating different Linux Plattforms and would like to know: Is it possible to read synchronous serial data at 300 to 350 kbaud with any Raspberry Pi? I am getting the data as RS422. Thus I ...
5
votes
3answers
47 views

How to allow I2C access for non-root users?

How do you allow non-root users to access I2C on the Raspberry Pi 2? I've compiled this code for accessing an MPU6050 sensor via I2C, and it works perfectly, but only when I call it via sudo. I ...
3
votes
0answers
14 views

I2C windows iot can't connect

I'm trying to communicate between a Raspberry Pi 3 running Windows 10 IOT (build 14376 insiders) and a T-REX Manual here using I2C protocol. The thing is that it always crashes, so after some ...
0
votes
0answers
24 views

PiCam and I2C incomatibility Raspberry 3?

Hi all friends of RasPi, I'm working with Computer Vision and raspberry is fantastic: portability, open system hw&sw.... and PiCamera. As a basic program I need for my CV to set up the pan and ...
1
vote
0answers
21 views

Random IO errors on i2c

I connected a raspberry to a i2c bus that holds two devices: an i2c io expander pcf8574A at 0x20, and a lcd controller pcf8576 on address 0x38. Both show up fine when running i2cdetect -y 1. When ...
1
vote
0answers
22 views

Raspi and device taking turns on the I2C bus

I am trying to get the Pi to receive data from an ESC via I2C. It works like this: Pi sends series of 4 bytes to speed controller to initiate connection ESC responds with a series of bytes Pi sends ...
1
vote
0answers
16 views

Interface capacitive digitizer via i2c

Hi Guys I need help interfacing a capacitive digitizer with the rpi2. The digitizer has a goodix gt9137 touch controller and the drivers are in the Linux kernel.After I hook it up what do I do?Will it ...
1
vote
0answers
23 views

Raspberry Pi Wireless Surround Sound

I am planning to design a wireless interface to send lossless quality audio over a dedicated 802.11 network from a surround receiver to 8 individual speakers. To do this, from what I can tell, I would ...
0
votes
0answers
34 views

SI1145 Adafruit UV Sensor Library porting from Ardunio to Python SMBUS

I have spent the day trying to port the Adafruit UV Sensor Library (Link) from Arduino to Python and SMBUS and am definitely making progress. The data sheet is a bit vague on detail compared to the ...
3
votes
2answers
40 views

i2c Set Address Pointer

I'm trying to get an Adafruit HDC1008 Temperature and Humidity breakout working on the Raspberry Pi. I have had some success using the 'raw' code shown at the bottom of the Interfacing HDC1008 ...
1
vote
0answers
24 views

Execute I2C functions from web page on Pi running LAMP

I know these type of "what's the best way" questions are frowned upon on StackExchange, but I will try to fit it within the guidelines. I have tried several methods and can't figure out which is the ...
1
vote
1answer
15 views

How to know how many registers an I2C slave has?

I'm using two different accelerometers with my Pi and both use I2C, so I decided to have the same python code for both. It is not very complex, I just want do periodically read all registers and dump ...
1
vote
1answer
36 views

I2C LCD with LCM1602 module

I bought this LCD:https://www.sunfounder.com/i2clcd.html And I want to use it under java program, for example with pi4j framework. Being I2C, restricts a lot the examples I found and in that world, ...
1
vote
1answer
52 views

I2C - I need a 1 second delay between sending byte and reading reading data from sensor

I am using an Atlas Scientific I2C sensor and trying to connect it to the Pi. http://www.atlas-scientific.com/_files/_datasheets/_circuit/EC_EZO_Datasheet.pdf Here's the code that I'm running: ...
0
votes
1answer
79 views

i2c not detecting any connections

Im using the ADS1115 with my raspi. I have the GPIO connected with a T-cobbler. When I run i2cdetect -y 1 it shows that nothing is connected. I've checked my connections in terms of soldering and ...
0
votes
1answer
32 views

16x2 LCD Display on RPi via I2C/SPI Backpack

I have bought the following two items: 16x2 Basic LCD Adafruit I2C / SPI character LCD backpack which I have soldered together and got working nicely on my Arduino Uno, however, I have had less ...
1
vote
1answer
36 views

Why many RaspberryPi add on has pull up resistors?

I was looking at the I2C in RaspberryPi and I saw that they are pulled by 1.8K resistors(I am not talking about the ID pins). On the other hand, I got one of those RTC and they got two 222Ohm pull up ...
0
votes
1answer
42 views

Windows 10 IOT equivalent of i2cdetect

I am trying to troubleshoot an I2C device connected to my Raspberry PI Model B. The device is giving me the following error: System.IO.FileNotFoundException: The system cannot find the file ...
0
votes
0answers
69 views

Starting a touchscreen on the raspberry pi 2

I'm using this touchscreen with my raspberry pi, but it won't work. I used this tutorial and everything goes fine until I reach the startx part. When I type startx the terminal prints: X: user not ...
1
vote
1answer
34 views

i2c problem - can't talk to i2c Sensor

I have a gas sensor connected to my Raspberry Pi 2 (5V,GND, SDA, SCL) I use the Raspbian OS. I try to communicate with the sensor according to this manual: http://co2meters.com/Documentation/AppNotes/...
0
votes
0answers
16 views

how to use I2C make pcf8591 work? [duplicate]

I want to use raspberry pi3plus to make i2c work(sorry,I'm from another country and my english very pool,but I need your help),so I need a example to learn how to use i2c,who can give me a example or ...
0
votes
0answers
35 views

Pi4j snapshot 1.1 exampleCode error

We have manually installed the latest pi4j snapshot (version 1.1) to solve the BigDecimal issue, but now we have both a run error and compile error. We use the PCA9685GpioServoExample.java as example ...
0
votes
1answer
28 views

I2C bus with alternative power supply

I am controlling a MCP23017 to expand the number of GPIO through i2c. Basically I use pins 3 and 5 for i2c. When I power up the circuit using the +5v and ground from rpi pins 4 and 6 I can run my ...
1
vote
1answer
78 views

How to specify the I2C device address in Libnfc?

I'm using Libnfc 1.7.1 on a Raspberry PI. I'm connecting to a NXP PN532 chip via I2C and configured the connstring (pn532_i2c:/dev/i2c-1) in the Libnfc config file accordingly. So far, everything is ...
0
votes
1answer
30 views

Using RPI2 model B to read multiple IMU units

I have 3 IMU units "mpu-6050" and I want to read all three in real time. The IMU's communication protocol is I2C. As I noticed the model b has two I2C options : I2C0, I2C1. Does RPI2 can read ...
0
votes
1answer
55 views

Why do I get an error message: 'Inappropriate ioctl for device' with I2C connection?

I am trying to connect a particle sensor to RPi via I2C. I have added dtparam=i2c_arm=on to the config.txt file and I have also un-blacklisted I2C. Using the Serial Python module, I have a script ...
0
votes
1answer
13 views

understanding 'close' and 'unexport' of i2c and gpio

I'm learning how to code Raspberry pi in javascript (shouldn't matter for this question) and using the onoff library and i2c-bus libraries. The GPIO (onoff) library shows how to 'close' a pin, which ...
1
vote
1answer
57 views

Reading 2 bytes at a time via I2C on Rapsberry Pi + ADS7828

I am trying to read data from the ADS7828 12-bit ADC through my Raspberry Pi's I2C port. The datasheet for the ADC mentions (on page 12) that once I read address the ADC it will return the 12 bit ...
0
votes
1answer
50 views

i2c on a rpi-basic-image created with yocto

I'm attempting to get the i2c bus to work from a raspberry pi image created from yocto. I have looked at other peoples solutions but they are all o do with raspbian or some other flavour of os. My /...
0
votes
1answer
99 views

Connecting multiple devices via I2C

http://www.modmypi.com/raspberry-pi/breakout-boards/adafruit/adafruit-pwmservo-driver-16-channel-12-bit-pca9685 How do I connect two I2C devices to my R Pi? Specificaly 16 Channel 12 Bit PWM Servo ...
0
votes
0answers
30 views

5V Pin and i2c (GPIO Expander MCP23017) acting VERY strange

This is the case, I've got an MCP23017 IC to expand the outputs on the Raspberry Pi 2 as the others are going to be used (A0 A1 and A2 connected to 0V and RESET pin connected to 5V). Here are the ...
1
vote
1answer
54 views

I2C cannot get data

A colleague of mine gave me a device that is able to send data via i2c. He has already been able to recieve this data on the Arduino via the following library/Function https://www.arduino.cc/en/...
0
votes
0answers
62 views

I2C - Send data to Arduino without sending request

I have an Arduino connected as a slave to a Pi. I have two interrupts: Wire.onRequest(requestEvent); // sends back data Wire.onReceive(receiveData); // executes pin change, sends back different data ...
2
votes
1answer
96 views

Does the Raspberry Pi support I2C multi-master configurations?

We are using Raspberry Pi 2 single board computers for test automation (they run our feature test against an actual DUT). Our Device Under Test (DUT) uses I2C multi-master mode to communicate with its ...
0
votes
0answers
84 views

I2C Communication

The following program for I2C communication showing some random values even there is no device in the prescribed address (in the program). Also, the values that we are willing to write is not written ...
0
votes
0answers
30 views

i2c write/ i2cset not working (data mismatch) [duplicate]

Using i2cset I tried to set data 0x01 in the register 0x00 but it is showing data mismatch. I am using M24128 EEPROM as slave. pi@raspberrypi:~ $ i2cset -f -y -r 1 0x54 0x00 0x01 Warning - data ...
0
votes
0answers
58 views

SGTL5000 / Teensy Audio Adapter on RPi 3

I made the decision to buy a Teensy Audio Adapter as my Pi's input and output. It provides access to the pins that I need on its SGTL5000. So I set GPIO pin 4 to clock mode, at 9.6 MHz, using wiringpi ...
-1
votes
1answer
23 views

Disabling Hat EEPROM scan

How do I free the Hat EEPROM I2C bus (bus 0?) on a + model? I ask because the primary bus is blocked by an TFT I'm using, and I want to solder nothing to the Pi GPIO.
0
votes
1answer
31 views

Python script will not write to file when run on boot

I am using a script that takes the arduino serial and writes it to an out.dat file. The scripts works fine when run after boot, however when I added the script to /etc/rc.local it runs the script, but ...
0
votes
0answers
48 views

RPIO.PWM causes I2C to stop working [solved]

EDIT: Problem solved. I had configured the PPM output to GPIO 3, which is also the I2C clock line. Yyeah… :) My sincere apologies. I'll be sure to check the pin reference first in the future. I'm ...
0
votes
0answers
53 views

Couldnt able to write in EEPROM

While trying to write in EEPROM it is not getting written nor showing any error. I could able to detect the end device at 0x54, so that is not a problem. What else could be the problem? pi@...
0
votes
0answers
55 views

Installing eeprog for raspberry pi

I am trying to communicate through i2c between pi 3 and M24128 EEPROM. command " ./eeprog -f -16 -w 0 -t 5 /dev/i2c-1 0x54 " shows , No such file or directory , and command i2cdump -y 1 0x54 i , I am ...
1
vote
3answers
256 views

How to read a long int via i2c?

I tried to connect an Arduino Uno with my Raspberry using the i2c bus, with code and wiring suggested here. This example is sending only one byte from RPi to Arduino and back, and everything works ...
0
votes
0answers
18 views

Code and Configuration for I2C communication [duplicate]

I want to communicate from Raspberry pi 3 to a board having V850 Controller and M24128 EEPROM. I want to communicate through EEPROM, where pi will act as master. I have Removed I2C from Blacklist ...
0
votes
1answer
159 views

i2c problem on Raspberry pi2 running Raspbian Jessie

I am following this tutorial It did not work and I looked for help online but still I cannot make the i2c works. This is my current condition. If you need more data, please let me know. Could ...
0
votes
0answers
36 views

pi2B - I2C behaviour on shutdown - difference between wheezy and jessie

I have a setup described in detail in this question. Basically it's a set of relays driven by the MCP23017 port expander and some transistors with one of the relays controlling power source: On ...
-2
votes
1answer
60 views

How to know register for I2C communication in pi

I want to communicate between raspberry pi 1 and a board with V850ES controller. To write/read to/from raspberry pi from/to the controller, I need to know the register address. How to find that? I ...