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
1 answer
405 views

Cannot write() i2c-dev after using libgpiod

Question: Is anyone able to advise on how to interleave operation of the RPi I2C hardware with general GPIO using libgpiod? Summary: I'm experiencing some unexpected behaviour with RPi4, gpiod and /...
Colin Hall's user avatar
1 vote
1 answer
807 views

Cannot set up I2C running on Ubuntu (transfer timed out)

I have a Raspberry Pi 4 with 8 GB RAM running Ubuntu 22.04 LTS. It is packed in an Argon One case. I'm trying to use a Waveshare BME280 Temperature/Pressure sensor that I already used before on a ...
Droid's user avatar
  • 143
0 votes
1 answer
390 views

I2C communication on Raspberry Pi 3B using smbus2

I'm trying to connect my energy measurement IC with Raspberry Pi 3B using the I2C protocol. I'm using sudo i2cdetect -y 1 to detect the connected devices and it is correctly showing the address(7-bits)...
Satya Prakash Singh's user avatar
0 votes
1 answer
127 views

HAT EEPROM DTB and RTC on I2C0

I'm having a problem creating a DTB for a HAT auto-configuration. I have a DS3231 RTC module attached on I2C0 (GPIO0 and GPIO1). It incorporates an AT24C32 EEPROM at address 0x50. To get it working, ...
Bryan Horna's user avatar
1 vote
1 answer
155 views

Using I2C/SMBus with Sense HAT and Output stays the same

I have a problem while reading the my lsm9ds1 acceleratorsensor registers . It always displays the same values. My setup is a raspberry pi 4 and the sense HAT which has this sensor integrated. I dont ...
Xenoshell's user avatar
0 votes
1 answer
77 views

Increase I2C-Speed with Hyperpixel 4.0 mounted

