SparkFun Forums 

Where electronics enthusiasts find answers.

For the discussion of Arduino related topics.
By xefil
#117640
Hello to all!

I'm new in this forum as well as a new Arduino user. I'm really at the beginning and after some tests reading sensors I would like to communicate between two Arduino via two HopeRF RFM22B I bought here on sparkfun (http://www.sparkfun.com/products/9581)
As writte I'm new on electronic world and programming Arduino. And so I'm searching for some help (or better examples/libraries) to set up a really easy way to send some data between two Arduinos. I've tested the example-code located here:

http://www.sparkfun.com/datasheets/Brea ... e-Code.zip

But I'm not able to let it work. First of all I've a doubt on the wiring:

CSN should connected to D8 (digital 8 PIN), but I'm not sure which is the CSN pin. From the doc I think it's the nSEL (Datasheet: http://www.sparkfun.com/datasheets/Wire ... /RFM22.PDF)

BTW, copying the example into Arduino Alpha (0019) and uploading it:

error: expected primary-expression before ‘.’ token
on line
"static FILE mystdout = FDEV_SETUP_STREAM(uart_putchar, NULL, _FDEV_SETUP_WRITE);"

I'm thinking the example code is not directly usable for Arduino without modification and I'm not so proof :-)

Is there someone with experience and has examples/libraries I can use to test it or could help me with this?

Thank's a lot!!!

Simon
By matthijsfh
#117674
Hello there,

I do not know for sure if you want to do this all the way yourself, or if it would be ok for you to buy a solution and then continue with the rest of your project...... Getting the RFM12 to work really good is not as easy as it seems. Especially the timing is a "pain in the ***" to get it right. Been there, done that.

A very simple solution it to buy a "transparant" wireless uart /rs-232 link. I am using such a solution and that works good enough. http://www.usbscope.eu/wireless/uart_link.html

Greetings Matthijs
By xefil
#117675
Thank you for the reply.
That sounds a good solution, overall 'cause successfully tested. My problem is, I've received the RFM22B yesterday, also would like to try them befor start search something new.
Why I've started with this? Easy, I'm asked on arduino forum and the best answer was on RFM12 and, better, the newest model RFM22. I've purchased them without searching for any example code, my mistrake.
Then, found the code on sparkfun I've thought it should work, btw it's not so easy for me :)
Any help with example code or solution would be great.

Thank's!

Simon
By rubinoae
#125892
xefil wrote:Hello to all!

error: expected primary-expression before ‘.’ token
on line
"static FILE mystdout = FDEV_SETUP_STREAM(uart_putchar, NULL, _FDEV_SETUP_WRITE);"

Hi Simon, did you ever resolve this error? I didn't realize using the RFM22 would be so difficult when I bought it. I'm trying to make the examples work with the Arduino IDE but I've run into the error you mentioned above...
By rubinoae
#126358
In my previous post I wrote:I didn't realize using the RFM22 would be so difficult when I bought it.
the RF22 Library for Arduino here: http://www.open.com.au/mikem/arduino/RF22/ was the answer i was looking for. I have two Arduino Pro Minis chatting away... Unfortunately I can't seem to get it working with my Arduino Uno. Anyone else having difficulty using an RFM22 with an Arduino Uno? I get: "RF22 init failed" in the serial monitor.
By lzt
#135976
Hi, I got the same problem. But after two weeks working, I made initial function working. You can just add the delay time up to 30 from 1 in reset function. And you can change the data rate (RB) to 2 kbs or lower and frequency deviation (FD) to 5 kHz or lower then sending function will be working. Now I'm still working on receiving function. I have been stuck in this problem for more than two weeks. Does anybody have idea?
By coryduce
#137652
I've also used the FM22 library from http://www.open.com.au/mikem/arduino/RF22/ with good results, but it is on a board that is running at 3.3V http://blog.ckdevices.com/?p=119. When you interface with the UNO are you doing any level shifting on the communication lines between the UNO and the RFM22B? That could be part of you problem.

-Cory
http://www.ckdevices.com