I²C stands for Inter-Integrated circuit, and is a data transferation system that allows connections between computers and low-level peripherals.

learn more… | top users | synonyms

0
votes
1answer
24 views

Input/output error while receiving the string from arduino via i2c

Im trying to send string data from arduino to raspberry pi via i2c. Raspberry pi can receive the data of particular length(probably32 bytes) of string since bus.read_i2c_block_data(address,0) read ...
3
votes
1answer
44 views

Has anyone successfully used I2C repeated starts on the PI2? My scope says they are broken

I've looked at all the info that I could find on I2C repeated starts, and I tested a simple example that uses ioctl calls with the standard two message structure required to cause a repeated start: ...
0
votes
0answers
13 views

How to interface raspberry pi and Mbed microcontroller using I2c?

I want to interface raspberrp pi and Mbed microcontroller through I2c bus. Both operate at 3.3v , i have connected Rpi SCL ----> mbed SCL ,RPI SDA------> mbed SDA,RPI gnd -----> mbed gnd. After ...
1
vote
1answer
33 views

Raspberryi pi doesn't show i2c address

I need a level shifter circuit between 5v and 3.3v. I'm interfacing two devices raspberry pi and arduino using I2C protocol. I google about level shifter for raspberry pi and arduino. I got this ...
1
vote
0answers
34 views

Not all devices that are connection via I2C are showing

I have linked this chip to my raspberry pi. I used these instructions to do it then installed everything I was told to install using these ...
1
vote
0answers
25 views

I2C rpi i/o error

I'm trying to send multiple bytes of data to an arduino from the RPi but when using : Def writenumbersecond(values) : bus.write_byte(0x04, values) Return None But when calling this data it ...
1
vote
1answer
81 views

Raspberry Pi 2 Broadcom BCM2708/2709 I2C Driver Source File

I've been modifying the low-level driver for I2C on the Raspberry Pi 2. But after not seeing much effect after recompilation and deploy, I'm wondering if I'm actually editing the correct source file. ...
0
votes
0answers
37 views

i2cdetect -y 1 detects my driver the first time, not the second. Code generates i/o error

After having several issues with this grove i2c motor driver I decided to test the i2cdetect once again to ensure it is connected to my bus. I see that it was on 0x0f like expected and, by mistake, ...
3
votes
1answer
54 views

Raspberry Pi as slave

I am using a Pi compute module and wish to make two of them to communicate to each other. I have hooked up some slave I2C devices to it (RTC, Temperature sensor). So I don't think making Pi as slave ...
1
vote
0answers
55 views

Microstack Accelerometer not working. I2C issue?

I just received a Microstack Accelerometer about a week and a half ago. I put the Accelerometer onto the Microstack Baseboard and followed all of the instructions that were provided here. When I go ...
1
vote
1answer
35 views

Why is I2C disabled by default?

It seems that, to use I2C, we need to: un-blacklist I2C with sudo nano /etc/modprobe.d/raspi-blacklist.conf enable I2C kernel module with sudo nano /etc/modules Why is it disabled + blacklisted by ...
3
votes
1answer
69 views

Can't activate I2C on my B+

I'm trying to use the I2C pins on my Pi. All guides I can find talks about that I have to activate it using ether /etc/modprobe.d/raspi-blacklist.conf or raspi-config. However, nether works, the file ...
1
vote
1answer
28 views

How do I access the Wii Nunchuck using WiringPi

The Wii nunchuck is an I2C accessible device and can be wired to the I2C pins of a Pi. How do I read the data from a Wii nunchuck in C using the WiringPi library?
1
vote
0answers
26 views

Troubleshooting MCP23017 based display

I am having trouble getting characters to display on my Adafruit 16x2 blue/white monochrome LCD + keypad. I am wondering how best to isolate the problem as either hardware or software. It shows up in ...
2
votes
1answer
92 views

BMP180 allow to read calibration but fail to read data

