Fix i2c communication for 2 arduinos board
Budget: €30 – €250 EUR
Context: There is Two Board connected by i2c interface, Arduino Mega (as slave) and ESP32 (as master).
Issue: When ESP32 ask for float value there is a strange error.
When float value is higher than ~150.0 (from slave side), an i2c error appear at ESP32.
Master code ESP32 : https://github.com/One-Green/iot-edge-agent/blob/main/water_master_esp32/src/main.cpp
Request float value master to slave :
https://github.com/One-Green/iot-edge-agent/blob/82922842fe22180ba97a5d4c9080fadcb6c0e4f9/water_master_esp32/lib/OGIO/OGIO.cpp#L151
Slave code Arduino MEGA : https://github.com/One-Green/iot-edge-agent/blob/main/water_slave_mega_i2c/src/main.cpp
Responding float from slave to master:
https://github.com/One-Green/iot-edge-agent/blob/9aae5819ec8b8e292c1e995c0f078d32b57c7332/water_slave_mega_i2c/src/main.cpp#L123
Issue: When ESP32 ask for float value there is a strange error.
When float value is higher than ~150.0 (from slave side), an i2c error appear at ESP32.
Master code ESP32 : https://github.com/One-Green/iot-edge-agent/blob/main/water_master_esp32/src/main.cpp
Request float value master to slave :
https://github.com/One-Green/iot-edge-agent/blob/82922842fe22180ba97a5d4c9080fadcb6c0e4f9/water_master_esp32/lib/OGIO/OGIO.cpp#L151
Slave code Arduino MEGA : https://github.com/One-Green/iot-edge-agent/blob/main/water_slave_mega_i2c/src/main.cpp
Responding float from slave to master:
https://github.com/One-Green/iot-edge-agent/blob/9aae5819ec8b8e292c1e995c0f078d32b57c7332/water_slave_mega_i2c/src/main.cpp#L123