jgromes / RadioLib

Universal wireless communication library for embedded devices
https://jgromes.github.io/RadioLib/
MIT License
1.54k stars 384 forks source link

Two way communication #323

Closed prerak9 closed 3 years ago

prerak9 commented 3 years ago

Hello, I am using the following hardware -

  1. Arduino UNO - 2
  2. Lora Sx1278 Module - 2

Voltage - 3.3V

I want to establish a two way communication between the two devices where the receiver sends a feed back to transmitter that data is successfully received.

I want both devices to be able to communicate to each other. I couldn't find any such example code, so please help me with a sample code or any relevant info. Thank You

jgromes commented 3 years ago

You seem to be using a device with 3.3V logic (SX1278) with a 5V Arduino (Uno). That will destroy your SX1278 in the longterm and lead to stability issues in the short term. You have to use a logic level shifter between them.

I couldn't find any such example code

But I assume you did find the examples for transmit and receive right? Soooo ... have you tried combining them in some way? There's also a handy example for SX126x that shows a ping-pong exchange, it should be very easy to modify for SX1278.

EDIT: Also, this is still not an issue - converting to discussion instead.