RFM22 with Arduino Due

528 views
Skip to first unread message

Prasant Ghantasala

unread,
Apr 24, 2013, 5:27:26 PM4/24/13
to rf22-a...@googlegroups.com
Hello,

I'm trying to get the RFM22 shield to work with the Arduino Due. My code works fine with an Arduino Uno, but I am running into the following error when I try and compile it when using the Arduino Due:

\Arduino\libraries\RF22/HardwareSPI.h: In member function 'virtual void HardwareSPIClass::setBitOrder(uint8_t)':
\Arduino\libraries\RF22/HardwareSPI.h:70: error: invalid conversion from 'uint8_t' to 'BitOrder'
\Arduino\libraries\RF22/HardwareSPI.h:70: error:   initializing argument 1 of 'void SPIClass::setBitOrder(BitOrder)'

I'm a beginner when it comes to Arduino, and I'm not sure what to make of this. It would be great if anyone could provide some kind of insight.

Thanks!

Prasant Ghantasala

unread,
May 3, 2013, 4:26:46 PM5/3/13
to rf22-a...@googlegroups.com
Does anyone know if there is anyway to get the RF22 to work with the Arduino Due?

Mike McCauley

unread,
May 20, 2013, 3:51:05 AM5/20/13
to rf22-a...@googlegroups.com, Prasant Ghantasala
I dont have a due here so I cant test.
I expect the biggest problem will be with the interrupt handler and responding
to interrupts from the RF22.


Cheers.
--
Mike McCauley mi...@airspayce.com
Airspayce Pty Ltd
9 Bulbul Place Currumbin Waters QLD 4223 Australia http://www.airspayce.com
Phone +61 7 5598-7474 Fax +61 7 5598-7070

Guy Molinari

unread,
Jun 18, 2013, 4:20:38 PM6/18/13
to rf22-a...@googlegroups.com, Prasant Ghantasala
Mike,
     I have the library working on the Due.   If interested, I will forward it to you.

Guy Molinari

Mike McCauley

unread,
Jun 18, 2013, 4:39:17 PM6/18/13
to rf22-a...@googlegroups.com
Hello Guy,

On Tuesday, June 18, 2013 01:20:38 PM Guy Molinari wrote:
> Mike,
> I have the library working on the Due. If interested, I will forward
> it to you.

Sure.
Thanks.
Cheers.

Mark Sansom

unread,
Jan 5, 2014, 3:14:14 PM1/5/14
to rf22-a...@googlegroups.com
Hi,

I am trying to put together a system with 2 RFM22 shields with one connected to an Arduino Mega 2560 and the other to an Arduino Due.  The Mega is working fine with the RF22 library, but I am struggling with the Due.  Is there any chance of getting hold of this version that is working on the Due?

Kind regards,
Mark

Greg Smith

unread,
Mar 11, 2014, 6:56:56 PM3/11/14
to rf22-a...@googlegroups.com, Prasant Ghantasala
Guy, would you please share your code changes to allow Due and RFM22 to communicate? Thanks, 

Sacha Tholl

unread,
Apr 24, 2014, 8:36:10 AM4/24/14
to rf22-a...@googlegroups.com, Prasant Ghantasala
Hello,

I really would like to try your modified working Lib for getting the RFm22b working attached to my Arduino DUE.
Could you send me the lib?

Best regards
Sacha Tholl

Mike McCauley

unread,
Apr 27, 2014, 9:27:50 PM4/27/14
to rf22-a...@googlegroups.com
Hello,

If Prasant posts his Due changes publically to this list I will consider
adding the changes to the base library.
Mike McCauley VK4AMM mi...@airspayce.com

OMDevelop

unread,
Aug 4, 2014, 11:49:19 AM8/4/14
to rf22-a...@googlegroups.com, prasant.g...@gmail.com
Hello Molinari,
can you also fowrward the RF22-library to me?
Thank you very much,

OMDevelop


Am Dienstag, 18. Juni 2013 22:20:38 UTC+2 schrieb Guy Molinari:

Γιάννης Σαββάκης

unread,
Jun 10, 2016, 11:55:07 AM6/10/16
to RF22-Arduino, prasant.g...@gmail.com
Well, maybe I am a litle bit late...
... but I am trying to get a Si4432 RF transceiver module to work with the Due. I get the same errors, while with an Arduino Nano all work fine.

I also use RF22.h, so, if someone here has the modified library working okay with the Arduino Due, I would appreciate it if he sent me the library in some way...
Thanks a lot.

John.

Назар Керницький

unread,
Jul 21, 2016, 6:05:07 AM7/21/16
to rf22-a...@googlegroups.com
in file RH_RF22.cpp comment out:

_deviceType = spiRead(RH_RF22_REG_00_DEVICE_TYPE);
    if (   _deviceType != RH_RF22_DEVICE_TYPE_RX_TRX
        && _deviceType != RH_RF22_DEVICE_TYPE_TX)
    {
return false;
    }

Your later self has probably found the solution even better - a pull-up 10K on SDO line.

--
You received this message because you are subscribed to the Google Groups "RF22-Arduino" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rf22-arduino...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

magdalen...@gmail.com

unread,
Aug 23, 2018, 6:06:14 PM8/23/18
to RF22-Arduino

Hello,

I have the same error.
I try change rf22.cpp but no results.
Maybe someone help me ?

Best Regards

Mike McCauley

unread,
Aug 27, 2018, 3:48:14 AM8/27/18
to rf22-a...@googlegroups.com, magdalen...@gmail.com
Hello

RF22 library is obsolete and is replaced by RadioHead
http://www.airspayce.com/mikem/arduino/RadioHead/

and compiles on Due just fine

Cheers.
--
Mike McCauley VK4AMM mi...@airspayce.com
Airspayce Pty Ltd 9 Bulbul Place Currumbin Waters QLD 4223 Australia
http://www.airspayce.com 5R3MRFM2+X6
Phone +61 7 5598-7474



magdalen...@gmail.com

unread,
Sep 3, 2018, 6:06:07 AM9/3/18
to RF22-Arduino
Thank You very much :)






W dniu środa, 24 kwietnia 2013 23:27:26 UTC+2 użytkownik Prasant Ghantasala napisał:

magdalen...@gmail.com

unread,
Sep 3, 2018, 6:25:35 AM9/3/18
to RF22-Arduino
Hello again


How to read signal from rf24 ?
I read now from rf22 by  rf22.rssiRead()


Best Regards
Reply all
Reply to author
Forward
0 new messages