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
0 answers
30 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 ...
user avatar
0 votes
1 answer
27 views

Raspberry PI is not booting

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....
user avatar
0 votes
0 answers
27 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 ...
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 ...
user avatar
0 votes
0 answers
21 views

Raspberry Pi 3+ throttled when connected to atlas sensors and LCD

I want to make a hydroponic nutrient monitoring system, so I bought atlas scientific sensors for my project. There are 3 types of atlas sensors and LCD 20x04 that are connected to my raspberry pi 3B+. ...
user avatar
0 votes
0 answers
18 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 ...
user avatar
0 votes
2 answers
85 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,...
user avatar
0 votes
1 answer
27 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 ...
user avatar
  • 1
1 vote
0 answers
43 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 ...
user avatar
  • 111
-1 votes
1 answer
53 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 ...
user avatar
1 vote
0 answers
28 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=...
user avatar
1 vote
1 answer
59 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 ...
user avatar
0 votes
0 answers
23 views

Can I2C speed of raspberry pi 4 be set on the fly in python

Can I2C speed of raspberry pi 4 be set on the fly in python? The standard way of doing it would be sudo nano /boot/config.txt and add the corresponding line. However, I would prefer a faster solution.
user avatar
0 votes
1 answer
53 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 ...
user avatar
0 votes
1 answer
228 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-...
user avatar
  • 101
0 votes
0 answers
36 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 ? ...
user avatar
  • 1
1 vote
1 answer
26 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 ...
user avatar
1 vote
0 answers
57 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 ...
user avatar
0 votes
1 answer
35 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 ...
user avatar
  • 111
0 votes
2 answers
70 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 ...
user avatar
0 votes
0 answers
50 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 ...
user avatar
1 vote
0 answers
23 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 ...
user avatar
1 vote
1 answer
28 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 ...
user avatar
0 votes
0 answers
221 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 ...
user avatar
1 vote
0 answers
38 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&...
user avatar
0 votes
0 answers
315 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)&...
user avatar
0 votes
0 answers
31 views

Raspberry as an I2C MASTER [duplicate]

This is the link I am using to make Raspberry PI as an I2C slave, I see it uses the bscXfer which is OS timing independent. This is cool. Raspberry as an I2C SLAVE Similarly, I want to make raspberry ...
user avatar
1 vote
0 answers
31 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 ...
user avatar
0 votes
1 answer
62 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 ...
user avatar
0 votes
0 answers
73 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 ...
user avatar
1 vote
1 answer
80 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 ...
user avatar
1 vote
2 answers
69 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 ...
user avatar
  • 13
0 votes
0 answers
31 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 ...
user avatar
0 votes
0 answers
29 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 ...
user avatar
1 vote
0 answers
106 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 ...
user avatar
  • 11
0 votes
1 answer
82 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 ...
user avatar
1 vote
1 answer
110 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 ...
user avatar
  • 11
0 votes
0 answers
250 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 ...
user avatar
0 votes
0 answers
14 views

Ivport-v2 not detecting camera on restart

I followed the guide to setting up ivport-v2 on my RPi and running sudo python2 test_ivport.py fine, if I also run sudo reboot it still works. When I run vcgencmd get_camera I get supported=1 ...
user avatar
1 vote
0 answers
64 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 ...
user avatar
1 vote
1 answer
689 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:/...
user avatar
0 votes
0 answers
85 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 ...
user avatar
0 votes
0 answers
26 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 ...
user avatar
1 vote
0 answers
28 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 ...
user avatar
  • 11
2 votes
2 answers
127 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 ...
user avatar
0 votes
1 answer
48 views

Why is Raspberry Pi smbus2 message length inconsistent?

Question: How can I stream out the whole buffer as a continuous i2c transaction, instead of it being broken up like this? Background I am driving an SSD1306 OLED using SMbus2. The display takes a 1024 ...
user avatar
  • 26
0 votes
0 answers
54 views

I cannot save data sent from Arduino Uno to Raspberry Pi

I am trying to send sensor reading from Arduino Uno to raspberry pi and I want to save this incoming sensor reading to SQLite which I downloaded to Raspberry pi. I used lm35 sensor on Arduino Uno and ...
user avatar
2 votes
3 answers
270 views

How to test for a device at an I2C address

I use i2c-detect to find connected i2c devices on my Raspberry. For example: Now I want to use that information to perform some tasks, for example: if “Address 76 is connected”: DO STUFF For this, ...
user avatar
  • 23
0 votes
2 answers
150 views

How to determine current i2c baudrate?

To set the I2C bus 1 baud rate by adding the following command to /boot/config.txt dtparam=i2c_arm_baudrate=x Where x is the desired baud rate. But I've no such value, and how to determine current ...
user avatar
0 votes
0 answers
68 views

i2cdetect shows random addresses for VL53L0 device

I plugged the VL53L0 distance sensor to RPi 3B+ onto the I2C pins. Specifically, red to 3v3 Power, white to SDA, blue to SDC, and black to the ground (I left yellow and green unplugged). Now, ...
user avatar

1
2 3 4 5
15