Skip to main content
edited body
Source Link
Ghanima
  • 15.9k
  • 16
  • 63
  • 120

I'm working on a project where I need to use GPIO to toggle pins high and low as well as gather sensor data from an I2C peripheral. I have each component working separately, GPIO using wiringPi and I2C using open() and ioctl(). Separately they work great. When I run them together, the I2C bus gets in a state where i2cdetect shows all possible address values, and I can't communicate with the I2C device again until I reboot. Has anyone seen this before or does anyone know what I can do to fix this? I've tried only using wiringPi as well, and it breaks using both GPIO and I2cI2C at the same time.

I'm working on a project where I need to use GPIO to toggle pins high and low as well as gather sensor data from an I2C peripheral. I have each component working separately, GPIO using wiringPi and I2C using open() and ioctl(). Separately they work great. When I run them together, the I2C bus gets in a state where i2cdetect shows all possible address values, and I can't communicate with the I2C device again until I reboot. Has anyone seen this before or does anyone know what I can do to fix this? I've tried only using wiringPi as well, and it breaks using both GPIO and I2c at the same time.

I'm working on a project where I need to use GPIO to toggle pins high and low as well as gather sensor data from an I2C peripheral. I have each component working separately, GPIO using wiringPi and I2C using open() and ioctl(). Separately they work great. When I run them together, the I2C bus gets in a state where i2cdetect shows all possible address values, and I can't communicate with the I2C device again until I reboot. Has anyone seen this before or does anyone know what I can do to fix this? I've tried only using wiringPi as well, and it breaks using both GPIO and I2C at the same time.

deleted 12 characters in body; edited title
Source Link
goldilocks
  • 60.1k
  • 17
  • 115
  • 230

Raspberry Pi - how to use Problem using I2C with ioctl() and GPIO at the same time?GPIOs with wiringPi simultaneously

I'm working on a project where I need to use GPIO to toggle pins high and low as well as gather sensor data from an I2C peripheral. I have each component working separately, GPIO using wiringPi and I2C using open(...,...)open() and ioctl(...,...,...)ioctl(). Separately they work great. When I run them together, the I2C bus gets in a state where i2cdetecti2cdetect shows all possible address values, and I can't communicate with the I2C device again until I reboot. Has anyone seen this before or does anyone know what I can do to fix this? I've tried only using wiringPi as well, and it breaks using both GPIO and I2c at the same time.

Raspberry Pi - how to use I2C and GPIO at the same time?

I'm working on a project where I need to use GPIO to toggle pins high and low as well as gather sensor data from an I2C peripheral. I have each component working separately, GPIO using wiringPi and I2C using open(...,...) and ioctl(...,...,...). Separately they work great. When I run them together, the I2C bus gets in a state where i2cdetect shows all possible address values, and I can't communicate with the I2C device again until I reboot. Has anyone seen this before or does anyone know what I can do to fix this? I've tried only using wiringPi as well, and it breaks using both GPIO and I2c at the same time.

Problem using I2C with ioctl() and GPIOs with wiringPi simultaneously

I'm working on a project where I need to use GPIO to toggle pins high and low as well as gather sensor data from an I2C peripheral. I have each component working separately, GPIO using wiringPi and I2C using open() and ioctl(). Separately they work great. When I run them together, the I2C bus gets in a state where i2cdetect shows all possible address values, and I can't communicate with the I2C device again until I reboot. Has anyone seen this before or does anyone know what I can do to fix this? I've tried only using wiringPi as well, and it breaks using both GPIO and I2c at the same time.

Source Link
Davido
  • 131
  • 1
  • 5

Raspberry Pi - how to use I2C and GPIO at the same time?

I'm working on a project where I need to use GPIO to toggle pins high and low as well as gather sensor data from an I2C peripheral. I have each component working separately, GPIO using wiringPi and I2C using open(...,...) and ioctl(...,...,...). Separately they work great. When I run them together, the I2C bus gets in a state where i2cdetect shows all possible address values, and I can't communicate with the I2C device again until I reboot. Has anyone seen this before or does anyone know what I can do to fix this? I've tried only using wiringPi as well, and it breaks using both GPIO and I2c at the same time.