Skip to main content

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.

0 votes
0 answers
26 views

PWM nozzle with Adafruit TIme of FLight Sensor - Nozzle turns fully on after a while

I'm relatively new to this so apologies in advance. I have a raspberry pi4 with a Bete Ehpi pulse width modulatin nozzle and a Adafruit-Vl53l4cd time of flight sensor. Code below is set to control the ...
Burcin Nalinci's user avatar
1 vote
1 answer
59 views

Control multiple push buttons on a raspberry pi using an mcp23017 over C++

Having followed various tutorials on the web (i.e. 1,2), I have made the following connections: To enhance clarity, I post another picture depicting the connections on the mpc23017 using a cropped ...
cestpasmoi's user avatar
-1 votes
0 answers
21 views

Software I2C - Is it normal to read more than once?

I am using smbus2 to perform write read operation. Occasionally, I can see the write read read as shown below. Even though first read is NACK, is it an expected behavior of smbus2 or software i2c that ...
Sam's user avatar
  • 131
1 vote
0 answers
29 views

When trying to unload i2c-bcm2835 module dynamically in raspberry pi I'm always getting the "rmmod: ERROR: Module i2c_bcm2835 is in use"

I made some changes in the i2c_bcm2835.c file and now I want to dynamically load this module, i2c-bcm2835.ko which I got from below, obj-m += i2c-bcm2835.o all: make -C /lib/modules/$(shell uname -...
mobu's user avatar
  • 11
0 votes
0 answers
25 views

I2C Sensor Returning 0's on Pico but works Perfectly on RPi 3

I'm at my wits end over an ENS160 sensor I have working perfectly with a Raspberry Pi 3 (running full Linux OS and Python), but refuses to return any data when interfacing through a Raspberry Pi Pico ...
TimHanewich's user avatar
0 votes
1 answer
49 views

Troubleshooting Temp/RH Sensor with RPi

I am working off of a Raspberry Pi 4B. I have recently connected this temperature/RH sensor, but I am having trouble to with the python code. This is the datasheet for the sensor (Pg. 11-18 are most ...
Jack's user avatar
  • 1
0 votes
1 answer
95 views

How to get temperature and humidity data from a Sensiron SHT3X

The more I read, the more confused I become... I have a SHT30 Temperature And Humidity Sensor. I bought it from Adafroot some time ago, but never found a real use for it. Now that Raspberry Pi has ...
Seamus's user avatar
  • 22.4k
0 votes
1 answer
21 views

Receiving String Data From Secondary Arduino on Main Raspberry PI I2C

I am working on a project where I'm trying to implement 14 RDM630 RFID sensors that will send any recorded RFID tags to the Main RPi. Unfortunately, these sensors use RS232 communication, and it seems ...
user3670842's user avatar
0 votes
0 answers
24 views

CQRobot Ocean: MCP23017 IO Expansion Board - "No pull up found"

I've got an IO Expansion board made by CQRobot that I'm trying to get working, but I can't get i2c to initialize. Here's the board: http://www.cqrobot.wiki/index.php/MCP23017_IO_Expansion_Board_SKU:...
Psyferre's user avatar
0 votes
1 answer
56 views

Crazy acceleration with EVAL-ADXL373Z

I am extremely new to both Raspberry Pi and working with MicroPython (and i2c protocol). When trying to read data from the EVAL-ADXL373 using Raspberry Pi Pico W I get values ranging from 0 m/s^2 to ...
Emma's user avatar
  • 1
0 votes
2 answers
40 views

Pico W I2C timeout occurs when using multiple sensors on a single bus

I am using to VL53 lidar sensor chips on a single I2C bus. This specific chip does not have an option to change I2C address through hardware and so I must do it through software. This works and I am ...
Joe Moore's user avatar
  • 191
0 votes
0 answers
57 views

How to enable Raspberry Pico's I2C0_IRQ and set a callback function using MicroPython?

I need to setup a Raspberry Pico as a I2C Slave device. I know how to do this, but I don't know how to eneble the I2C IRQ and set a callback function on it so I can be notified of the I2C events ...
Marus Gradinaru's user avatar
0 votes
0 answers
25 views

2nd MUX PCA9548A not showing up

Trying to add a 2nd MUX on bus 1 of my Room. I added the following to the config.txt, essentially duplicating my original MUX with a second one, changing the address: dtoverlay=i2c-mux,pca9548a,addr=...
TriLife's user avatar
1 vote
0 answers
40 views

MCP23017 connected to raspberry pi not showing up until I remove and reconnect SDA cable

I am testing an MCP23017 I2C port extender connected to a Raspberry Pi Zero 2w. I can get i2cdetect to detect the extender only after I remove and reconnect the cable going to SDA (GPIO2). I have to ...
joe_coolish's user avatar
0 votes
1 answer
128 views

I am looking for clarity on how the libgpiod works with higher functions (esp I2C)

I am working on a RPi 5 running Bookworm with C. Adding the line dtparam i2c_arm=on to the config.txt enables I2C on GP Pins 2/3 accessed through /dev/i2c_1. Reboot to activate. This works fine on ...
Nic A's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
55