All Questions
Tagged with i2c programming
20 questions
0
votes
2
answers
155
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
131
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 ...
1
vote
0
answers
94
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 <...
1
vote
0
answers
569
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 ...
0
votes
2
answers
212
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 ...
0
votes
1
answer
683
views
Problem Using pins A4 and A5 for input and output I2C
Hardare used:
Arduino nano ( old Bootloader )
Oled Monochrome Display ( 4 pins, 128 x 32 )
MPU 6050
Both display and MPU use A4 and A5 as I2C communication protocol, They interfere, as the MPU is used ...
1
vote
0
answers
177
views
I2C 16x2 LCD - Will Initialize (sometimes) - Holds Up The Code
Basically I have a keypad, that when a certain code is entered, it will write either "Wrong code" or "Good code" on the LCD.
At the same time a timer will count down until 0 is ...
1
vote
0
answers
247
views
How to name the temperature sensors instead of printing address using ds2482-100 and ds18b20 sensor- Help
I am using 10 ds18b20 Temperature sensors using with "DS2482-100" I2C board and Arduino
so when I am getting the output like this:- "ROM = 28 46 04 1F 0D 00 00 74 96014B467FFF0A100A 25....
1
vote
0
answers
90
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 ...
1
vote
1
answer
1k
views
Working with Wire core library
I'm studying the Wire library code driver utility/twi.h to learn how twi buffering and ISR management work.
What I did actually, is that I copied the header/source files from the Arduino path F:\...
0
votes
1
answer
370
views
Hot Swap Sensor
Is there a way to have a sensor be hot swappable, as in it can be disconnected and reconnected without locking up the Arduino? I have an I2C sensor that I want to be able to disconnect and reconnect ...
0
votes
1
answer
164
views
How do I stop the slave from running the code until master sends a new value? I2C
I'm a total noob when it comes to Arduino. I'm slowly learning stuff. I was trying this code which basically gets input in Arduino1(master) and displays the character in serial monitor of Arduino2(...
1
vote
0
answers
274
views
Using 4 identical sensors on the I2C bus
I am using 4 Pololu VL6180X ToF sensors on the Arduino UNO for a school project but just can't seem to get it working correctly. I understand that I need to hold them in reset and change the I2C ...
2
votes
3
answers
2k
views
lcd not display
is it my coding wrong or my board have problem because my lcd does not display anything.
here my coding
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
// set the LCD address to 0x27 ...
0
votes
1
answer
2k
views
HMC5883L not working in continuous mode!
I'm just starting with the HMC5883L, I'm writing my code with C and also my own I2C library.
I noticed that the values on the Arduino IDE's serial monitor are constant.
Then I developed a function ...