New answers tagged i2c
0
votes
Using an I2C barometer
I have found MikroElektronika library for the barometer 3. You can get basic idea how to communicate with the sensor.
MikroElektronika c libraray
You can develop your own library based on that one for ...
-1
votes
Arduino I2C maximum number of writes per transmisson
The buffer size can be increased.
Should go to the twi.h fil, Wire.h file and set the desired length of the variable: BUFFER_LENGTH
2
votes
Accepted
Why are raw data bytes not converting to ASCII, but only in one part of my program?
You are relying on a NULL byte being received to reset your i pointer variable. If that NULL never arrives for whatever reason you won't be writing your new data to the start of your next array.
You ...
0
votes
HD44780 display incorrectly black-on-blue instead of white-on-blue
I have a similar LCD display (I assume it's virtually identical, hard to confirm). In my case, driving the display VCC (and SCK and SDA) at 3.3v produced the same behaviour you described (dim black ...
1
vote
Problem with messuring capacitance with 50 Arduinos connected by I²C
You might want to consider using a RS485 protocol. Unlike I2C this uses "balanced" wiring so is more suitable for longer cable runs.
I described a way of coding a number of Arduinos using a &...
2
votes
Accepted
ESP8266 soft resets when using a GPIO Expander
In the end the answer to the problem is the update frequency of the pins that drive the e-paper display:
The original waveshare library (as linked in the post) does the following to send data to the ...
1
vote
Problem with messuring capacitance with 50 Arduinos connected by I²C
The I²C bus was never intended as a distribution bus between many computers. The outputs are not designed to drive long wires. With a lot of kludging you may get this to work, but it is definitely not ...
3
votes
''Wire1' was not declared in this scope' in I2C_MPU6886 library
"M5Stack" is an ecosystem of ESP32 based boards and peripherals.
All code for M5Stack peripherals is written for the M5Stack system. Not for the Uno.
You have to find code for the Uno, not ...
3
votes
Problem with messuring capacitance with 50 Arduinos connected by I²C
The cathode line is being shared by all the Arduinos' OUT_PIN. When
one of them tries to set the pin HIGH, all the others are trying to
hold it LOW. This is a short-circuit condition that can damage ...
Top 50 recent answers are included
Related Tags
i2c × 722arduino-uno × 206
wire-library × 72
arduino-nano × 60
sensors × 51
lcd × 51
arduino-mega × 42
serial × 38
communication × 36
spi × 32
mpu6050 × 32
esp32 × 29
esp8266 × 28
attiny × 28
c × 23
accelerometer × 21
arduino-ide × 19
display × 19
pins × 18
interrupt × 17
nodemcu × 17
c++ × 16
raspberrypi × 16
programming × 15
arduino-due × 15