I have BMP180 connected to my pi, i can read calibration data from it, but when i try to get pressure / temperature data -- i get 80 00 for temp and 80 00 00 for pressure (mean -- 'just-after-reboot ...
2
votes
1answer
70 views

What bitrate can I get from an i2c bus?

In short, what is the maximum bitrate that can be achieved writing to an I2C bus from a Raspberry Pi? Should it be the theoretical maximum of 100KB/s? In more detail, I'm writing to an I2C bus from ...
1
vote
1answer
43 views

Smallest possible baudrate for i2c?

I set it to 1200 $ cat /boot/config.txt [...] dtparam=i2c_arm=on,i2c_arm=on_baudrate=1200 but $ cat /sys/module/i2c_bcm2708/parameters/baudrate 3814 Is this the minimum? Can I somehow go below ...
0
votes
0answers
62 views

Problems Bit-Bashing an I2C Slave

I have a Pi B+ on which I'm trying to bit-bash an I2C Slave in C / C++ (code's pretty much C despite the fact I'm using g++ and .cpp files), utilizing GPIO 18 as my Clock and GPIO 17 as my Data. I'm ...
1
vote
2answers
98 views

Locating I2C pull-up resistors for RPi2

I am working with a project where the I2C pull-up resistors need to altered. Unfortunately i cannot find any documentation that can tell me: (a) if there is any pull-up resistors and (b) what size ...
0
votes
1answer
90 views

How can I use a LCD display with a I2C adapter?

I'd like to try to communicate to a 16x2 LCD display, however whole docs I found assume I should connect the whole pin-out however I got some kind of I2C adapter from mjkdz.com which makes a 4 pin ...
2
votes
2answers
89 views

Resetting I2C? Or did I break my chip?

I'm connecting a TS45315 light sensor on an Adafruit breakoutboard to the I2C bus of my Raspberry. I access the data through the following simple Python script: ...
0
votes
1answer
137 views

I2C not working as expected

I'm running a Pi B+ rev 1.2 and recently acquired 2 I2C modules: DS-RGBW.S LED lighting Microstack accelerometer: When connecting the LED module, address 70 appears to be occupied as planned. I ...
2
votes
1answer
148 views

What does raspi-config do when you enable i2c?

Is there any documentation for the raspi-config command that would explain what it actually does when enabling i2c? In the past I have just removed the i2c blacklist, added the modules and made sure ...
1
vote
1answer
107 views

I2C LCD detected, code runs, but no display

I'm trying to drive a 16x2 LCD board with i2c and running into some unexpected results. Basically, I can detect it, talk to it with my code, but nothing shows up on the screen. Same screen when ...
0
votes
0answers
27 views

Changing from spi bus to i2c bus to transfer register data of wm5102 in raspberry pi with wolfson audio card

I'm using wolfson audio card on raspberry pi b+ board.Current wm5102 driver uses spi bus to transfer register data but i want to use i2c bus to transfer data.By reading data sheet of 5102 i understood ...
0
votes
0answers
35 views

Using sensors and dc motors with MCP23017

Can I use a Raspberry Pi Model B along with MCP23017 to take inputs from 5 digital sensors and give output to 6 'normal' 12v DC motors? The Pi is already working as a webserver with a USB camera. I ...
0
votes
0answers
47 views

How to set up MPU6050's registers properly?

I would like to use the MPU6050 as IMU in my quadcopter. I've been Googling for 2 days, but I can't find anything where there are explained well. I know that the settings are not general, but I hope ...
2
votes
1answer
87 views

Accessing ADXL345

I'm trying to access an ADXL345 Accelerometer mounted on a Sparkfun breakoutboard via Python and I2C from a Raspberry B+. I'm following this tutorial However when trying to check for the sensor with ...
0
votes
0answers
161 views

Different “Adafruit 16x2 Character LCD + Keypad for Raspberry Pi” Python Libraries & Sunfounder plate

I have the SunFounder I2C interface 16x2 LCD Pi Plate with KeyPad with RGB LED for Raspberry Pi plate (this model available at Amazon (sorry I have only the german link - the picture is showing the ...
0
votes
2answers
127 views

Rasclock does not store the time

I just received my Rasclock V4, and set it up according to Afterthought's instructions. Seeing as I'm doing this on a RPi B+, with the latest raspbian image downloaded from raspberrypi.org just ...
0
votes
1answer
92 views

Python, C, I2C, calling binary with arguments, and printing output

I have a C binary that takes 1 argument. I need to have Python run the binary, and return the output. Using subprocess.Popen (and check_output), the C binary fails when trying to write to the I2C ...
1
vote
1answer
77 views

baudrate config changes only after starting x

I've changed an i2c config file so current baudrate is 300000. I do a reboot and start an i2c baudrate checking program. sudo ./checkbr But what I get seems to be usual baudrate settings(default). ...
0
votes
2answers
84 views

MPU6050 gyroscope not responding

I was testing my MPU6050 with Raspberry PI and got accelerometer(X,Y,Z) and gyroscope(X,Y,Z) data forming on registers at decentely high sample rate. Looks like I've accidently fed +5v from RPI to SDA ...
12
votes
2answers
11k views

Firmware 3.18.x breaks I²C, SPI, audio, lirc, 1-wire (e.g. /dev/i2c-1, No such file or directory)

I am using I²C to control a Bright Pi module. I followed instructions from 'Configuring GPIO - Adafruit' and 'Configuring I²C - Adafruit' to set up the I²C. I have done this a few months ago and ...
1
vote
0answers
43 views

I2C PIC18F2520 and PI

I am having a big problem to communicate a PI with PIC using I2C. When I try to use another PIC as master everything works fine, no problem. But swtich to PI I cant get it to work. To start my both ...
1
vote
0answers
243 views

Why I cannot read the temperature/humidity sensor sht20?

I use a temperature and humidity sensor sht20. According to this link: http://www.sensirion.com/en/products/humidity-temperature/humidity-temperature-sensor-sht2x/ It is compatible with sht21, which ...
0
votes
0answers
161 views

Why my Raspberry Pi cannot find Si7021 (temperature and humidity sensor)?

I use this temperature and humidity sensor: Si7021, like below link http://www.dfrobot.com/wiki/index.php/SI7021_Temperature_and_humidity_sensor_SKU:TOY0054 I can get the sensor data by Arduino ...
2
votes
1answer
98 views

Check for I2C device presence

I'm using I2Ctools to read data off of some devices attached to a raspberry pi via the I2C interface. I want to check if a device in a certain address is present or not. If present, read the data from ...
0
votes
1answer
93 views

Sending data to a 1602 LCD in Mono C# over i2c

How would I be able to put information on a 1602 lcd over SPI? I was thinking that it may be possible to write to the pin (like a file) with all the hex codes of the letters etc. or similar. I'm a ...
3
votes
2answers
367 views

i2cdetect strange output

I'm following this tuto http://skpang.co.uk/blog/archives/575 in order to setup my rpi with an I/O port expander. My problem is whenever I run i2cdetect to find out the device, I get a weird output. ...
5
votes
1answer
269 views

Controlling a official lego servo motor via Raspberry Pi

I am able to control a simple servo motor such as SG90 by using pulse-width modulation. However when it comes to controlling a 88004 LEGO Servo Motor it is simply a nightmare. By using PWM all I ...
4
votes
1answer
107 views

Troubleshoot MCP23017 and LEDs

Anyone have any tips to help troubleshoot turning a simple LED on connected through the MCP23017? I've installed i2c-tools, and smbus. Nothing in my blacklist.conf Added i2c-dev to /etc/modules. ...
2
votes
0answers
182 views

Connecting Adafruit NFC breakout and serial console at the same time [closed]

I am electronics newbie but have some programming background. My current hobby project is to make a "thing" which does things based on which NFC badge is waved at it. The tutorial [1] I am following ...
3
votes
1answer
71 views

I2C device inside case + GPIO ribbon outside case

I have a model B in a nice prefab case with a slot through it to connect a 26-wire ribbon to the GPIO header. However, I'd like to leave a small I2C based device inside the case as well. I've ...
1
vote
1answer
65 views

Issues with multiple SDA sensors

I am facing some issues trying to connect two sensors which make use of the SDA GPIO. Ultra sound sensor HC-SR04 Gyroscope & Accelerometer MPU-6050 Separately, they work just fine, however ...
2
votes
1answer
65 views

Sensor minimum/maximum operating voltage

I've bought this sensor, and I'd like to connect it to Raspberry Pi (unless I manage i2c on dagu minidriver). The spec on the sensor say: Minimum operating voltage: 2.5 V Maximum operating ...
1
vote
1answer
77 views

Pins I2C cannot be used as input

When using pin 3 and 5 as inputs, I get only 3.3v and I'm not able to use them as inputs. I use the same code and circuit on all the GPIO pins the circuit worked on every single pin except on this 2 ...
1
vote
0answers
48 views

How to do a repeated start with the Raspberry Pi to get the MMA8452Q accelerometer working?

I am trying to use an MMA8452Q accelerometer with the Raspberry pi B+. I have it hooked up to 5 GPIO pins on the Pi, J8 pins 1/3/5/7/9. After installing some i2c libraries, the Pi recognizes the ...
1
vote
0answers
811 views

I2C problem reading data - only sometimes

I'm using this device, that acts as an I2C slave device on the address 0x23, for communicating with an arduino from a RPi model B. This is an nrf24l01 attached to an AT48 that provides an I2C ...
0
votes
1answer
103 views

Filtering noise w/ pi as FM transmitter and sound source

I have an I2C FM transmitter for the pi; it has a 3.5mm stereo jack for input. Everything works great -- I attached a short dipole antennae and get clear reception for at least 25'. However, if I ...