New answers tagged

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 ...
user avatar
  • 1
-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
user avatar
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 ...
user avatar
  • 102k
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 ...
user avatar
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 &...
user avatar
  • 35.1k
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 ...
user avatar
  • 183
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 ...
user avatar
  • 1,426
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 ...
user avatar
  • 102k
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 ...
user avatar
  • 36.2k

Top 50 recent answers are included