Skip to main content
Share Your Experience: Take the 2024 Developer Survey

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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
32 views

Is it possible to point to a register on a slave device? [closed]

I know you could use I2C to communicate with the registers on slave devices, but I was wondering if you could use pointers instead. Such that I could directly figure out the value inside of that ...
burner1231312's user avatar
-2 votes
1 answer
43 views

Detect I2C signals via LED (SDA+SCL) [closed]

Can this circuit also be operated with SDA or does SDA have a problem? How is it generally with I2C, after sending the (SDA) master? Does the (SDA) master expect a response from the slave? In this ...
Albert's user avatar
  • 1
-1 votes
0 answers
9 views

LSM6DSOX OSError: [Errno 5] EIO for RP2040 Micropython

I am trying to get the IMU unit to work on my Nano RP2040. I get these same results on multiple Arduino Nano RP2040s I installed the python library into the rp2040 using the command ./mpremote.exe ...
SomeoneElse's user avatar
0 votes
0 answers
33 views

Issues using both I2C buses on ESP32

I'm using an ESP32 WROOM 32 on a custom board. This board takes three 4-20mA inputs and writes the results onto an LCD. It's set up to have an I2C 20x4 LCD on the I2C0 and an ADC(ADS1115) on I2C1. ...
dave_pp's user avatar
0 votes
1 answer
61 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 ...
sonlas10's user avatar
  • 101
0 votes
0 answers
52 views

How to connect 2 AltIMU-10 v6 via I2C to ESP32?

I am working on a project where I have to use 2 AltIMU-10 v6 and an ESP32 board (compatible with Arduino). To connect both IMUs to the board, I made the next connections: IMU 1: VIN to 3.3V GND to ...
sonlas10's user avatar
  • 101
1 vote
0 answers
23 views

Weird issue with wire.requestfrom() and MailClient.sendMail() on ESP32- rst:0x3 (SW_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)

Update_2: No change after Update_1, same error. I still have to comment either email, I2C, or Temperature out, that the other two can work. Update_1: I'm also using a DS18B20 with #include <...
Christian's user avatar
0 votes
0 answers
46 views

IMU (MPU-9256) is not working with ESP32 and Arduino Mega

I have been trying to get roll, pitch and yaw data from my MPU-9265 IMU. After trying multiple libraries and changing hardware like wires and ESP32s I was not even able to get a raw readings from my ...
Ajay Adit J 's user avatar
0 votes
1 answer
80 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 ...
Blaze48gamer's user avatar
0 votes
1 answer
52 views

Updating multiple Arduino Nanos with same INO file

BTW - I have, unsuccessfully, searched for an answer before posting. I have an NodeMCU connected to a bunch of Arduino Nanos over the I2C bus. The WiFi-enabled NodeMCU has the capability to do OTA ...
tk007b's user avatar
  • 9
-1 votes
2 answers
81 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?
Marifin -'s user avatar
1 vote
2 answers
217 views

DHT20 and OLED display not working together

I am trying to get my DHT20 and OLED (both from the Arduino Sensor Kit) to work at the same time. I am able to get them working separately with their respective test codes, but when I try to combine ...
Darren D'Arcy's user avatar
0 votes
1 answer
134 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 ...
lumaca96's user avatar
2 votes
1 answer
129 views

Get address of a I2C transaction when multiple addresses are registered

I have an application polling 4 ADCs by I2C. The application shall also write on some ADC registers. In order to test it, I'd like to use a single Arduino UNO, enabling it for receiving I2C messages ...
lumaca96's user avatar
0 votes
0 answers
326 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) -...
Sourabh Tiwari's user avatar
-1 votes
1 answer
35 views

The code is showing same angles for all three axis in the mpu gyro. can anyone solve it so that it works

#include<avr/io.h> float x, y, z, baf = 0, j, i = 0, k, angle, a, b, c, d; unsigned long current_time = 0; unsigned long previous_time = 0; unsigned long time_interval = 0; float gyro_offset_x = ...
Divy Shah's user avatar
2 votes
1 answer
157 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/...
Nikunj Vadher's user avatar
0 votes
1 answer
123 views

