Author Topic: Using RFM69 with Arduino Uno and Mega  (Read 10564 times)

Sirocco

  • Newbie
  • *
  • Posts: 8
Using RFM69 with Arduino Uno and Mega
« on: March 04, 2014, 02:37:10 AM »
Hello guys. I'm trying to test Using RFM69 with Arduino uno and mega, but having issues. I'm now describing the situation.
I read the wiring schematics  from topics
http://lowpowerlab.com/forum/index.php/topic,239.0.html and
http://lowpowerlab.com/forum/index.php/topic,171.0.html

But i'm not sure that i understood exactly. So my connection for uno is as following
pin 10 -> NSS, pin 11 -> MOSI, pin 12 -> MISO, pin 13 -> SCK, pin 3 -> DIO 0, 3.3V and GND correspondingly.
In connection  NSS, MOSI and SCK are connected through 2.2K/1K

And   mega is as following
pin 53 -> NSS, pin 51 -> MOSI, pin 50 -> MISO, pin 52 -> SCK, pin 3 -> DIO 0, 3.3V and GND correspondingly.
Here also NSS, MOSI and SCK are connected through 2.2K/1K.
Can somebody check this wiring and correct if wrong ? ????
And also i upload Struct_send and Struct_receive to arduinos. When i open Serial monitor it
Transmitting at 433 Mhz...
SPI Flash Init FAIL! (is chip present?)
Sending struct (10 bytes) ...

--------------------------------------------
Listening at 433 Mhz...
SPI Flash Init FAIL! (is chip present?)

What does it mean "SPI Flash Init FAIL!" ?
what the reason is for this and does it affect to work of RFM69 ?




Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 6152
  • Country: us
    • LowPowerLab
Re: Using RFM69 with Arduino Uno and Mega
« Reply #1 on: March 04, 2014, 08:32:50 AM »
I think you should be connecting DIO0 to D2 not D3.
The "SPI Flash Init FAL!" means a flash chip was not found or hardware ID doesn't match the ID provided in the sketch. It doesn't affect the RFM69 functionality.

Sirocco

  • Newbie
  • *
  • Posts: 8
Re: Using RFM69 with Arduino Uno and Mega
« Reply #2 on: March 07, 2014, 03:57:56 AM »
Thank you very much. I could do it. Now question is about wireless M-bus. There is such point In the RFM69HW datasheet that this module can be applied to wireless m-bus. How is it possible? what should i do for using it? Or may be it's sending/receiving data by wireless m-bus ?

Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 6152
  • Country: us
    • LowPowerLab
Re: Using RFM69 with Arduino Uno and Mega
« Reply #3 on: March 07, 2014, 07:35:13 AM »
Sorry I'm not familiar with wireless m-bus, can you explain a little what you're trying to achieve or some details...

Sirocco

  • Newbie
  • *
  • Posts: 8
Re: Using RFM69 with Arduino Uno and Mega
« Reply #4 on: March 12, 2014, 08:39:15 AM »
I dont have much information about this protocol. i have read a little about it from wikipedia and http://www.m-bus.com/. At the moment i have several devices from radiocrafts.com (http://radiocrafts.com/index.php?sideID=623&ledd1=622)which work with wireless m-bus protocol. Now i have to determine whether RFM69 can be integrated with those devices. Exactly say, could rfm69 send/receive data to/from radiocraft's gateway for example.

Sirocco

  • Newbie
  • *
  • Posts: 8
Re: Using RFM69 with Arduino Uno and Mega
« Reply #5 on: March 13, 2014, 09:06:27 AM »
I can't find any info about this. Does it mean that i will not be able to implement it ?

chalupien

  • Newbie
  • *
  • Posts: 21
Re: Using RFM69 with Arduino Uno and Mega
« Reply #6 on: March 18, 2014, 05:33:42 PM »
I am wondering how the schematic looks for incorporating this level shifting...

pin 10 -> NSS
pin 11 -> MOSI
pin 12 -> MISO
pin 13 -> SCK

pin 2 -> DIO 0
3.3V and GND correspondingly.

In connection  NSS, MOSI and SCK are connected through 2.2K/1K

Mentioned above this 2.2k/1K setup? How does this look and what is it doing?

ALso isnt there the problem with the 3.3v output from an uno not having enough current to drive the chip to 20dbm?

So how much current does the 5v from the uno provide?

My main question is what is theis 2.2k/1k resistor setup?

Isnt this just for receiving data from the RFM69/ What about sending data to it?

Thanks!
« Last Edit: March 18, 2014, 08:18:22 PM by Felix »

Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 6152
  • Country: us
    • LowPowerLab
Re: Using RFM69 with Arduino Uno and Mega
« Reply #7 on: March 18, 2014, 08:28:07 PM »
I'm not sure if the 3.3V from Arduino is enough to power the RFM69HW.
The 2.2k/1k is a resistor divider to do the level shifting for the data signals to RFM69. Many threads in this forum describe how various users did this. The values are not set in stone but should be above 1K to limit the current that is leaked through those signal pins. For instance you could use 10k/4.7k instead.

chalupien

  • Newbie
  • *
  • Posts: 21
Re: Using RFM69 with Arduino Uno and Mega
« Reply #8 on: March 19, 2014, 11:04:42 AM »
Ok great but it sounds like this will only shift the V one way (down) so that the arduino can talk to the rfm69. How about the other way? Do I just need a level shifting chip?

Im guessing the moteino just runs off 3.3V and that's that...

chalupien

  • Newbie
  • *
  • Posts: 21
Re: Using RFM69 with Arduino Uno and Mega
« Reply #9 on: March 19, 2014, 11:10:25 AM »
Does the level shifting need to go from the RFM69 to the arduino? Im rethinking and I dont believe any commands get sent to the Arduino. I may be wrong...

Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 6152
  • Country: us
    • LowPowerLab
Re: Using RFM69 with Arduino Uno and Mega
« Reply #10 on: March 19, 2014, 07:34:52 PM »
You only have to shift down to the RFM not back into Arduino
Please see a tutorial on level shifting for details and available options on how to do it, pros/cons etc etc

coachclass

  • Newbie
  • *
  • Posts: 2
Re: Using RFM69 with Arduino Uno and Mega
« Reply #11 on: March 19, 2014, 11:10:26 PM »
hey, how are you physically connecting the RFM69 to the Uno?  I'm a newbie when it comes to soldering.