Go Down

Topic: LoRa RFM95 (Read 411 times) previous topic - next topic

Staren

Jun 13, 2018, 03:43 pm Last Edit: Jun 13, 2018, 03:45 pm by Staren
Hello there, I recently received my logic converter as you suggested me and I plugged everything back in ( see pictures, the links, can't manage to display pictures when I send them from my pc : http://imgur.com/gallery/1B7qWgt ).
Now I tried powering all this without burning the chip and after uploading the serial monitor showed me this:

0
init failed
sending message

(I'm using the Radiohead library )
I don't think it's normal that even if the init failed, the message is still sent
What could it be ?
I've searched in the library and can't find why the init returns false.

Also I modified the line rf95.waitPacketSent(); and added 9 seconds of delay and the other instructions unlocked after 9 seconds,
said there was no server online ( which is normal )
then tried to send another message but blocked again.
( Don't mind the Serial.print("Data" / "Driver ") those were just tests to see where the code stops )

Could you please help me ?
Also don't hesitate to use simple terms etc, I'm french and it would be better for me to understand all this
Thanks

Staren

Oh also I noticed I might run out of logic converters,
There are 5 digital outputs per RF M95 and I have a total of 8 digital converters
Is there a way to avoid using one of these outputs ?
Or convert them myself with resistors ?

srnet

#2
Jun 13, 2018, 04:24 pm Last Edit: Jun 13, 2018, 04:26 pm by srnet
I don't think it's normal that even if the init failed, the message is still sent
What could it be ?
I've searched in the library and can't find why the init returns false.
The init writes to one of the LoRa devices registers and then reads it back, if this fails you get the init failed message.

So as before, you either have it wired wrong, the LoRa device is faulty or there is a problem with the Arduino.
$50SAT is now Silent (but probably still running)
http://www.50dollarsat.info/
http://www.loratracker.uk/

Staren

Regarding the wiring,
It's: (Arduino side ---> Chip side )
DiO 13 ---> SCK
DiO 12 ---> MISO
DiO 11 ---> MOSI
DiO 10 ---> NSS
DiO 2 ---> DIO0
3.3V ---> 3.3V
GND ---> GND

I may have burned the chip the last time.
Should I try with another one with this wiring setup ?

srnet

If the wiring is correct, and the Arduino is OK then all you can really do is;

Try another RFM95
Try another SPI device, to check if the Arduino is OK.
$50SAT is now Silent (but probably still running)
http://www.50dollarsat.info/
http://www.loratracker.uk/

Staren

Okay, thanks for your answers !
I'm gonna use another RF M95 and if this new one isn't initializing either I'll quintuple-check the wiring

Staren

Hello again,
So I tried wih the other chip ( never used it ) and it's doing exactly the same thing (Init failed then sending then no server found the re sending then nothing )

So in that case I guess the only solution is the wiring but again I connected everything at the right place
Anyone has an idea ?
Thanks

srnet

#7
Jun 15, 2018, 03:47 pm Last Edit: Jun 15, 2018, 03:47 pm by srnet
Anyone has an idea ?
Connect to a proper 3.3V device such as a £1.50 3.3V Arduino Pro Mini.

If it fails init, there is no device found, see #2 for the reasons why this may be.
$50SAT is now Silent (but probably still running)
http://www.50dollarsat.info/
http://www.loratracker.uk/

Staren

Connect to a proper 3.3V device such as a £1.50 3.3V Arduino Pro Mini.

If it fails init, there is no device found, see #2 for the reasons why this may be.
I use logic converters so the voltage is at 3.3V instead of 5V
What's #2 ?

srnet

I use logic converters so the voltage is at 3.3V instead of 5V
Have you used a scope to check the levels and edges on both sides of the logic converter ?

Quote
What's #2 ?
Post 2 in this thread.
$50SAT is now Silent (but probably still running)
http://www.50dollarsat.info/
http://www.loratracker.uk/

Staren

Oh the message number 2 my bad
I'd like to share the wiring again but I don't think it comes from that, and my arduino is okay with other chips

It'd be bad if both Rfm95 chips from the same pack are faulty

Staren

Have you used a scope to check the levels and edges on both sides of the logic converter ?

Post 2 in this thread.
I don't get the first sentence, what do you mean ?

I noticed something stupid, I thought as I already had the chip plugged to the arduino I didn't need to plug the logic converter with the GND, 5V and 3.3V wires

Now it still fails the init but I don't get 0 at the beginning, I'm getting "FF"

jremington

#12
Jun 15, 2018, 04:36 pm Last Edit: Jun 15, 2018, 04:37 pm by jremington
Quote
I noticed something stupid
Since you can't seem to avoid making mistakes, get a 3.3V Arduino and some new radio chips.

Staren

I won't learn how to get rid of those mistakes though.
By the way I think my arduino IS able to deliver 3.3V because there's a 3.3V port, but on my last topic I've been told I HAD to use these logic converters even with this arduino
Any hint ?
Was it false ?

srnet

I don't get the first sentence, what do you mean ?
If you had used a scope to check the signals either side of the logic level converter its likley there would of been an indication of a problem, the logic converter could have been faulty, not good enough or it could have been miss-wired.

Re-read #7.

 
$50SAT is now Silent (but probably still running)
http://www.50dollarsat.info/
http://www.loratracker.uk/

Go Up