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
2
votes
0answers
25 views

I2C protocol doesn't work properly

I am trying to make I2C Communication between NodeMCU and arduino Uno boards. However it is not working properly. It makes communication for once time when i uploaded code. Master Device Code(NodeMCU ...
1
vote
1answer
23 views

Why am I only getting -1 values in the Serial Monitor, when interfacing with the MPU 6050?

I am trying to smoke test my Seeeduino XIAO (Arduino-compatible) board with an IMU sensor, the MPU 6050. I mainly care about the accelerometer and gyroscope values. But when I run my Arduino code on ...
1
vote
1answer
39 views

Pro micro Wire.endTransmission() does not return

I have an Arduino Pro Micro(blue version) and I'm having trouble using the I2C. To test it, I use the code below and the result is an infinite square wave on SCL and SDA lines and I only get the ...
1
vote
2answers
114 views

Sending letter by letter to LCD, however the LCD knows the full string?

I think this is my last post about this specific project, but I got a really weird curveball right now I managed to do the webpage I wanted, and pass the string along. Now, when a LED lights up, it ...
2
votes
2answers
153 views

How many connections can Arduino I2C method create?

I was just learning about I2C between 2 Arduinos, one as sender and another as a receiver So I have got curiosity to know how many Arduinos can be connected to I2C connection in serial? I mean, ...
-1
votes
0answers
32 views

Need help with m5StickC's MPU6886 offset calibration

I need to calibrate gyro sensor offset on M5stickC so I sart with modify original "M5StickC" Library (Library link on github) This is my Arduino code #include <M5StickC.h> void setup() ...
2
votes
1answer
39 views

What are a few good ways to connect multiple I2C busses?

I have an issue with a project. I have a backplane with an Atmega328P based microcontroller controlling an I2C bus with multiple peripheral devices. One such peripheral is a removable card with ...
1
vote
0answers
63 views

Arduino Create and Raspi I2C

I'm trying to communicate via I2C on the Raspi, programming it with the Arduino Create Web Editor. I have enabled I2C on the pi, made sure /dev/i2c-1 exists. The pi can see the device (just a simple ...
1
vote
1answer
28 views

How to read two byte register address using arduino wire library

I want to read a register 0x012A from the device I2C address 0x0A, the value stored in the register is two bytes, If the register address is one byte i can use Wire.requestFrom and give the register ...
1
vote
1answer
28 views

ESP8266 with RTC DS1307 shield - WS2818B shield won't blink - I2C issue?

Dear Ladies and Gentlemen, I'd like to let a LED blink base on the time of the day. So I took Wemos D1 mini and a WS2818B shield and a RTC DS107 Shield for the before mentioned ESP8266 model. Based on ...
0
votes
1answer
51 views

I2C Scanner - No devices found

I connected an OLED display to SDA and SCL Pins of Arduino UNO. However, I cannot find the adress by using the Arduino I2C Scanner. All of the wires are connected correctly and the display has power. ...
0
votes
0answers
23 views

0.96 oled i2c display not working with my Arduino Nano [duplicate]

So what I've tried is: Changing the i2c address from 0x3D to 0x3C and it still doesn't work. Ive also tried an i2c scanner and it hasn't worked either. First I connected the screen like this: GND-...
1
vote
1answer
309 views

MAX30100 not working

I am unable to get the MAX30100 sensor to work It keeps throwing the following error: 16:06:32.936 -> Initializing... 16:06:32.936 -> MAX30105 was not found. Please check wiring/power. I am ...
1
vote
1answer
63 views

Arduino Nano and 0.96 i2c oled screen not working

When I try to scan the i2c address it stays stuck on "i2c Address Scanner" which is the first line of the code. My screen is connected with VCC-5V, GND-GND, SCL- 4.7K resistor->A5, SDA- 4....
0
votes
0answers
31 views

Cannot read from DS3231

I'm having issues with a DS3231 RTC connected to an ESP8266. I can write to it to set the time (Wire.write returns 1), but anytime I try to read from it, Wire.requestFrom always returns 0. I've tested ...
0
votes
1answer
29 views

Wiring Multiple MPU 6050 to Micro/Lenardo

disclaimer I am new at hardware/circuits I am currently trying to connect two MPU-6050 to a single Micro board. In addition, there are 5 additional buttons to be connected. I am under the impression ...
2
votes
1answer
49 views

PT2257 only gives me heavy buzzing sound

I have this project where I control a bluetooth audio module with an arduino. In this case, I have used an arduino nano. But then, I have been meaning to add volume control to the project so I use a ...
1
vote
1answer
96 views

How do I connect an MPU6050 sensor to an Arduino MKR WIFI 1010?

I've been trying to connect an MPU6050 to my MKR WIFI 1010 following these general instructions and using the I2CDev library, but I keep running into problems. For a while the Arduino just didn't show ...
-1
votes
1answer
78 views

“No I2C devices found” Arduino Nano Every

I was able to set up a Arduino Nano with an I2C board very easily, but the Arduino Nano Every is giving me a much harder time (my project required low profile). Just to test, I stripped some wires, ...
1
vote
0answers
41 views

Getting the I2C Address from a Max9744 amplifier

I just bought 2 Max9744 amplifiers that I wish to scan the I2C addresses, just to check against what is said in documentation. I have the amplifier powered with a 12 v supply and the Arduino powered ...
1
vote
2answers
55 views

Four temperature SHT31 sensors on ESP32

I have to read out the teperature and humidity of four independent SHT31 sensors with the help of an ESP32. Is there any prefered way to do this, since the only examples I can find online are only ...
0
votes
1answer
31 views

Connecting BMP280 sensor to microcontroller

I am building my own board with integrated pressure sensor. (microcontroller is 3V3 logic) I want to know which parts do i need. In datasheet there are only 2 capacitors but on breakout board there ...
0
votes
0answers
41 views

Temp Sensor not working on ESP32

I am using SHT21 temp sensor with ESP32 using I2C. The sensor only reports temp of -273 and 0 for RH. The sensor is not faulty as I have tried this on an Arduino UNO with the same sketch and it works ...
0
votes
0answers
68 views

OLED display on I2C causes esp8266 to reset

I have connected two temp sensors and an OLED display to a NodeMCU using I2C. When the program reaches the instruction to print the measurements on the display the program crashes and NodeMCU resets ...
0
votes
0answers
91 views

Multiple sensors I2C stop working suddenly

I am using multiple temperature sensors using I2C. Some of the sensors are connected via TCA9548 multiplexer. When I run the sketch it runs fine for a few minutes but then it suddenly stops working ...
1
vote
1answer
239 views

error at compiling : 'class TwoWire' has no member named 'setClock'

I am a newbie C programmer and I just started with Arduino web editor (Win10-Firefox)to code for a Raspberry Pi (3B) board. RPi is on line via ethernet connection. I tried to compile an example from ...
0
votes
1answer
49 views

Arduino I2C Multiplexing uisng TCA9548A

I am using 5 sensors out of which two have the same I2C address and are connected via TCA9548 multiplexer. The remaining 3 sensors are connected to the main arduino I2C bus. In example sketches online ...
2
votes
1answer
144 views

Missing ACKs on I²C

I am using a GY-521 accelerometer as well as BMP280 pressure sensors via I²C on an ESP8266. When I analyze I²C data with the oscilloscope, I can see missing ACKs on both of them as shown in the ...
2
votes
1answer
59 views

What is “tws_delay” and how can I use it? (with an ATTiny85)

EDIT: Alright I'm stupid, I had the 2012 library installed somehow, maybe when I downloaded it indirectly from another old tutorial site. Thanks a ton to Peter Freerick for pointing that out! It ...
0
votes
1answer
33 views

I2C comunication, ESP->Nano on endTransmission no ACK fron nano

i am trying to communicate between ESP(master) and arduino nano(slave). This is only a prototype and all works fine. But i want to add multiple arduinos and therefor i need to detect if the arduino ...
0
votes
0answers
37 views

2xArduinos, 2xDevices, I2C setup

Is it valid configuration using hardware I2C pins: Especially: can NanoEvery initialize communication with DS2482, while it is slave for Mega2560? Using Wire library or should I use software I2C when ...
0
votes
1answer
44 views

Arduino I2C external 32Kb fram data organization

Hey guys I am a noob when it comes to data structures and storing types of data, I have been recently working on a project where I needed to store long term data for later retrieval. I decided to buy ...
0
votes
0answers
45 views

I2C LCD displaying gibberish

I have connected a I2C LCD with my NodeMCU v3. My pin configuration is as follows: Node MCU ---> I2C LCD GND GND 3V VIN SDA D2 SCL D1 I have been testing a ...
0
votes
0answers
51 views

Different Counter Reading on Serial Monitor Vs .96" OLED I2C

I've cobbled some code together from reading multiple sources on the web. Makeatronics in particular to help me get this rotary encoder code together (shout out to them). I'm pretty close to the end,...
0
votes
1answer
44 views

Arduino using delay in I2C receiveEvent

I have read before that you can't use delay() inside I2C receiveEvent because it is an ISR. What I want to do is as follows: I have a servo connected to my Arduino Uno and I want to control that using ...
0
votes
1answer
73 views

i2c high speed and pull-up resistors

hello guys i want to ask about 2 things first one is i'm connecting and arduino uno attached to a usb host sheild and transferring data of a mouse coordinates to 10 arduino leonardo i'm using the ...
0
votes
0answers
40 views

leonardo mouse readings

hi there im using arduino uno + usb host shield and i have taken the readings from the usb mouse in this line of code : x = mi->dX; and the x output is the speed of the mouse x coordinates and i ...
0
votes
0answers
84 views

Connecting OV2640 with 17 Pins Binocular Camera module, to any microcontroller (System clock on module pin 18 -NC)

These pins are on the module: 3.3V GND VSYNC SCL SDA HREF D0-D7 DCLK PWDN I have tried many codes and connections of the OV7670 Monocular cameras, none seem to work(Instructables , Circuit Digest , ...
0
votes
0answers
60 views

I2C master's output is always 255

we are using 2 Arduino UNO as a master/slave for this i2c protocol. we used the first Arduino(slave) as a sensor that will input dummy data (in this case, temperature data). the Arduino(master) should ...
0
votes
1answer
59 views

Power MPU 6050 module through pin AD0

TL;DR: is it safe to power a MPU 6050 module through its AD0 pin instead of VCC? We managed to have two MPU 6050 modules on the same I2C buffer by changing the address of one of them by connecting ...
0
votes
0answers
25 views

Does DFR0063 I2C LCD work with Arduino Due? I cannot even pass i2C scanner

I have 2 Due and Two DFR0063 I2C LCD. I cannot even pass i2C scanner. I always got No I2C devices found. I tried both SCL/SDA and SCL1/SDA1. For SCL1/SDA1, I do add 10K pull up resister. But still ...
1
vote
0answers
55 views

Slave unreliably sends bit 7

I'm trying to send a byte from an Arduino Nano I2C slave to a Raspberry Pi 3B Master by directly connecting the two I2C pins of each device with no external pull-ups or level converters. It mostly ...
-1
votes
1answer
30 views

MAX9611/2 - receiving junk data

I'm connecting to a MAX9611 on a custom PCB (using a SAMD Cortex M0 running an Adafruit Feather bootloader) using I2C. I have code that reads the voltage, current and temperature from the internal ...
0
votes
1answer
45 views

Master Reader/Slave Sender with Distance Sensor

I am currently working on a project and want to transmit the information from a distance sensor from one arduino the another, but what i receive in the master board are not the correct measurements. ...
0
votes
1answer
74 views

HTU21 on GY-21 breakout board I2C problem

I am interfacing the HTU21D sensor with my nodeMCU v3. All good! I managed to get some readings etc. But when I re-upload my code the device does not respond. If I remove the power supply from the pin ...
0
votes
2answers
60 views

Wire.endTransmission() hangs, but only, if wire.begin(); is called with an address (MKR WiFi 1010)

This code runs without issues, scoped and seen from serial output: #include <Wire.h> void setup() { // put your setup code here, to run once: Serial.begin(115200); Wire.begin(); Wire....
0
votes
1answer
28 views

PC8563 Arduino interface

i am trying to interface pc8563 with arduino uno . I have small doubt related to RTC slave address reading RTC datasheet says page no 14 where device slave address is A2 for write and Read A3 i ...
1
vote
0answers
67 views

eps32 bad adc even with external adc (ADS1115)

Im trying to read an analog value with my esp32 and send it over wifi to another esp32. The wifi part works flawless, however when i try to read an analog value form the esp32 its not useable. It ...
0
votes
0answers
68 views

Configuring the registers of i2c AD converter ADS122C04

I am not able to set the configuration registers of the TI´s converter chip ADS122C04 using arduino MEGA via I2C. The code mainly consists of the following: 1-reset the chip (one byte) 2-choose ...
1
vote
0answers
197 views

STM32F103 (Blue Pill) with stm32duino + BME280 + SSD1306 strange behavior

I'm going crazy trying to understand some strange reads from BME280 sensor. With this code: #include <SPI.h> #include <Wire.h> #include <Adafruit_GFX.h> #include <...

1
2 3 4 5
13