-
-
Notifications
You must be signed in to change notification settings - Fork 634
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
running on raspberry pi #347
Comments
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. |
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
<#347?email_source=notifications&email_token=AOXEAABPSUNO25E2VHIKRJDRGZAMXA5CNFSM4LE6FNG2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEOLPJHQ#issuecomment-597095582>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOXEAAFCRKIIYOHBLZSSHKTRGZAMXANCNFSM4LE6FNGQ>
.
|
@loraraspi91 Thanks for the detail. |
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
<#347 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOXEAAA2W7R63MAJDGEJ4H3SSNESPANCNFSM4LE6FNGQ>
.
|
If I try to compile the sender example with the comand line $ g++ -Wall -o LoRaSender LoRaSender.cpp LoRa.cpp Print.cpp WString.cpp itoa.cpp -lwiringPi I get-> if I try g++ -Wall -o LoRaSender LoRaSender.cpp LoRa.cpp Print.cpp WString.cpp itoa.cpp -lwiringPi if I copy the src files LoRa.cpp Print.cpp WString.cpp itoa.cpp in the folder of the LoRaSender root@Database:/etc/GA_MK23/test/LoRa4Raspi/examples/LoRaSender# g++ -Wall -o LoRaSender LoRaSender.cpp LoRa.cpp Print.cpp WString.cpp itoa.cpp -lwiringPi |
? |
This library does not work on Raspberry Pi, or any Linux for that matter. The link provided in the first comment is probably what you want. |
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
The text was updated successfully, but these errors were encountered: