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

3
votes
1answer
30 views

Doesn't having pull up resistors in the I2C pins disables their use as GPIO?

The GPIO 2 and 3 pins are the I2C pins and both have 1.8k pull up resistors. Can they still be used are GPIO pins even with these resistors?
2
votes
0answers
10 views

I2C repeated start with BitBanging not working - Pigpio library on Raspberry Pi B+

First post here on the forum! Been getting a lot of help here from all the past posts and I am grateful for such a great community. I have been trying to use Repeated Start by using the PIGPIO ...
1
vote
2answers
33 views

C# implementation of MS5637 sensor with I2C on IoT

I've been looking at implementing a library to use the MS5637 Barometric Sensor. I would like to have a C# implementation that I can use on Raspberry Pi 2 running Windows IoT and using the I2C ...
1
vote
1answer
23 views

Verify working of I2C bus though command

I am trying to verify I2C bus through command (i2c tools) only. For this purpose I detect my I2C buses as follows ls -l /sys/bus/i2c/devices/i2c* lrwxrwxrwx 1 root root 0 Jan 27 ...
3
votes
1answer
34 views

Any tutorials for the 10Dof DfRobot IMU? ADXL345 - HMC5883L - ITG-3205 - BMP085

I would like to connect this Imu to the Raspberry Pi via I2C. I am looking for a C/C++ or Python code to use the data provided by this imu. It integrates the ADXL345 accelerometer, HMC5883L ...
1
vote
1answer
37 views

I am using hih9000 series temperature & humidity sensor in that first 2 byte for humidity data and last 2 byte for temperature how can i decode that

import smbus import time import datetime #SMBus(0) - Raspberry Pi Model A #SMBus(1) - Raspberry Pi Model B bus = smbus.SMBus(1) #I2C address of sensor address = 0x27 def temp(): #rvalue0 = ...
0
votes
0answers
34 views

Data Communication between two raspberry pi's via GPIO

