Sent data from UNO to mega2560

I want code sent data on float read by UNO sent to mega2560

Hello wau_2544

Welcome to the worldbest Arduino forum ever.

Take a view here to gain the knowledge:

hth

Have a nice day and enjoy coding in C++.

Which distance between the boards?

Do you want to send the float value as text or in binary format?

If it's text, you can study Serial Input Basics - updated for ideas about serial communication. On the Mega, you can use the examples; modify for e.g. Serial1 instead of Serial) so Serial stays available for debug output to the PC. On the Uno you can use SoftwareSerial to connect to the Mega's Serial1 in that case.

Which communication line of the following you want to use?
1. Software UART Port
2. I2C Bus
3. SPI Port

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.