Hello, i have successful communication between 2 arduino mega but i am trying between Arduino Mega and Leonardo but neither transmit or receive of two way communication.
Is there something different setup or connection using arduino leonardo.
Let's start with providing your attempted code (gives us some idea of both what the problem might be, and your level of understanding of Arduino software). We'll also need a schematic, though that can be a photo of a simple sketch of your connections on a piece of paper. Include ALL connections, please, so we get an accurate idea of your plans.
Respectfully,
you can post code within </> code-tags (not as a link or download)
Keep in mind that UART0 on a Leonardo does not have the pins exposed and only connects to the USB port, but GPIO pin 0 & 1 connect to UART1 RX TX.
For the rest a code that works on an UNO should work on a Leonardo, but use 'Serial1' for the exposed pins