Arduino pulls i2c bus down

I am building an airplane. As a controller I am using a Raspberry pi 4. There are 3 sensors (MPU6050, QMC5883L, BME280) and arduino pro mini connected to the raspberry via i2c. When sending requests ...
Xrou's user avatar
  • 13
2 votes
1 answer
151 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 ...
GUSTAVO TELES's user avatar
1 vote
0 answers
224 views

How to use multiple PN532 over i2c bus(es) and SPI?

I am working on a project that involves 3 PN532_modules to an ESP32, which sends the Tag_ID over BLE. Plan A was to use One module on i2c_1, second on I2C_2 and third over SPI. The SPI one works as ...
user91535's user avatar
2 votes
1 answer
240 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 ...
Andrew Staroscik's user avatar
1 vote
1 answer
65 views

Can I program ATTINY using Arduino as ISP whilst having other I2C devices connected? [closed]

I have an SMD ATTINY that I'm using for a project. Attached to it are 3 I2C devices. When programming it using an Arduino as an ISP, can I have those devices attached? Ie, do I have to program the ...
djd53's user avatar
  • 13
0 votes
2 answers
145 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 ...
user avatar
2 votes
1 answer
88 views

I2C cabling rules for 2+ devices

I'm attempting to wire two breakout boards with i2c devices to a Mega2560: a HD44280 LCD with PCF8574 i2c backpack a combo board with DS1307 + AT24C32 There are two obvious possibilities for cabling:...
Bitbang3r's user avatar
  • 543
5 votes
2 answers
513 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 ...
CaveScientist's user avatar
4 votes
1 answer
115 views

How do you take the simplest continuous reading from a Garmin Lidar Lite V4 using I2C on a Particle Boron v4.1.0?

Hey there Stack community. I'm working with the Particle Boron v4.1.0. I'm connecting a Garmin Lidar Lite V4 on I2C. I'm using the LIDARLite_v4LED.h header file found in the library given for this ...
Katie Neeley's user avatar
2 votes
0 answers
407 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 ...
subcanny's user avatar
4 votes
2 answers
550 views

How to change the I2C address of the AS5048B?

I saw this video from James Bruton. See the links to the GitHub repos in the video description. I bought a few AS5048B boards from AMS, so I can measure the position of my stepper motors. In the ...
John Doe's user avatar
  • 151
3 votes
0 answers
162 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 ...
nh1628's user avatar
  • 31
1 vote
0 answers
664 views

LiquidCrystal_I2C, lcd.begin() causes runtime error on Arduino Mega2560

I have tested the library and LCD with simple script and everything worked fine. Now I am trying to add the LCD functionality to my working program but the code reaches the lcd.begin(); function it ...
Jesus Soto 's user avatar
1 vote
0 answers
172 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 ...
StealthRT's user avatar
  • 259
2 votes
0 answers
66 views

MPU9250 and MPU6050 not working with SAMD21 board

I am trying to use an MPU6050 with my SAMD21-based board (a LightAPRS W-2), but it doesn't work. The sensor definitely works, as I can get data from another 3.3 Vlogic-level board, and the sensor ...
Charlie Nicholson's user avatar
1 vote
0 answers
121 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....
ABD's user avatar
  • 111
1 vote
0 answers
199 views

VL6180X returning to its default i2c address after shutdown

According to this thread the VL6180X after changing the i2c address the new address should persist after a power down. but when i changed mine it came back to its default address at 0x29. Here is the ...
DrakeJest's user avatar
  • 229
-1 votes
1 answer
291 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,...
ModelRocketeer's user avatar
1 vote
0 answers
186 views

Arduino Wire library master reader, slave sender example not working

I tried i2c EPROM and that worked pretty fine with arduino master. then i wanted to establish i2c communication between 2 arduinos such that both exchange each other's sensors data. I am not able to ...
mohsin ali's user avatar
-1 votes
1 answer
298 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: ...
kristian311's user avatar
0 votes
2 answers
371 views

