Closed loraraspi91 closed 3 years ago
Neat! I'll have to dig around and see if I have a LoRa on a module to test this.
@loraraspi91 Hi, It would be great if you have a basic sample wiring the LoRa sx1278 and a Pi.
Maybe a photo is sufficient. Thanks for the porting
I do not use specific wiring, I'm using the same pin like the original Lora library
You just have to connect your sx1278 to SPI. connect the NSS (Chip select) to a GPIO, Reset to another GPIO DIO0 to another GPIO of course connect power of the Sx1278 to the Raspberry Pi Connector
after you use the LoRa.setPins( Nss, Reset, DIO0); you have to use WiringPi number to specify it in the command.
For my test, I use CE0 pin for NSS of the raspberry pi (wiringpi =10); I also use GPIO25 for Reset (WiringPi = 6) and I used GPIO19 (WiringPi 24)
but you can adapt it according to your board.
to be precise for your sx1278
1278 --> Raspi connector pin 8, DIO0 ---> pin 35, GPIO19, WPi 24 pin 17, MISO --> pin 21, MISO pin 18, MOSI --> pin 19, MOSI pin 16, SCK --> pin 23, SCLK pin 19, NSS --> pin 24, CEO/GPIO8, WPi 10 pin 7, NRESET --> pin 22, GPIO25, WPi 6
LoRa.setPins (10, 6, 24);
Le mar. 10 mars 2020 à 14:49, IoTThinks.com notifications@github.com a écrit :
@loraraspi91 https://github.com/loraraspi91 Hi, It would be great if you have a basic sample wiring the LoRa sx1278 and a Pi.
Maybe a photo is sufficient. Thanks for the porting
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/sandeepmistry/arduino-LoRa/issues/347?email_source=notifications&email_token=AOXEAABPSUNO25E2VHIKRJDRGZAMXA5CNFSM4LE6FNG2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEOLPJHQ#issuecomment-597095582, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOXEAAFCRKIIYOHBLZSSHKTRGZAMXANCNFSM4LE6FNGQ .
@loraraspi91 Thanks for the detail. It is sufficient for me already.
Thank you so much, could you make an comunication between Pi and Arduino (LORA SX1278, RA02) by TEXT. Thank you.
Hello,
I think it should work. I do not have the SX1278, RA02 Arduino module to make the test. You have to be sure that the frequency and LoRa configuration are the same on both side.
You can try with the sender.cpp example ( LoRa.print("hello ") ).
Best regards
Le lun. 30 nov. 2020 à 08:45, kizu29038988 notifications@github.com a écrit :
Thank you so much, could you make an comunication between Pi and Arduino (LORA SX1278, RA02) by TEXT. Thank you.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/sandeepmistry/arduino-LoRa/issues/347#issuecomment-735613721, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOXEAAA2W7R63MAJDGEJ4H3SSNESPANCNFSM4LE6FNGQ .
Dear All,
For my personal needs, I port this arduino-Lora library code on raspberry pi, you can find all the code here:
https://github.com/loraraspi91/LoRa4Raspi
I also did the effort to port almost examples to raspberry pi. I kept the same API, so it is very easy to run an actual Arduino-Lora code on raspberry pi.
you are free to merge my port in this library, so this library could also supported by Raspberry pi.
Sorry, if it is not the right place to put this information.
Laurent