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
1answer
20 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
23 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
0answers
17 views

Adafruit DC & Stepper motor HAT example code for control of movement

New to RPi and Python but learning fast. I am making a camera timelapse slider and having difficulty with the python script. Any help appreciated. I have: Adafruit DC & Stepper Motor HAT ...
0
votes
1answer
16 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
17 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
10 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
25 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
22 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
40 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
19 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 ...
0
votes
1answer
26 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 ...
0
votes
0answers
40 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
45 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
62 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
34 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
15 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
27 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
34 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
34 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
47 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
122 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
86 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
30 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
50 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
60 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
54 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
213 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
64 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
90 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
1answer
86 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
148 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
185 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
49 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
52 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
44 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
116 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
43 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
75 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
65 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
59 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
165 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
73 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
93 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
53 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
95 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
270 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
276 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
133 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 ...