Lora EEbytes radio Arduino Mega issue

So I am using 1 arduino uno and 1 arduino mega and 2 Lora E32 radios. The mega can send messages but cannot receive them from the uno. The uno can receive messages from the mega. Now i can move the tx and rx to different pins from 2,3 to 16,17 and 18,19 and still have the same issue. Now at this point I can replace the mega with another uno and communications works both ways no problems at all. I am using the Ebyte Lora E32 library. The same code on all three boards and same circuits, using level shifters as well. So I can again just replace the mega with the uno and it works great, using the exact same pins 2,3. Please help.

sounds like you have poor connections
I assume you are using a breadboard with jumper wires - can be a source of poor interconnections and intermittent problems - can be very difficult to find and fix problems
I tend to use microcontroller modules with onboard LoRa, e.g. TTGO LoRa32 SX1276 OLED Board or at a minimum use a microcontroller which uses 3.3V logic removing the requirement for level converters

Sounds like your using softwareserial on the Mega, which is odd, given that the Mega has 3 spare hardware serial ports.

Software serial also wont work for RX on Mega pins 2,3,16,17,18,19 ......

Thanks so much for the response but I do not think its a loose connection. I can remove the wires from the uno and put them in the mega and it does not work, i can then replace the mega with the uno and it works. I am using a breadboard but the wires I move back and forth are going into the connectors on the boards. Is there something about the mega that could be causing this issue ?

Yes.

The problem was detailed in post #3.

1 Like

Thanks again I did not see post #3. So for various reasons I have required to use the hardware serial pins 18,19. However the available libraries will not work for those pins. Even if I do not use software serial use the code for the hard-wired serial. How would I integrate the serial1 into the library, /www.mischianti.orgc?

you could try using a constructor such as

LoRa_E22 e22ttl(&Serial1, 3, 4, 5); //  RX AUX M0 M1

set the AUX M0 M1pins to suit your configuration

Thanks so much horace, this worked.

if the problem is solved click the Solution button at the bottom of the reply that answered the question - this helps others with a similar question

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