Good day I am currently implementing an autonomous quadcopter with stereo vision using raspberry Pi. One (Let's call this Pi_1) is responsible for stereo vision the other is responsible for motor ...
3
votes
2answers
69 views

I2C using wiringPi or IOCTL in C, more than 2 bytes

I'm willing to send 20 bytes at a time to Arduinos via I2C bus. I'm writing a C program (that will become a Daemon) that should achieve this, and thus I downloaded via Git the last wiringPi library, ...
3
votes
1answer
54 views

What is needed to get I²C working with Debian Jessie?

I have a custom system running on a Raspberry Pi B+ V1.2, based on Debian Jessie (buildroot, systemd, udev) - not Raspbian - and a custom built 3.19.3 Kernel chainloaded by U-Boot and a custom init ...
1
vote
1answer
35 views

Why can't I get my LCD1602 with a HD44780 controller using I2C with Windows IoT to work?

I have tried about every example available on the internet. Probably spent hours attempting to get this LCD1602 to function properly. I can never get anything to display on the LCD. It just ...
3
votes
1answer
31 views

Is it possible to speed up code processing time by increasing i2c baudrate?

Is it possible to speed up execution time of a c++ program in raspberry pi solely by increasing the i2c baudrate and increasing the sampling frequency of the sensors? I have the issue of sudden ...
1
vote
1answer
34 views

How do you find the I2C address of the Pi?

My friend and I have been working on finding the I2C address of the Raspberry Pi, but have had no luck. We're planing on having the Raspberry pi sending data to a RoboRIO, which needs to have an ...
1
vote
2answers
22 views

Sparkfun ADXL345 wiring issues

My project is using two TMP102's, one BMP180, and one ADXL345, all on I2C (there are a few other items, but not on I2C). I'm having no issues with anything but the ADXL345. Even when it's the only ...
0
votes
1answer
35 views

How to set up a leak sensor?

I'd like to set up a few water leak sensors in/under my house to avoid the kinds of plumbers' bills that I got recently! I had been hoping somebody had built such a thing with 1-wire or I2C ready to ...
0
votes
0answers
33 views

Adafruit servo hat connections

I cannot solder the hat to the raspberry like suggested in the manual because the pins are alreade blocked by a proto-shield. However, I connected the SCL and SDA pins to the board and used an ...
0
votes
0answers
27 views

Controlling MCP23017 using pi4j

I use pi4j to Control my MCP23017 which controls realay. Also use Spring, Java and Tomcat. Sometimes my relay diodes (which indicate relay state) turns off but they shouldn't. After next scheduled ...
0
votes
0answers
23 views

Strange problem with MCP23017

I have strange problem with my mcp23017. When I type to command line i2cset -y 1 0x20 0x00 0x00 all relays are on, i2cset -y 1 0x20 0x14 0xff all relays are off but when I type i2cset -y 1 0x20 0x14 ...
1
vote
0answers
30 views

Sound disappears in I²S

I have a Raspberry Pi B+ version (single core). The ARM frequency is overclocked to 950 MHz I also have an IQaudIO I²S DAC HAT mounted. Sometimes, while playing 1080p with 5.1 sound, the video ...
1
vote
0answers
22 views

i2c random write failutes errno 5

I have a panel of 6 Rainbowduinos. Each Rainbowduino has an 8x8 tricolor LED panel with a ATMega chip that you can program just like a regular Arduino. I have a master Arduino that drives it as a ...
0
votes
0answers
25 views

Need help to connect this ADC [duplicate]

I am totally confused on how to connect this ADC link below to my raspberry and read data when analog is connected I just see on i2cdetect -y 1
1
vote
0answers
65 views

Read sht31 sensors by I2C

I have a SHT31 sensors (temp/humidity) from Adafruit : https://www.adafruit.com/products/2857 With my raspberry I can detect this sensor : dmesg | grep i2c [ 4.338498] i2c /dev entries driver [ ...
3
votes
1answer
129 views

Is there a tool to read and write data using I2C?

I am testing out some I2C connected hardware and my C program is working fine using Wiring Pi. However, what I wanted to do was read a byte or write a byte to the slave device from the shell. I ...
1
vote
0answers
64 views

IOError: [Errno 5] Input/output error Randomly

I have 8 MCP23017 IO expander about 3m away from the Raspberry PI2, and the system usually work but sometimes i get error, from different MCP. I don't know why is it software or hardware problem. I ...
4
votes
2answers
85 views

How can I use multiple LCD with connected via I2C on same Raspberry project?

I'm trying to use multiple LCD devices with I2C single Raspberry Pi. How can I connect multiple devices via I2C on same Raspberry Pi? As I understand this is possible. Because this page says: ...
0
votes
0answers
36 views

How to use I2C SSD1306 as Framebuffer

How does one make an i2c ssd1306 a framebuffer?
0
votes
0answers
20 views

Framebuffer over i2c

Is it possible to output a framebuffer over i2c to a ssd1306 or over ic for a screen under raspbian, for example?
1
vote
0answers
21 views

i2c wait until Arduino is ready

I have an application connecting an Arduino and a Raspberry Pi via i2c. The Arduino is running a timer interrupt and the communication needs to occur after the timer interrupt has happened. The ...
2
votes
1answer
48 views

I2C MCP23017 intermittent problems

I have a MCP23017 hooked up to my breadboard and PI 2 B as per this article. when I check it with i2cdetect it sometimes is visible and sometimes not. It is changing all the time, almost randomly. ...
1
vote
1answer
72 views

Using an I2C Battery Fuel Gauge Device Driver

I have connected the TI-make battery fuel gauge and charger to the I2C port of my raspberry Pi and eventually plan to control them using RPi. I have some minimally working code. However, I found a few ...
0
votes
1answer
102 views

ADC - ADS1115 I2C library to ADS1118 SPI library Python

I am wondering what should I do to adapt the adafruit library written for the ADC ADS1115 I2C (16 bits TI) library to a ADS1118 SPI (16 bits TI) library Python. ...
1
vote
1answer
46 views

I2Cdetect doesnt detect my I2C device

I am using a BQ27441EVM-G1B. It is a TI battery fuel gauge board, that is used to measure the battery voltage, current and charge left etc. Datasheet - http://www.ti.com/lit/ds/symlink/bq27441-g1.pdf ...
1
vote
1answer
53 views

Used raspi-config for i2c option

I used: sudo raspi-config to select the I2C option but it got into the config.txt file appended to the previous line. I since fixed that, but want to know what I did wrong or is it a bug?
1
vote
0answers
144 views

Raspberry PI and UBLOX Neo-7N / I2C Connection

I am trying to read positioning data from a UBLOX Neo-7N Module via I2C serial connection. I am using the Adafruit_I2C Python library to acomplish that. The i2cdevice is connected correctly and I ...
0
votes
1answer
60 views

How can I use other GPIO pin for I2C

I have to use i2c with raspberry pi and arduino but there's difference of voltage levels so I bought a level shifter module for i2c from http://www.devicemart.co.kr/1149321. the picture on the link, ...
2
votes
1answer
117 views

How to use i2c_gpio with Raspberry Pi?

I would like to use the i2c_gpio software i2c kernel module because the broadcom hardware i2c does not support I2C_M_NOSTART. How do I do this? I think that in order to do it I need to take the ...
2
votes
1answer
127 views

How do I use the I2C bus?

I want to attach an I2C device; it has 4 lines (SCA, SDL, +, -). I understand I can connect the first two to pins 3 and 5, and the last two to various places. I also understand I can multiplex the ...
4
votes
1answer
163 views

Why did my Pi die?

So, I have determined that my Pi is dead. This is what I did in the few days leading up to it: 1. I used I2C about once every 2 seconds, meaning I updated the display about that often. 2. I read ...
2
votes
1answer
140 views

Multiple differential air pressure sensors using I²C bus?

I have an Exhaust Air Heat Pump (Nibe F470) and I would want to monitor pressure differential between incoming and outgoing pipes and pressure differential between the house and outdoor air pressure. ...
1
vote
1answer
114 views

Rpi Slave and Arduino Master [duplicate]

I am beginner of Raspberry Pi. Is it possible for me to use my Raspberry Pi as slave for Arduino Mega to be a master using I2C protocol? I aim image processing by Raspberry Pi to send the steering ...
1
vote
0answers
90 views

Multiple sensors to I2C Bus [closed]

I want to connect multiple sensors to Raspberry's I2C bus. I know that can be done via connecting different sensors to different address bus. My question is how can we identify identify or assign ID ...
2
votes
1answer
64 views

SPI I2C SDO Question

I'm using the ADXL345 accelerometer with i2c. I've connected one to my PI and get good data. I use 3.3V, SDA, SDL and Ground. My project needs two ADXL345 units. So I hooked up a second. Both come ...
0
votes
0answers
344 views

Can I use I2C to connect multiple Arduinos with Wireless Connection

I am very new to stackoverflow and new to using raspberry pi and am in the process of learning how to use it properly. I am currently working with a partner on a project that requires a wireless ...
0
votes
0answers
549 views

Interface SIM 900A GSM MODEM with Raspberry Pi 2 Model B via I2C

I have bought SIM 900A GSM MODEM. It is working perfectly on serial interface but it require an extra Serial to USB converter module. So I want to interface it with my Raspberry Pi 2 Model B via I2C ...
0
votes
1answer
258 views

2004-LCD with PCF8574-I2C and wiringPi (Python)

I try to interface my 2004-LCD display with wiringPi (in Python 3). The display is connected to a PCF8574-chip, so I need to use I2C. This is my test code: import wiringpi2 as wiringpi ...
2
votes
2answers
267 views

OpenHAB to I2C instead of Internet/Ethernet

I want to use OpenHAB to make home automations using a Pi to run it and send and receive data from an Arduino, which will be controlling lights, reading sensors, etc. But to avoid the cost of an ...
1
vote
1answer
110 views

Serial vs I2C speed

I'm interested in knowing which is faster, Serial communication or I2C. So far I have the following two snippets of information that I have found while doing a bit of research. Serial communication ...
1
vote
1answer
273 views

Raspberry Pi 2 i2c-dev kernel module not loading

I am currently facing the problem that the i2c-dev kernel module is not loaded despite the dtparam=i2c_arm=on being present in /boot/config.txt. Therefore I cannot i2detect fails on me as /dev/i2c-1 ...
1
vote
2answers
113 views

Programming servo - What to use?

So I just decided to start a small side project using the RPi to control 1 or 2 servos. At first, I thought this would just mean plugging the GPIO pins of the servo to the GPIO pins on the RPi, and ...
2
votes
1answer
253 views

Modified RPi.GPIO package causes “'module' object has no attribute 'RPI_REVISION'” in camera.py?

My picamera was working fine this morning. i.e the following code was working fine import time import picamera frames="/home/pi/Desktop/picamTEST.raw" camera=picamera.PiCamera() camera.resolution = ...
0
votes
1answer
61 views

Is there a way to connect an I2C RTC using pins 17,19,21,23,25?

I've been looking at I2C RTC modules like this one, but they all appear to be normally connected to pins 1,3,5,7,9. However, I'd also like to try to use a RaZberry Z-wave module on the same Rasberry ...