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
24 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
28 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 ...
-2
votes
0answers
37 views

I2C initialization using C

I want to know how the initialization of I2C is done using C-code.Kindly help what are all the libraries required and provide appropriate sample code for accessing the register values of EEPROM.
0
votes
0answers
51 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
20 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
14 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
25 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
23 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
24 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? ...
0
votes
0answers
35 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
67 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
17 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
58 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
28 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
48 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
47 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
46 views

Error in installing i2c-tools

pi@raspberrypi:~ $ sudo apt-get install i2c-tools Reading package lists... Error! E: Unable to parse package file ...
0
votes
1answer
158 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
57 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 ...
0
votes
1answer
63 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 ...
0
votes
0answers
48 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
106 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 ...
0
votes
1answer
134 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 ...
1
vote
2answers
39 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
47 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
42 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 ...
1
vote
1answer
93 views

Programming MSP430 with Raspberry PI 2

So I am trying to give instructions to my MSP430G2553, to blink a led for example. There are some IDEs for programming the chip over USB, but i want to use my raspberry to program it directly through ...
3
votes
0answers
37 views

I2C device detection on Pi A+

Good evening, I am trying to link a digital thermo sensor (MR003-001) to the I2C pins on A+ Pi. I have enabled I2C connection in raspi-config, and download I2CdevTools. user is in i2c group, I ...
1
vote
0answers
55 views

Using INT interrupt line on PCF8574 I2C 8-bit IO-expander on Bit-banged RPi GPIO?

I am planning to use a triplet of RPi GPIO pins as an additional bit-banged I2C bus on my RPi. This will be run at a lower than typical rate (and level-shifted via a 3.3 to 5.0 V I2C shifter unit) so ...
5
votes
1answer
59 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.8 k ohm pull up resistors. Can they still be used as GPIO pins even with these resistors?
4
votes
1answer
50 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
122 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 ...
2
votes
1answer
58 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
74 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
52 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
78 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
184 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
201 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
110 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
62 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
60 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
51 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
56 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
1answer
61 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
65 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
29 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
38 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 ...
2
votes
0answers
48 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