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
1
vote
1answer
103 views

Arduino Nano Every I2C PORTMUX

Arduino Nano Every schematic informs us that we can use ATMega4809's pins PF03 and PF02 to communicate via I2C. ATMega4809 manual says in page 19 that in order to use those pins as I2C we need to use ...
1
vote
0answers
52 views

How to get a stable LED lighting without scintillation over I2C bus

I built an 8x8 led matrix using white 5mm LEDs. I drive the LEDs using the MCP23017 connected to an Arduino over the I2C bus. The wiring of the LEDs in the matrix is such that a row is made up of 8 ...
1
vote
1answer
76 views

Is it possible to change and save I2C address programatically?

I want to drive 3 i2c devices on a single i2c line. Is it possible to achieve this without using A0,A1,A2 pins? I thought the address of i2c devices should be programmatically changeable. 2 mcp23017 ...
1
vote
0answers
89 views

Using MPU6050 with ESP32 Cam- MPU Not Detected

Hi I'm trying to build a self balancing robot using my esp32 cam, but so far I haven't been able to setup my mpu6050 with it.I'm using the adafruit libraries with the given example sketches. The only ...
2
votes
1answer
416 views

Can't Turn Off Internal I2C Pull-Ups on ESP32

I've designed a custom ESP32 board around the WROVER-IE module. To keep power low, I'm using a GPIO-controlled high-side FET to turn off unused peripherals when in deep sleep mode. The issue: I've ...
1
vote
0answers
35 views

send command to Slave and receive response over I2c

