Questions tagged [i2c]
I2C is a two-wire serial bus. It is used to interface with low-speed peripherals in embedded systems and computer motherboards.
1,805
questions
-1
votes
1
answer
54
views
How to Convert Images for i2c oled in C# [closed]
I have a C# WPF App and I want to add the function to select an icon or png and convert it, so it can be send as a string to an arduino. There I want to display the Image on a i2c oled Screen. There ...
1
vote
0
answers
37
views
How to change the I2C configuration in ARM Trusted Firmware?
I have an STM32MP processor that needs ARM Trusted Firmware for communicating with the PMIC. But when I flashing the STM32MP processor with the firmware, I get an error that the I2C device is not ...
2
votes
1
answer
57
views
struct i2c_driver initialization of ‘int (*)(struct i2c_client *)’ from incompatible pointer type Kernel Device driver
I am trying to write a driver for my i2с device. But I got a dead end problem, which I could not solve with the help of Google for several days.
In general, I simplified the code to a minimum to ...
0
votes
1
answer
32
views
Trouble sending two bytes from a pi 5 master to a slave arduino mega (using smbus2 library)
I've tried using the write_byte function in the smbus2 library and I've been successful using that from the Raspberry Pi 5 to turn an LED connected to the Arduino Mega on and off.
My project involves ...
0
votes
0
answers
30
views
Can't make servomotors move with a Jetson card
I have a Arducam IMX477 12MP PTZ Camera that I am trying to control with my Jetson AGX Orin developer kit. For now, I am focused on controlling the servomotors -- I will take care of the video ...
0
votes
0
answers
43
views
Breaking Loops in Python
I have a long, I2C python program for a I2C MUX Board that I am making. I have 4 MUXs, in my program I am using a while loop for each one. Within the while loops, I have this structure (to make it ...
0
votes
0
answers
26
views
Is there an `udevadm` like tool for managing user ownership and permission flags in `/sys/`? [closed]
I'm working on a Raspberry Pi that has an I2C EEPROM hanging off an I2C mux. I can see the device from user land in a shell by navigating to:
-rw------- 1 root root 128K Jul 18 15:31 /sys/class/i2c-...
0
votes
0
answers
20
views
Hello, I'm trying to communicate between 2 Raspberry pi pico boards, one master and one slave
master code:
#The master tries to take the temperature and humidity read with the help of a dht11 sensor from the slave
#The master tries to retrieve the temperature and humidity read with a dht11 ...
1
vote
0
answers
34
views
Struggling To Understand How I2C Slave Address In RX Buffer Is Handled
I have a legacy project based on an Infineon/Cypress PSoC4 micro. I am attempting to port it to a new Infineon/Cypress part (PSoC4 MAX). The project is an I2C slave that communicates with an I2C ...
0
votes
0
answers
30
views
Cannot find the way to extract raw data of GT911 touchscreen
Is there a method to extract raw data from a touch screen using the GT911, regardless of the type of Arduino board used? (using I2C)
By raw data, I don't mean the simply recognized touch coordinates, ...
0
votes
0
answers
27
views
Implementing I2C_TIMEOUT to prevent blocking
I’m working on getting I2C_TIMEOUT to work, but am struggling. I can consistently get the errno of ETIMEDOUT to trigger with a faulty I2C device of mine, but I want to shorten that timeout to 10-20 ms....
0
votes
0
answers
37
views
ESP32-s3 master i2c guru meditation error
Basically, I'm using two ESP32-s3 to communicate with each other through i2c. For the slave ESP32, I have no problem with using the same method as how the master ESP32 is trying to read. I get the ...
-1
votes
1
answer
80
views
Why does ICM20948 Waveshare IMU Sensor send inaccurate data?
I have Raspberry Pi 4 with Bookworm on it, and Waveshare 10-Dof IMU Sensor connected via i2c. I am sure I connected it right. I got the test application (wget https://files.waveshare.com/upload/c/c1/...
0
votes
0
answers
47
views
I2C Bus Emulation on STM32 microcontroller
I have a custom board with a STM32 microcontroller as An I2C master which communicating with 3 I2C slave devices. Illustrated in Image 1.
I can simply sniff I2C bus with a logic analyzer to see what ...
0
votes
0
answers
17
views
STM32F429i-Disc1 , I2C Register configuration in order to drive an LED on through pcf8574 IO-Expander
im writing a Code which configurates I2C bus in STM32F429i_Disc1, first of all i configured the Clock followed by configuring I2C1 at pins PB9 (SDA)and PB8(SCL) , my I2C1 runs at a CLOCK of 45Mhz , ...