AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Wire library for arduino micro8/29/2023 ![]() define the max amount of bytes which are awaited from the i2c connectionĬhar dataIn_gl = īool success = WireSlave.begin(SDA_PIN, SCL_PIN, I2C_SLAVE_ADDR) ![]() do i need pull up resistors or a voltage converter?.I am wondering if the following might work, but I have no Idea on how to try that: ![]() connecting the 3.3V Pin on the ESP with the 3V Pin on the Arduino (instead of the 5V Pins).10s between reading and writing seems to work best. shuffling around the sequence of reading and writing.trying both libraries on the Arduino Micro.This seems to work a few times, but the Arduino still crashes after seconds to minutes. I tried to reset the bus when this happens, so i added TWCR = 0 //resets I2C-Connection The request fails and then the Arduino normally crashes. I already discovered that it has to do something with the "slaveReq.request() " command in the "ReadData()" function. The Problem is, that the Arduino Micro crashes after a maximum of around 2 minutes. I was successful in building a connection between the two microcontrollers and sending data in both directions. One being an ESP32 (slave) and the other being an Arduino Micro (Master).įor the ESP32 i used this ESP32-I2C Library: GitHub - gutierrezps/ESP32_I2C_Slave: I2C slave library for ESP32 I am trying to send data via I2C in both ways between two microcontrollers.
0 Comments
Read More
Leave a Reply. |