so I have an Arduino mega as the master and an attiny84 as the slave the master can send a command S to the slave and the slave should respond with TRUE so here is my code: master: bool GetOnline(){ ...
1
vote
0answers
129 views

Reusing Digispark ATtiny85 micro-USB as 1-wire bus

I'm working on a project of my home plants irrigation/hydroponic system(not cannabis!)) just chilies and other eatables). Also I'm trying to recycle modules, wires and other projects' leftovers such ...
1
vote
2answers
100 views

I2C Devices Interference

I am currently trying to connect 3 I2C Devices to an Arduino Mega, as detailed in the fritzing sketch. The Sensors are: Max86150 PPG Sensor on a breakout board (5v), MLX90614 IR Temperature Sensor (3....
1
vote
1answer
39 views

Having trouble with MPU6050 and AFE4404 printing together, potential conflict?

I am having trouble getting the two sensors to work together. There are a total of four sensors connected to the Arduino, and while the MPU and AFE individually work fine with the other two sensors, ...
1
vote
0answers
173 views

Random artifacts on SSD1306 OLED screen

I'm having a really strange problem with my screen. It's connected in i2c to my Arduino Nano and I'm using a rotary encoder to navigate through a menu. At startup everything is fine, but when I change ...
1
vote
0answers
23 views

Help Convincing Wiimote a Nano is a WiiMotion Plus

I want to replace the outdated gyro in a wiimotion plus with a BNO055. Based off what I've read from wiibrew, and im currently trying to get the wiimote to recognize the nano as an extension over I2C. ...
1
vote
0answers
40 views

How to know if a tof VL53L0x sensor is dead or not

I bought a bunch of VL530X time-of-flight sensors on Aliexpress. They seemed to work fine. Then I connected two of them on the same Arduino Uno board to test with the Adafruit example "dual"....
0
votes
1answer
42 views

Recommend an Arduino Uno shield to monitor the state of 5 DPDT electrical switches

I have a project where I need to monitor the state of 5 DPDT electrical switches with Arduino Uno. Also, the Arduino board will be measuring the output from 3 thermocouples on 3 of the analogue pins ...
1
vote
1answer
141 views

Reading I2C registers as slave device

I need to read the registers of a message gotten from onReceive(). I read here that There's nothing "magic" about the register pointer: it's simply the first data byte in the packet. So ...
0
votes
1answer
74 views

I2C_anything from Nick Gammon. Value of two senders to be received and printed by receiverslave

Following the suggestion of Fiendish to post here: Hello Nick, thank you very much for this I2C-anything library that works a treat with two arduinos (one sender, one receiver). Is there any suggested ...
1
vote
1answer
512 views

How to close/end a Wire.begin()?

I have an ESP32 cam, and I attached an i2c light sensor to it. I need to read the light level at startup, then I don't need the i2c connection again. The problem is, the board uses 2 i2c connections I ...
0
votes
1answer
51 views

How to you initialize a reset on a sht30 digital thermometer?

I have a sht30 that will output correct temperature readings for about 5 min and then will drift off. So I'm trying to hit the reset every few seconds to keep the readings accurate. I am on a nano ...
1
vote
0answers
93 views

Use I2C to control one of three DS3502 Adafruit digital potentiometers on the same I2C bus

My teammate and I recently purchased a handful of DS3502 digital potentiometers (https://learn.adafruit.com/ds3502-i2c-potentiometer/pinouts) from Adafruit, and we'd like to be able to control them ...
1
vote
0answers
100 views

MAX30102 showing Heart rate: 0.00bpm / SpO2: 0%

I am using a MAX30102 to monitor SpO2 and heart rate using the https://github.com/oxullo/Arduino-MAX30100 library and the minimal example, but it is not showing any value change. It only shows zero ...
0
votes
2answers
118 views

Cannot display a chr string using Wire.read() and u8g2.drawStr()

I'm still getting myself acquainted with C++, so I expect this is a very basic issue I'm facing. I've got an OLED screen connected to a Teensy LC and can display text on it just fine. The Teensy ...
1
vote
1answer
453 views

How to put Arduino Nano in low power sleep mode (<0.05mA)

I'm trying to put an Arduino Nano in low-power mode using this guide: Arduino Low Power - How To Run ATmega328P For a Year On Coin Cell Battery. The article suggests 3 things: use the Low-Power ...
0
votes
1answer
88 views

Grove Base Kit Multiple I2C Connection

I tried to connect two modules that require I2C connection and they won't work at the same time. I used the Arduino Sensor Kit - Base. This kit does not need any connection, you just have to code to ...
1
vote
0answers
120 views

Configure Trinket M0 as I2C peripheral

I am trying to use I2C to communicate between my XBee3 (controller) and an adafruit trinket m0 (peripheral). I'm pretty confident I have the modules connected properly (trinket SCL/pin 2 to xbee SCL/...
4
votes
1answer
124 views

Problems with green TWI (I2C) port on Arduino Braccio Shield

Summary: The green TWI/I2C port on my Braccio shield I2C port hasn't worked for me so far. Looking for advice or information please. Detail: I'm using the Arduino (Tinkerkit) Braccio robot arm for ...
0
votes
1answer
206 views

Arduino Nano Every Vin 5V fixes I2c problems

I had problems with connecting my devices via I2C. The "requestfrom" constantly hanged and the endtransmission sometimes gave NACK responses. After disconnecting the devices from 12V and ...
1
vote
1answer
260 views

SoftWire Library Programming Questions for I2C with Digital Pins

I am trying to use 3 TOF10120 Laser Sensors with one Arduino that all have the same, fixed I2C Address. I don't believe it is possible to change the I2C address of the TOF10120, but if I am wrong, ...
0
votes
1answer
164 views

Sending 4 analog values from one arduino to another with I2C

I have modded a cheap drone controller to output its joystick values to an Arduino Nano. I made it to output its 4 pot values using I2C to another Arduino don't ask why. So my problem is that I need ...
1
vote
0answers
151 views

Max. external ADC speed with ESP32 (SPI or I2C)?

What is the maximum speed for external ADC I can expect to get with ESP32? I'm planning to have 16-bit ADC connected to I2C or SPI whichever gives more speed. How that information is calculated from ...
1
vote
0answers
329 views

Initiating 2nd I2C bus on ESP32 with CCS811 sensor

I want to connect two CCS811 sensors with ESP32 dev board. Since the sensors have fixed address, I am unable to use them simultaneously. I have read that on ESP32 multiple I2C buses can be created. ...
1
vote
0answers
55 views

Looking to interface height and weight sensor based on I2C Protocol

I have interfaced a height sensor and a weight sensor. The I2C address of the height and weight sensors are 0x29 and 0x2A respectively. I have merged the example of both the sensors. This is the first ...
3
votes
1answer
762 views

I2C communication between Arduino Uno and Nodemcu32-s (ESP32)

I want to send data between an ESP-32 (NODEMCU-32S) and an Arduino Uno but I haven't found any source on how to do that, so I tried this code: ESP-32 code: #include <Wire.h> void setup() { ...
2
votes
1answer
63 views

Which sensor bus best to use?

I am working on a project which requires a dozen VL53l0X I2C-TOF sensors to be polled by one master MCU over a few meters of cable. Thus, I decided to accompany each TOF by an Atmega8 acting as a ...
3
votes
1answer
125 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
61 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
75 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
172 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
191 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, ...
2
votes
1answer
97 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
65 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
191 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
78 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
286 views

I2C Scanner - No devices found [closed]

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. ...
2
votes
3answers
3k 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
182 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
42 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
117 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 ...
3
votes
1answer
108 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
272 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
296 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
47 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
2
3 4 5
14