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
0answers
20 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
20 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
48 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
30 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
17 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
46 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
0answers
55 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 ...
0
votes
1answer
40 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
40 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
34 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
29 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
35 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
39 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
52 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
102 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
33 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 ...
1
vote
1answer
139 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 ...
1
vote
1answer
42 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
29 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
38 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
36 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
31 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
32 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
58 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
35 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
55 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
48 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
40 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
24 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
52 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
24 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
39 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
50 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
43 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
22 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 ...
0
votes
0answers
43 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
52 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
97 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 <...
0
votes
1answer
55 views

Scrolling an I2C text

I want tried to make a programm to display a text on an I2C LCD-Display. The text should be scrolled for one position every time the function is called. On the internet I saw a lot of solutions but ...
0
votes
1answer
71 views

NodeMCU V3 and MPU6050 strange values

I am new to this platform, so please if I do something against the regular rules please let me know so I can learn. Now my problem: I have a nodeMCU V3 connected to a MPU6050. Using my Arduino Uno I ...
0
votes
0answers
34 views

hello,i have an problem with my arduino with an lcd

i've totally done everything i could,but when i run my arduino uno with my 16*2 lcd (with i2c) . it has a higher brightness on the top and a lower one in the bottom. ive even tried putting example ...
0
votes
2answers
67 views

Using SDA and SCL with analog inputs at the same time

I'm trying to build a robot arm based on Arduino UNO and PCA9685 controlled by few potentiometers. The easiest way that I figure out and find on internet is using two Arduino's, one as master and ...
0
votes
1answer
92 views

i2c scanner stuck on scanning for my 0.96in OLED screen with my Arduino Nano

My pins are connected as follows; vcc-3v3, gnd-gnd, sda-A4, scl-A5.
1
vote
2answers
116 views

Arduino program using i2c stops working after printing to OLED a few times

A NOTE ON THE PROJECT AND PROGRAM STRUCTURE I am developing an open source Smart Watch project using Arduino. The code can be found here: https://github.com/shivangsgangadia/SmartWatch The code is ...
0
votes
0answers
54 views

Problem with I2C

I trying to make a project to write and i2c display from a renault megane vehicle. There is many people showing it but there is no code that i can use. So i buy a cheap analyzer and i can clearly see ...
0
votes
0answers
102 views

Unable to find/connect I2C devices (SHT31 & SGP30)

I have recently purchased an Arduino Nano 33 IOT together with two sensors: Adafruit SHT31-D (https://learn.adafruit.com/adafruit-sht31-d-temperature-and-humidity-sensor-breakout) Adafruit SGP30 (...
0
votes
1answer
146 views

Problem to Setting up i2c OLED wemos D1 mini shiled (64*24)

Hi I used this shield before well. But it didn't work when I wanted to work with him last night! this is my wireing : Now I want to know how to test that it is healthy? Is i2c address missing or ...
0
votes
1answer
21 views

Pca9685 & WS2818B, 1 Nano

Arduino n00b here. I currently have an Arduino Nano set up to run 6 servos from a PCA9685 board. I'm looking to add 6 switches and 6 LED indicators to switch servo positions. What I'm curious about is ...
0
votes
1answer
32 views

How can I declare custom pins when using with ESP8266 in MPU9250 library

I want to declare SCL and SCK pins like Wire.begin(sda_pin, scl_pin); to use with ESP8266 to integrate a MPU 9250/6500 sensor. I can't figure out a way to declare that in this code exaample provided ...

1
2 3 4 5
13