Questions tagged [i2c]
Inter-Integrated Circuit (I²C) is a bus for low speed peripherals. Use this tag for questions regarding how to use I²C with an Arduino, or for problems with I²C and your Arduino.
769 questions
0
votes
1
answer
46
views
I2C arduino to jetson TimoutError
I am working with I2C for the first time and having an issue with a very simple problem.
I want to send 2 bytes from an Arduino and nvidia jetson orin.
On the Arduino, my code looks like this:
#...
0
votes
1
answer
49
views
Problems reading WNK811 i2c sensor on arduino using wire library without device library
I am trying to read a WNK811 pressure sensor connected by i2c to an STM32 Nucleo F401RE, programmed as arduino. The WNK811 is a Chinese device, the device datasheet is highly minimal (inadequate in my ...
0
votes
2
answers
190
views
How do I read data from a 32 bit I2C register address?
I'm having trouble reading the I2C data from the CPS8200, that has a 32 bit Register Address. Since I'm not too familiar with I2C register addresses more than 8 bits, and right now I'm not sure if I'm ...
0
votes
0
answers
146
views
Initializing both I2C devices of a RP2040 Rpi Pico with Earle Philhower Core
I'm using the Arduino IDE (v1.8.19) with the Earle Philhower core to program a Raspberry Pi Pico (RP2040) board.
I2C bus 0 of the Pico (pins 4 (SDA) and 5 (SCL) are coupled to a first MCP23017 port ...
0
votes
1
answer
209
views
I2C communication with LCD screen via 2.5m long cable
I’m attempting to connect a 4x20 LCD to an Arduino Mega 2560 Rev3 using the I2C protocol via a 2.5m VGA cable. I understand that such a long cable isn’t ideal for I2C communication, but I cannot ...
1
vote
1
answer
296
views
External EEPROM Read and Write Issues: Junk Values in I2C Communication
I have an ESP32 controller and am using AT24C1024 for communication. In my code, I am trying to access an external EEPROM at positions writing data from 0 to 10000 position data is = '1'. However, ...
1
vote
1
answer
230
views
How do I convert a structure to a char[] for use in Wire.h, or is there a better way?
I need to interface an ATTiny88 MCU configured as an I²C slave with a Raspberry Pi configured as an I²C master. I may be using the wrong approach, but I have a structure consisting of four different ...
3
votes
1
answer
139
views
Connecting 3x 0.91Oleds (Using a TCA9548A 8-channel multiplex) and 1 1.51 Inch Transperant SPI OLED
As the title suggests, I have an Arduino Nano connected to a multiplex (which is connected to 3x 0.91 OLEDs) and an 1.51 inch OLED connected through an SPI.
The problem is that they just refuse to ...
0
votes
1
answer
145
views
How to connect two devices via i2c?
I am working with 2 Pololu Altimu-10 V6 connected to the same ESP32 board. Both of them are connected via i2c protocol and have different addresses. The addresses are 0x1C and 0x1E.
I have this code ...
-1
votes
1
answer
175
views
Unable to find PCA9685 module when using the I2CScanner library: no servo movement
I am trying to use an Adafruit PCA9685 servo driver module with an ELEGOO Mega 2560 board.
I am supplying the servo driver board with 5 V and tested all the wires to make sure. I tested the servo ...
-1
votes
2
answers
167
views
Do I connect multiple I2C units to the microcontroler in series or parallel?
I have a project (still planning) with three I2C sensors: GPS, 3-axis gyro+accelerometer, and OLED. Do I connect SDA/SCL in series, or do I connect them in parallel?
0
votes
1
answer
213
views
Use class object inside an ISR
I have to simulate an ADC that behaves as an I2C slave. The simulated values that the ADC shall expose are sent over serial, saved on an attribute and are requested by a master device over I2C.
A ...
0
votes
0
answers
550
views
Connecting Multi MPU6050 using I2C on ESP32 Wroom 32D
I want to connect two MPU6050 sensor on Esp32 using the I2C protocol.
ESP32 to MPU6050 connection, I'm using -
VCC(ESP32) - VCC(MPU6050_1) - VCC(MPU6050_2)
GND(ESP32) - GND(MPU6050_1) -...
2
votes
1
answer
266
views
Sparkfun ISL29125 breakout board issue with Arduino IDE with ESP32
I am working on a project where I need to get the RGB light value from surrounding ambient light.
For that I am using an ESP32 with a Sparkfun ISL29125 breakout board. I have tried to scan available/...
2
votes
1
answer
252
views
How to make 2 lidar lite v3 work with 1 Arduino?
I'm using the code below, but I had no success.
I'm using this connection wire:
The photo of the Arduino doesn't show the SCL and SDA pins, but please consider that it has 2 SCL pins and 2 SDA pins in ...
2
votes
2
answers
698
views
LCD I2C connection problems
I am hoping there is a simple fix to this problem.
I am playing around with a 16x2 lcd with a I2C connector attached. I wired it up to an elegoo uno R3.
I started with some code I've used before and ...
0
votes
2
answers
216
views
How much readable text can fit inside an ATTINY85? Feasibility of scrolling a booklet on a 0.91-inch OLED display
I'm a total beginner, so I've been talking with Chatgpt regarding the capabilities of the Attiny85 microcontroller. But the AI would hallucinate a lot and give only partially right answers (because it ...
5
votes
2
answers
1k
views
Arduino Freezes (probably because of I2C) - Need help to write robust script
Arduino Pro mini 3.3V stucks few hours after startup. After repowered, it begins to stuck within a few seconds. If I wait long enough before turning it on it stucks little later for example now it ...
2
votes
0
answers
629
views
Scrambled Text on SSD1306 Using ESP32-S2
SSD1306 OLED display connected to an ESP32-S2 over hardware I2C. I noticed that the text will sometimes get scrambled or lag during a screen update. When left running long enough, the screen will get ...
3
votes
0
answers
248
views
Using 2 VL53L4CD ToF sensors and getting error after getting first reading
pretty new to arduino stuff and was hoping to get some help with my code.
I'm trying to use 2 ToF sensors and get continuous readings from them. I understand that I have to use the xshut feature and ...
1
vote
0
answers
217
views
Pool pump man-in-the-middle SDA/SCL with ESP32
Hey all I have found some code on GitHub that works with my pool pump but it seems my model is a little newer than the one they used on on their GitHub. Most things seem to work but what doesn't is ...
1
vote
0
answers
201
views
LIS3DH not working with arduino
I am new to LIS3DH and tried to interface it with Arduino Uno. I have made the circuit as follows-
LIS3DH : Arduino Uno
SCL : SCL (GPIO18)
SDA : SDA (GPIO19)
3.3v : 3....
-1
votes
1
answer
633
views
6-pin BME280 not giving I2C signal
I'm creating a telemetry package for my my mom's model rocket with a MPU6050, a BME280, and a SD reader/writer. The code I found for the BME does not read any information. When I upload an I2C scanner,...
-1
votes
1
answer
429
views
variable 'LiquidCrystal_I2C lcd' has initializer but incomplete type
I have a problem with lcd, I have NUCLEO64 L746RG , I have Lcd Display and I2C connected to it.
When I verify code it gives me and long error and I can not find the solution or cause of this error:
...
-2
votes
1
answer
78
views
how do I wire a 2nd Adafruit TMP117 board to my Adafruit Metro by I2C?
I want to connect two TMP117 boards to one Metro (ie. Arduino).
(the first, addressed at 48 the 2nd at 49.)
Should 2nd board's 4 wires simply attach (ie. solder) in parallel to 1st board's 4 wires?
(...