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
11 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
27 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
21 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
13 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
26 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
41 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
60 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
29 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
35 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
39 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
53 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
30 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
24 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
24 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
53 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
27 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
42 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
41 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
43 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
65 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
24 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
51 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
50 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
66 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
80 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
46 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
20 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
42 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
46 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
52 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
179 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
123 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
35 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
56 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 ...
0
votes
1answer
69 views

Where can I find a python example for the Parallax MS5607 Altimeter?

I'm looking for some python examples that show how to use the Parallax MS5607 Altimeter/Barometer/Thermometer with a Raspberry Pi 3. I'm new to I2C and thought this might be a good way to jump in with ...
0
votes
1answer
71 views

Error in installing i2c-tools

pi@raspberrypi:~ $ sudo apt-get install i2c-tools Reading package lists... Error! E: Unable to parse package file /var/lib/apt/lists/archive.raspberrypi.org_debian_dists_jessie_main_binary-...
0
votes
1answer
252 views

Raspberry Pi 3 home automation project

I am new at DIYer and want to build a home automation IoT platform that can water plants. I want to use the Raspberry Pi 3 as the platform and connect a soil moisture sensor, photo diode and ...
0
votes
0answers
67 views

I2C not working on RPi 2 B

I'm trying to make I2C work on my Raspberry Pi 2 model B. Output of uname -a for software/kernel info: Linux raspberrypi2 4.1.7v7-aufs #1 SMP PREEMPT Wed Sep 16 13:19:27 CEST 2015 armv7l GNU/Linux ...
1
vote
1answer
121 views

CP2112 USB->I2C bridge not appearing in /dev

I am trying to get a SiLabs CP2112 USB to I2C bridge working with my Pi. At some point in recent history I had it working just fine. I could plug in a CP2112 evaluation board and a new entry /dev/i2c-...
0
votes
1answer
140 views

Cannot perform echo command to load driver for rtc module

I've come across a few tutorials for adding an rtc module to a pi. They all include a step in which you do echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-1/new_device. When I try this, I get a bash: ...
1
vote
1answer
238 views

How to read data from arduino with raspberry pi via I2C

I have connected Raspberry pi 2 model B with arduino uno via Bi-Directional Level shifter. Raspberry pi GND ---------- GND Arduino 3.3v ---------- 5v ...
1
vote
1answer
251 views

i2cdetect on Raspberry Pi kernel 4.1.18-v7+ takes 115 seconds

I have tried on two different Pi's (2 and zero) with fresh installs and have the same problem. I have i2c enabled via device tree via raspi-config. When I run i2cdetect -y 1 without anything plugged ...
3
votes
2answers
63 views

MMA845X accelerometer mapped at 1C

I have a MMA845X accelerometer mapped at 1C: 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- 1c -- -- -...
3
votes
0answers
63 views

i2cdetect shows all possible adresses

I have accidentally connected (SDA, SCL) with (5v, GND) (the two pins next to them), after doing so the raspberry pi has been overheating just by connecting it with power source (with no pins ...
0
votes
0answers
52 views

Lidar Lite was working-then stopped returning distances

I have a Pulsed Light Lidar Lite (model 1). I had the LiDAR running/returning distance and velocity values using Python and a Rpi2B+. I disconnected the LiDAR to test some other sensors. I powered ...