Questions tagged [i2c]

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 multi-master, multi-slave, single-ended, serial computer bus.

Filter by
Sorted by
Tagged with
0
votes
1answer
29 views

How to send data from RPI to Arduino via I2C

Im working on a project to build an autonomous lego car. Im running into some problems here, and i could use some help. Right now, im struggling to send and receive data from RPI (4) to Arduino (Nano)....
1
vote
1answer
35 views

Detecting an impact with a piezo sensor and ADC

I am trying to use piezoelectric sensors to detect when an object strikes one of 9 plastic panels. I have 3 ADS1115 ADCs (they are the QIFEI ones that actually are ADS1015), so 12 channels at 12-bits ...
0
votes
0answers
38 views

I2C not detecting BME280 (the I2C only version) when display is connected to SPI

I have bought an ePaper display and an BME280 sensor. The ePaper display itself is successfully powered via SPI (https://www.waveshare.com/wiki/4.2inch_e-Paper_Module_(B)) and the BME280 should be ...
0
votes
0answers
21 views

RPI not recieving I2C master's messages

Im trying to use a RPI3B+ to emulate a WiiMotion Plus, So i have it set up as a slave using pigpio and connected to a wiimote. Expected outcome: The wiimote will try to read from register 0xfe and ...
0
votes
0answers
16 views

RPI as I2C slave find bscXfer register

In my program, i have an array of 0x100 bytes, called m_reg_data. an index of this list will return the data at that given register. I have two functions which access this. BusRead: int BusRead(std::...
1
vote
2answers
71 views

MCP23008 I2C bus device address by “i2cdetect -y 1” is not stable

When I connect the GPIO expander MCP23008 to the raspberry pi 1 model B+ via I2C, the address of the MCP23008 on the raspberry pi keeps switching between 0x20 and 0x21, and sometimes it's not even ...
1
vote
0answers
25 views

How to solve Raspberry Pi 3B & Bme280 Remote I/O error

Let me start off with the components used: GPIO extension board to connect the raspberry pi to components Bme280 (Purple thingy) Pi 3B Problem description: This problem was intermittent at first. We ...
0
votes
1answer
21 views

Read word using i2cget with no data-address

I'm trying to read data from a pressure sensor from BB Sensors over i2c. They haven't made it especially easy. It uses a reserved address by default (0x78) and it also uses some sort of cut-down ...
0
votes
0answers
35 views

Python I2C error with SMBus and GY-521 (MPU6050), bytes omitted resulting in crash

I am using an GY521 (MPU6050) to test the I2C interface. I am able to read data from it, but sometimes, randomly, the python interpreter would crash: IOError: [Errno 121] Remote I/O error. I have used ...
1
vote
2answers
54 views

How can I simultaneously connect a UART device and an I2C device to a Raspberry Pi via a Cat6 cable?

I have been researching related questions to this one for a while but decided I needed to ask this myself, as no one seems to be having quite the same issue and I am not knowledgeable enough yet to ...
1
vote
1answer
37 views

How Can I Physically Wire Multiple I2C Devices In Parallel Without Stacking?

I am trying to wire an ADS1115 ADC (connected to an AD8232 Heart Rate Monitor), as well as a BME680 Atmospheric Sensor to my Raspberry Pi. They both have different addresses and they need to be ...
0
votes
0answers
24 views

Connecting the same type of device multiple times (64+) to a single Pi

I am starting a project that requires at least 64 of the same component connected to a Pi. The component I am hoping to use is 5 volt analogue sensor. This would be connected to an ADC similar to this:...
0
votes
0answers
58 views

RaspberryPi 4 Current issues with multiple power sources and common ground

I've been building a tank robot for a while now and in these days I'm struggling with some issues related to insufficient current in my configuration. For instance, some sensors stop working after a ...
0
votes
1answer
28 views

Raspberry vs arduino i2c communication

i used to use arduino as a i2c communication device but i'm changing to raspberry and i have a question about how to send and receive data from raspberry to my device the device in question is a ...
0
votes
1answer
43 views

i2c not detecting ADS1115

I am using ADS1015 with my RPi4, a couple weeks ago there were no probem with the i2c module,(the components were not connected, when not used) but since last week it is not detecting my device. I ...
2
votes
0answers
38 views

Stacking up multiple grove base HATs on Raspberry Pi

I want to stack multiple Grove base HATs on a single Raspberry Pi. This is the HAT i am using https://wiki.seeedstudio.com/Grove_Base_Hat_for_Raspberry_Pi My application needs to interface 24 analog ...
0
votes
0answers
28 views

Specifics on connecting RFM69 to pi3

I am trying to follow these instructions to test a RFM69 module added to an Raspberry Pi 3. This is likely rather naive, but I would like to know details on how to connect the pi to the module. The ...
0
votes
2answers
52 views

Connect 2 Pi's for file transfer, but with minimum networking [closed]

I want to connect two Pi's together for the purpose of transferring files, but I want to do it in the most secure method possible. One Pi ("Device 1") will be connected to the internet, and ...
0
votes
1answer
49 views

Remote I/O error 121 with using ADS1115 for long time.sleep()

Hello together, I'm currently trying to read values from a pH-probe via an ADS1115 and the Adafruit_Circuitpython_ADS1x15 library connected to my Raspberry Pi 4. Using the instructions on https://...
0
votes
0answers
31 views

Send logger to I2C interface

How can I pass a Python logger to the i2c interface? I bought a small 0.96" oled display and would like to use it on a headless raspi. Is there some way to just display everything thats raised by ...
0
votes
1answer
35 views

Which interface recommended to access I²C device

I can successfully access a BME680 device through I²C. i2cdetect 1 shows the device and I found out that two APIs seem to be perfectly usable -- I wonder which one I should prefer. I open() the device,...
1
vote
1answer
23 views

How can I get different values when reading the config register of an ADS1115 than I had written just before?

I'm trying to read data from an ADS1115 ADC attached to the I²C link of my Raspi 3B using pigpiod, but get nothing. In order to pin down the error, I took a deep look at the config I write beforehand ...
0
votes
2answers
25 views

What is pigpiod's analogon to the ADS1x1x_i2c_start_read () procedure in ADS1115's driver?

To make an ADS1115 ADC module running on my Raspi 3B, I am trying to use the driver supplied by Elektor Labs. The driver requires the user to develop the low-level part (I²C commands) himself and then ...
1
vote
2answers
33 views

i2c values for UPS-Lite v1.2 report 0 in python, but correctly in cli

I have a Raspberry Pi Zero WH and I'm trying to read the voltage and capacity values in Python from my UPS-Lite v1.2 battery, but they're reporting zeros despite the CLI showing differently. I've read ...
0
votes
1answer
67 views

Ubuntu 20.04 'Focal' cannot find all I2C devices via i2cdetect; it get a few, though

This is puzzling me: I use Ubuntu 20.04 'Focal' on a RPI CM4. When I run i2cdetect -y 1 to list the connected I2C devices on /dev/i2c-1, I get a few addresses back that correspond to the custom PCB I ...
1
vote
1answer
70 views

TCA9548A I2C mux locking up after multiple reads

EDIT [solved]: This turned out to be noise coupling to the nRESET line and causing the MUX to reset. The RPi edges are sharp, and in this case the mux is on the other side of a ribbon cable, so the ...
0
votes
2answers
49 views

What is the most basic way to talk I2C using Python on Raspberry Pi OS?

I can't manage to put together all the fragments of information I have found on this through searches. I have a new 3B and several I2C devices, including a PCA9685. The addresses are shown with ...
1
vote
1answer
46 views

Adafruit bonnet & adafruit-circuitpython-motorkit return “ValueError: No Hardware I2C on (scl,sda)=(3, 2)”

on the line kit = MotorKit(), the error diagnostic is: ValueError: No Hardware I2C on (scl,sda)=(3, 2) quality standards quality standards quality standards quality standards quality standards ...
1
vote
0answers
70 views

Max30102 not visible in i2cdetect

I'm trying to connect Max3012 to Raspberry PI. I actually tested: two Max30102 versions (?): one with 7 holes on one side and another one with 4 holes on one side and 4 holes on another AND, trying ...
1
vote
1answer
129 views

PCA9685 Raspberry pi4B i2c errors

I am trying to get a raspberry pi 4 model B working with across IC2 to a PCA9685 servo motor controller board. I have followed various tutorials e.g: PCA9685 Tutorial Using the libraray : ...
2
votes
0answers
61 views

I2C device detected on arduino and raspberry pi 3 but not on raspberry pi 4

I have a fresh installation of raspbian (Linux raspberrypi 5.4.51-v7l+ #1333 SMP Mon Aug 10 16:51:40 BST 2020 armv7l GNU/Linux) on a raspberry pi 4. I have enabled i2c and nothing else. I have ...
0
votes
0answers
29 views

Issues with an executable (C#) and sudo

first of all I am using Raspberry Pi 4 with Raspbian. I've made an executable in C # (Mono project) that uses the "unosquare/raspberryio" library for GPIO, SPI and I2C communication. If I ...
1
vote
1answer
135 views

Raspberry Pi 4 B I2C is enabled but does not work

I have a Raspberry Pi 4 B and I'm trying to set up in I2C Connection with an MCP23018-E/SP I/O-Port-Expander via GPIO02 and GPIO03. I have enabled I2c on the Raspi by: adding: dtparam=i2c1=on ...
0
votes
1answer
17 views

Deinitialize GPIO access on I2C channels

On webpage http://abyz.me.uk/rpi/pigpio/examples.html you can find Tiny GPIO Access that defines minimal set of C functions needed to control the GPIO without needing root privileges (it uses /dev/...
1
vote
0answers
62 views

I2C instability between a pair of Raspberry Pi

I have a connected a Raspberry Pi Zero (1.3, no W, running Raspbian 10 (buster) lite) as an I2C slave (clock:GPIO18,data:GPIO19) to a Raspberry Pi 3b (running Ubuntu 20.04.1) as an I2C master(clock:...
1
vote
1answer
40 views

Does enabling I2C disable the use of GPIO pins 2 and 3 (physical 3 & 5)?

I'm confused. I typically grab whatever GPIO pin is handiest when wiring components -- which is often GPIO 2 & 3. If I enable I2C but don't use an I2C component, can I still use GPIO 2 & 3? ...
1
vote
1answer
30 views

How to change bus number of NFC reader on pi [closed]

I am trying to build a NFC reader. I bought a PN532 and connected it to the pi with the diagram shown below. I ran the code below and got AssertionError:"Bus number must be 1 or 0". I then ...
0
votes
0answers
35 views

Is there any way to communicate with the I2C with Java, without Pi4J?

With Pi4J, I can communicate with I2C with Java. But is there any way I can communicate with I2C with Java, without Pi4J. Just by using Linux internal...shell-ish...command? I want to read and write ...
1
vote
1answer
36 views

Bitbang I²C to multiple slaves with same address

I want to use I²C to read several identical sensors with hardcoded addresses. Reading sequential is not an option. Neither is a multiplexer. Both for reading speed reasons. Is there any issue with bit-...
4
votes
2answers
87 views

Changing the baud rate of additional I2C busses

for some project I need 5 sensors. Their I2C address is fixed and can be changed to another fixed value by soldering. So without an I2C multiplexer (which I don't have), I need at least 3 I2C busses. ...
1
vote
0answers
68 views

adafruit_drv2605 AttributeError: object has no attribute 'try_lock'

I am using a Texas Instruments DRV2605 to drive some haptic motors. I am using the Adafruit library here to communicate with the DRV through Python. I need to set some bit registers of the chip but ...
2
votes
1answer
764 views

Enabling of I2C-0 via “dtparam=i2c_vc=on” on Pi 3B+ causes “I2C-10” & “I2C-11” to appear and disables GPIO 10 GPIO 11

For reference: I am using the latest release Pi OS Lite, Aug 2020 version. I am developing an application using Pi4J. I am referring to pins via this Pinout: https://pi4j.com/1.2/pins/model-3b-plus-...
2
votes
0answers
25 views

How do i properly daisy chain two motor drivers that both provide power to the Pi zero-w? [closed]

I am using two waveshare dual motor drivers to drive a total of 3 motors with room for another one. The HATs can be placed on top of each other as they have adjustable i2c addresses. I am planning on ...
0
votes
1answer
192 views

Cannot recognise i2c device

I appreciate this may be a duplicate question, but I have spent days working through answers to other questions and none work for me. Most similar questions predate the debian buster release, which I ...
2
votes
1answer
130 views

BME280 Sensor Not Showing Up in i2cdetect

I have two components (one amplifier module and one BME280 from Adafruit) connected in parallel to SDA/SCL GPIOs on my Pi 4. However, when I run i2cdetect -y 1, only the address for the amplifier ...
1
vote
0answers
74 views

i2c /IIC 20x04 lcd not displaying text

I have an 20x4 LCD and an i2c /IIC interface. If connected to the raspberry pi zero w, it looks the following: And from the back it looks like this: Interestingly, the power led of the icc/i2c ...
1
vote
0answers
29 views

Can four UARTs plus either an SPI or i2c connection be used at the same time on a Pi 4?

Since using 5 UARTs at the same time on a Pi 4 is apparently not possible, is there any reason why 4 UARTs plus either an i2c or SPI connection at the same time (one or the other) would not work?
2
votes
2answers
80 views

RPi's I2C bus maximum device loading/fan out?

I have a RPi4 and I have been using the I2C bus with 4 MCP23017 gpio expanders and this works fine. My intention is to use 8 MCPMCP23017 devices, as they have only 3 bit addressing, this is the ...
1
vote
0answers
113 views

Most compatible 32-64 channel multiplexer for raspberry pi [closed]

I have been working on one sensor testing project. In this project, I have to detect or sense more than 60 sensors at a time with raspberry. I am looking for the most compatible 32 channel multiplexer ...
1
vote
1answer
76 views

Can I stack multiple different HATs on RaspberryPi4?

I want to use multiple different HATs on the same Raspberry Pi. These are the boards I want to use: https://www.sparkfun.com/products/16328 https://www.seeedstudio.com/ReSpeaker-4-Mic-Array-for-...

1
2 3 4 5
14