- Sun Jan 16, 2011 9:47 am
#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
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