Is it possible to program an AVR chip (atmega328p) via i2c?

Currently I am using avrdude and I'm programming my atmega328p chip via the spi pins by pulling the RESET pin low (spidev programmer). In my project I'm using predominantly i2c and this the only place ...
php_nub_qq's user avatar
-2 votes
1 answer
52 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? (...
Doug Null's user avatar
  • 201
2 votes
1 answer
178 views

Multiple unique I2C devices interfere

I'm trying to make a fairly simple program that interfaces with the Adafruit TSL2591 light sensor as well as a MAX30102 pulse oximeter. They both use I2C for communication. I'm using the recommended ...
Jackson V's user avatar
-1 votes
1 answer
152 views

I2C HMC5983 communication issue

I have a really weird problem, when I run the exmple wire (I2C) scanner from Arduino, I get: I2C Scanner Scanning... I2C device found at address 0x1E ! done However when I try directly to the 0x1E I ...
Ana Houa's user avatar
-1 votes
1 answer
189 views

Arduino outputting 4.7V instead of 3.3V when using I2C communication/sensor?

TOF050C-VL6180X Sensor was not responding, so I checked it with a multi-meter, and the VIN, GND solder pins on it read 4.7V. Double-checked Mega voltage, without anything connected, and it shows ...
Maksiss's user avatar
  • 11
2 votes
2 answers
1k views

Wire.requestFrom() not a blocking function, even though it should be(?)

I'm working on creating a simple ACK/NACK handshake between 2 Arduino's that will essentially go like this: Arduino 1 signals Arduino 0 it is available Arduino 0 sends a connect byte to Arduino 1 (...
Daneolog's user avatar
  • 137
3 votes
2 answers
812 views

Is it possible to use multiple I2C sensors with Arduino without an I2C multiplexer?

I have an IMU sensor and a Bluerobotics temperature sensor, both have different I2C addresses. I want to integrate both with an Arduino UNO, I know I can do this with an I2C multiplexer but I don't ...
ssmalik's user avatar
  • 39
0 votes
1 answer
148 views

Can you coax another I²C connection out of an Arduino Nano Every?

I'm looking to network a bunch of devices (boards in a Eurorack case) over I²C, but I don't want to compromise the address space available to each individual device for its own needs. The obvious ...
EnronEvolved's user avatar
0 votes
1 answer
124 views

How can I force an I2C module (for 1602 and 2004) to work with a 1601 LCD at my Arduino Micro

I'm new to Arduino and want to build a Button Box. When I buyed the parts I didn't watched out for the specifications of the I2C module. When I tried to print sth on the LCD nothing happened (in retro ...
Chritzeltopf's user avatar
0 votes
1 answer
781 views

How to send an array of unknown size via I2C (from slave to master)?

When I try something like this, everything works. Slave: # define DEFAULT_DATA_SIZE 256 byte DATA[DEFAULT_DATA_SIZE]; void requestEvent() { Wire.write( (byte*) DATA, ...
yoloy's user avatar
  • 127
1 vote
1 answer
111 views

Using an I2C barometer

When buying a barometer for my current project at work, I chose the MikroElektronika click 3 barometer. However, as it turns out, the library for it doesn't exist for Arduino. I know it uses I2C ...
Kajitrim's user avatar
1 vote
1 answer
283 views

Why are raw data bytes not converting to ASCII, but only in one part of my program?

I am writing a program to read from the Atlas Scientific EZO-HUM, -O2, and -CO2 sensors simultaneously via the I2C protocol with an Arduino Uno. The sensors all work, but for some reason, just the O2 ...
czar1249's user avatar
-2 votes
1 answer
969 views

''Wire1' was not declared in this scope' in I2C_MPU6886 library

I recently purchased a 6-axis IMU MCP6886 module by M5Stack. Product link: https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/IMU_Unit. The example code provided by the manufacturer is ...
aninini's user avatar

1
2 3 4 5
16