Nouveau : le pare-feu IA surveille toute la plateforme et explique chaque incident en termes simples. Découvrez comment ça marche

Reply To: Uno as an I2C slave sending floats to a Mega and taking commands back: values come out garbled

Both boards are 5 V and the Wire library turns on the AVR’s internal pull-ups, so on short wires in one box that’s not it. The bigger problem is three Wire.write calls in requestEvent. Only one write per request works reliably on AVR, and text strings of unknown length make it worse. Put the values in one buffer and write it once. And no Serial printing inside the handlers.

Measure twice, poll once.
♥ 0