i hava a Hyperpixel 4.0 mounted on my Raspberry Pi 3A+. Because of the Pin overlay for the Hyperpixel 4.0, the I2C bus is not Standard and is created on the Physical Pins 19 and 23 on my Raspberry. (I ...
Manuel Neff's user avatar
0 votes
0 answers
132 views

I2C sending data from arduino to python gives gibberish data

It's my first time working with SMBUS and I've read the docs of arduino and the Wire object. It states that I can send a string. To quote the docs: string: a string to send as a series of bytes. https:...
I try so hard but I cry harder's user avatar
0 votes
1 answer
117 views

i2c baudrate falling back to 160 kHz

I have set up i2c between a Raspberry Pi 4 and an Arduino with a level shifter. I have set the i2c baudrate in /boot/config.txt using dtparam=i2c_arm_baudrate=400000 But when I look at the i2c clock ...
ryanGT's user avatar
  • 19
0 votes
0 answers
215 views

code not detecting ads7830 even though i2cdetect shows the address

I am trying to run Motor.py code from Freenove. I can see that my ads7830 IC is up and running i@raspberrypi:~/Freenove_Kit/Code/Python_Code/13.1.1_Motor $ i2cdetect -y 1 0 1 2 3 4 5 6 7 ...
Manu Chadha's user avatar
0 votes
1 answer
468 views

RTC on Raspberry Pi Bullseye shows correct time but is not registered at boot time

I am testing different RTC modules on RPi 4 running on Bullseye. On testing DS3231, I add the module to /boot/config.txt dtoverlay=i2c-rtc,ds3231 I can read the clock from it wihtout a problem. But ...
forumflaneur's user avatar
0 votes
1 answer
44 views

Raspberry PI is not booting [closed]

I tried to follow this tutorial https://www.laub-home.de/wiki/Raspberry_Pi_multiple_I2C_bus to connect a second i2C device on GPIO-pin 17 and 27. I had to reboot the pi after editing the /boot/config....
Marie03's user avatar
0 votes
0 answers
142 views

I2C OTHER PINS IN RASPERRY PI FOR I2C LCD

I am planning to put a power button on my raspberry pi 3b+ which uses the PIN 5 in order for me to shut it down and turn it on again when I wanted to. However, pin 5 is I2C CLOCK which is used for the ...
ambangeles's user avatar
5 votes
4 answers
2k views

Raspberry Pi DPI only works over short distances. Why?

I would like to use the Raspberry Pi 3B+ to operate the rectangular HyperPixel 4.0 touchscreen from Pimoroni. However, I don’t want to plug the touchscreen directly onto the Raspberry Pi, but instead ...
manintree's user avatar
0 votes
0 answers
70 views

Raspberry Pi does not register Servo on the I2C bus when connected via SparkFun auto pHat board

I just want to move the Servo motor through the I2C pins on spark fun's auto pHat board. I've been using the pi_servo_hat import and have been setting the motor through the initializer like this: test ...
Henry Keskitalo's user avatar
1 vote
2 answers
1k views

Changing i2c ports and busio.py

thanks in advance for any help, this is quite the sticking point for me unfortunately, Basically I'm coding a program in python for my raspberry pi 3 to read values from two voltmeters, through an ADC,...
Chaos_Spear's user avatar
0 votes
1 answer
93 views

I2C slave fifo sync issue

For testing purposes of my firmware of an ESP32 I would like to simulate the sensor it's communicating with through I2C. Therefore I'm trying to setup my Raspberry Pi 3B+ as an I2C Slave So it could ...
Ron's user avatar
  • 1
1 vote
0 answers
134 views

Why does my Raspberry unable to detect fan through i2c?

I recently bought a Argon One V2 M2 house for my Raspberry Pi to speed things up and have it cool, but the issue is i2c shows all addresses. After some research figured it means either a circuit issue ...
Marcell's user avatar
  • 111
-1 votes
1 answer
292 views

Turn LED off and on using I2C, SPI or UART GPIO Pin

I have project requiring several simple LEDs and buttons, MORE that the number of ‘simple’ GPIO pins. Can I turn the LED TOTALLY OFF and on using a IC2, SPI, or UART pin? Can those pins be programed ...
LibertyHeights's user avatar
1 vote
0 answers
291 views

Can `i2c-mux` be applied to `i2c-0`?

I have a Pi with i2c-0 working fine and seeing addresses. I'd like to use a I2C multiplexer on i2c-0. Using a I2C multiplexer on i2c-1 is very easy by having this in /boot/config.txt... dtparam=...
papakpmartin's user avatar
1 vote
1 answer
173 views

i2c address not detected while trying to use Adafruit VL53L0X Time of Flight Distance Sensor

I have a Raspberry Pi 4. I am using the Adafruit VL53L0X Time of Flight Distance Sensor. I have connected a T-Cobbler to a breadboard and attached that to my Raspberry Pi. The sensor is wired ...
Via Iseppon's user avatar
0 votes
1 answer
189 views

Using I2C with MMC34160PJ magnetometer

I'm trying to read data from the MMC34160PJ magnetometer using the Raspberry Pi 4. However, I'm pretty stuck as to how I can do it as there's seemingly no example code or library for it. I have been ...
Frostbite's user avatar
-1 votes
1 answer
941 views

NameError: name 'I2C' is not defined (Raspberry Pi 4 Model B - Ubuntu 18.04 - adafruit_lidarlite)

I am getting an issue while trying to use the library "adafruit_circuitpython_lidarlite". Below are the details of my environment: 1- Distributor ID: Ubuntu (ubuntu-18.04.5-preinstalled-...
Khaksar's user avatar
  • 99
0 votes
0 answers
69 views

R-Pi ZeroW with Adafruit I2S DAC bonnet - reassign GPIO pins for I2C?

Couldn't find this covered elsewhere. Grateful for any pointers or an example please... Is it possible to use (say) dtoverlay to reroute three GPIO input signals to use three spare hardware pins ? ...
gbe's user avatar
  • 1
0 votes
1 answer
331 views

I'm running raspbian on my pi 3 model b and trying to get the i2c TCS3472 colour sensor working

I am trying to get the TCS3472 color sensor to work with RaspberryPi, I have setup I2C succesfully and can detect the sensor with i2cdetect -y 1 which outputs 0 1 2 3 4 5 6 7 8 9 a b c ...
peterretief's user avatar
1 vote
0 answers
86 views

Is it possible to connect multiple USB devices to the I2C bus on RPI?

I want to control lots of USB devices from a single Raspberry Pi. So far I have only tested with RPI4 and I could only connect about 5 devices concurrently. The limitation is caused first by the fact ...
Iain Dooley's user avatar
0 votes
1 answer
44 views

Why I2C CLK vmin is high?

I have a circuit that uses RPI-Zero and some I2C devices are connected [BARO, PCA9685, ADS1115] SDA signal looks ok but CLK signal looks weird. I can read data and control the sensors/boards. Still I ...
M.Hefny's user avatar
  • 111
0 votes
3 answers
304 views

Additional i2c_gpio is not detected on Ubuntu Server 20.04 / RPi Zero 2 W / A+

I'm trying to enable the second (GPIO-based i2c) on RPi Zero 2 W, Ubuntu server 20.04 to connect the following sensor. Note that the primary i2c pins are physically occupied as RPi is used as a hat ...
Serhii Korol's user avatar
1 vote
0 answers
419 views

Transmit a string from one Pico to another Pico via i2c using Micropython

I want to transmit a string from one pico to another pico via I2C protocol , but I some how cant find a way to do it , my I2C scan function doesnt seem to detect another pico at all, is there a way to ...
Mohith Tallam's user avatar
1 vote
0 answers
47 views

Can i use a I2C PWM expander as a Digital output module?

i want to use a "IS31FL3731" I2C PWM expander to dim my LED Strip. This expander does have a lot of PWM outputs and i also need a lot of Digital outputs. So is it possible to use a few PWM ...
manintree's user avatar
1 vote
1 answer
60 views

I2C Interfacing with HIH6130

I'm trying to read data from sparkfun's HIH6130 Breakout for measuring humidity and temp data. Following this instructable (though without the i2c shield for the pi), the provided python code just ...
Cameron Fuller's user avatar
0 votes
0 answers
392 views

i2c not detecting on Raspberry Pi 4 Model B Rev 1.5

Just purchased a new board - Raspberry Pi 4 Model B Rev 1.5 - rev b03115. Trying to use i2c to interface with Adafruit PiOLED - 128x32 Monochrome OLED Add-on for Raspberry Pi Adafruit SCD-40 - True ...
Charlie X.'s user avatar
1 vote
0 answers
2k views

Errno 121 Remote I/O error happening too often on Raspberry Pi 4 [closed]

I'm using a Raspberry Pi 4 - Rev1.4 together with a tc9548 multiplexer and 2 additional I2C sensors behind each multiplexer channel. OS version: AME="Raspbian GNU/Linux" VERSION_ID="11&...
Marco Bobinger's user avatar
2 votes
0 answers
2k views

Raspberry Pi 4 - I2C scan extremely slow and not working

I am using a Raspberry Pi4 - 4GB (exact model: Raspberry Pi 4 Model B Rev 1.4) with following configuration: AME="Raspbian GNU/Linux" VERSION_ID="11" VERSION="11 (bullseye)&...
Marco Bobinger's user avatar
1 vote
0 answers
195 views

How do I configure the Raspberry Pi Zero with appropriate parameters to run the TI DLP2000EVM DMD?

I've followed the best tutorials online but to no avail. In particular, one thread on TI, to which I cannot post or ask questions, and one written for the raspberry pi 3B+ which references the ...
Randall Meyer's user avatar
0 votes
1 answer
233 views

I think my MLX90640 thermal camera is bad, can anyone confirm?

I recently took delivery of a pimoroni mlx90640 thermal camera. I followed the tutorial https://everythingsmarthome.co.uk/howto/building-a-raspberry-pi-thermal-imaging-camera-mlx90640-guide/ And it ...
Taco Cat's user avatar
0 votes
0 answers
212 views

Weird i2cdetect output

I want to connect the Geekworm X728 to my PI4. It is a UPS for the PI4 that allows to read AC state and battery state and power down / up the pi when power gets lost / comes back. As addition it has ...
Silberling's user avatar
0 votes
1 answer
425 views

Software-Based I2C Cannot Control Clock Speed

I'm using a Raspberry Pi 4B to read pressure sensors via I2C, with Python 3.7.3 and the SMBus library. I ran into the Broadcom clock-stretching bug, so I switched to software-based I2C (brief ...
curiousInCali's user avatar
0 votes
2 answers
484 views

Short pin 5 for boot, and also use I2C bus on pin 5

I'm building a little audio streamer box, using a Rpi4. This box has a few buttons, such as play/pause, next track, previous track, etc, as well as a power button that I want to use for turning it on ...
starfly's user avatar
0 votes
0 answers
131 views

DFRobot_RGB1602 library does not work properly with DFRobot DFR0554 and Raspberry Pi Pico

Problem summary: set_cursor(0,0) brings text to (2,1) and set_cursor(0,1) brings text to (3,1), texts goes to imaginary 3rd line before 2nd line as if a 20x4 display. I modified the Python code to ...
Syed Omar Noor's user avatar
0 votes
0 answers
30 views

Can i Transfer Data from one raspberry pi to another over i2c? [duplicate]

Hi, i have following Problem: I have A raspberry Pi 3B+ with a Touchscreen, which uses every Single Pin on the 40Pin GPIO header. The only thing i have is a i2c breakout on my Touchscreen. But i have ...
manintree's user avatar
1 vote
0 answers
496 views

Problems Installing ssd1306 library on rpI pICO

Using Manage Packages in Thonny I had successfully installed the ssd1306 library onto my Pico and had the OLED working successfully. When showing a student how to download the library I got the ...
Fred's user avatar
  • 11
0 votes
2 answers
119 views

How can i set up my owm serial communication between two Raspberrys?

i have following Problem: I have A raspberry Pi 3B+ with a Touchscreen, which uses every Single Pin on the 40Pin GPIO header. The only thing i have is a i2c breakout on my Touchscreen. But i have the ...
manintree's user avatar
1 vote
1 answer
351 views

I2C detectable but stopped working - using RasPi 3B, RaspbianOS (and MatLab/Simulink)

Dear community, I'm almost at my wit's end and would be so happy to receive help. It would be a great Christmas present to me if some of you take the time to read and provide inquiry, knowledge or ...
Nep's user avatar
  • 11
0 votes
0 answers
511 views

Difference between vcgencmd get_camera and raspi-config nonint get_camera?

I'm trying to figure out why everytime I poweroff and back on my device I need to manually enable the camera so I ran these 2 functions to get more insight on the situation. For vcgencmd get_camera im ...
ghostiek's user avatar
1 vote
0 answers
220 views

What is the minimum I2C baudrate and pullup resistance for the Raspberry PI 4

The baudrate for the RPI can definitely be set in the range of 100-400kHz by editing the /boot/config.txt: dtparam=i2c_arm=on dtparam=i2c=on dtparam=i2c_baudrate=10000 Following this tutorial. But I ...
Marco Bobinger's user avatar
2 votes
2 answers
3k views

How can Rpi4B use python to talk to the I2C DHT20 / SHT20 temperature and humidity sensor?

I'm trying to use a Raspberry Pi 4 to read an I2C temperature and humidity sensor. The part I'm using is a module from Grove based on the DHT20 sensor. Here's a link to a page about the module: https:/...
thatguyfromcanada's user avatar
0 votes
0 answers
194 views

Raspberry Pi Zero W with SparkFun Pulse Oximeter and Heart Rate Monitor (MAX30101 and MAX32664 )

I am trying to read data by connecting Raspberry Pi Zero W with SparkFun Pulse Oximeter and Heart Rate Monitor (MAX30101 and MAX32664). SparkFun has provided the code for Arduino Library Any ...
user140953's user avatar
0 votes
0 answers
58 views

MPU6050 on I2C is intermittently connected

I have several MPU6050 that will sometime show up in 'sudo i2cdetect -y 1' as 68. When it is there my python code that reads them works. Then randomly the code will fail to see the sensor, and when ...
Dan Hendrickson's user avatar
1 vote
0 answers
50 views

I2C Not Being Detected After Running Code For HMC6343

Found a code for finding heading for HMC6343 compass on the raspberry pi 3 Model B. This is a freshly installed raspbian, I connected the device and checked with i2c tools that it's being detected and ...
krusion's user avatar
  • 11
2 votes
2 answers
402 views

Removing noise from I2C inputs

Removing noise from I2C inputs. I have 32 input switches to monitor so I’m using multiple MCP IC‘s communicating over I2C. I’m getting noise when nearby solenoids are activated. There is no impact on ...
Robert Salamon's user avatar

1
2
3 4 5
16