Comments: RFM69HCW Hookup Guide

Pages

Comments 8 comments

  • EDIT: I found an article that I think answered my question. I misunderstood what the 50 ohms was referring to.

    This was a fantastic guide! It worked no problem on my Arduino Uno with the default wiring that was given for the RedBoard. One question though. I need to use a remote antenna, and the guide says to use a 50 ohm coax cable, but does this mean 50 ohms OR LESS, or is a little bit of resistance actually required? And I assume this means that both the ANT and the GND lines inside the coax should EACH be 50 ohms? I googled around a bit and couldn’t find a satisfying answer. Thanks!

  • To get this working with a Yun First Generation (and probably some of it applies to other ATmega32U4 based boards):

    1) Connect SPI lines MISO, MOSI and CLK from the ICSP header to RFM69BOB pins O,I and C respectively. (Do not use pins 11-13 as the tutorial for the Uno)

    2) For Slave Select use Yun Digital Pin 10 (i.e. connect RFM69BOB pin S to Yun pin D10)

    3) For the Rx Interrupt use Pin 3, not Pin 2 as in the Tutorial (look at RFM69.h ifdef for AVR_ATmega32U4 to understand why)

    In your code set the slave select pin like so:

    // Initialize the RFM69HCW:
    radio.setCS(10);
    radio.initialize(FREQUENCY, MYNODEID, NETWORKID);
    radio.setHighPower(); // Always use this for RFM69HCW
    

    That’s it!

    Note that the Yun/ATMega combo seems to be a bit slow on sending the ACK so for your other radios you should use a bit more time and retries if you want ACK to work. I am currently using (on all other radios except the Yun):

    radio.sendWithRetry(TONODEID, sendbuffer, sendlength, 5, 100)
    

    Hope this helps other Yun Generation 1 users that want to mess with RFM69 and use the Yun as the IoT gateway.

  • “Be sure that you’re powering your Arduino with a “Beefy 3” FTDI board, a wall-wart, or a Lipo battery.”

    Please forgive my ignorance, does this mean you can use: a “Beefy 3” FTDI board or a wall-wart, or a Lipo battery, Or does it mean a “Beefy 3” FTDI board with, a wall-wart, or a Lipo battery?

    Thank you

    • Sorry for the confusion (and Oxford comma); you can power your project with any of those options. The main takeaway was that a normal (not Beefy) FTDI board can’t provide enough power to run the RFM69, so use something else (or in addition to that).

  • Not really experienced with Arduino and even less so with github. I installed the most recent version of the Arduino IDE last night. I can’t say I have if problem with the hardware, because I can’t get the code to compile. I downloaded, the library .zip file then used the Arduino IDE, Libraries >Manage >add .zip file to install it. I then loaded the Examples > node file into the Arduino IDE. It wouldn’t compile. I getting library file errors on the spi flash .lib file. I then used the “copy code ” button to copy the code directly from the tutorial and got the same errors. I pretty sure it’s something I’m buggering up but cant find it. I’ll post the actual error comments later today, since I’m not at that machine now. Thanks for the sanity check.

  • Could this be used to make a wireless USB connection, by plugging one of the arduino/RFM69HCW packages to a computer, and the other to a phone or printer? And then sending the data out the USB as you normally would (ie. just hitting print).

    • If your USB application uses a COM (serial) port, then yes, this can be done. The example code we use in this Hookup Guide is very close to what you’d need (when you type characters in one end, they come out the other). You’ll just have to come up with a way to pass carriage returns (which we’re using as a signal to send a packet but not actually transmitting), and delete the code that prints out extra diagnostic information.

  • I need a bit help about your product. I connected all connections with Bidirectional Logic Level Converter in arduino nano and uno when i try to transmit something in serial port that gave me an error. like “Node 2 ready , !1Node 2 ready, ⸮Lꋕ⸮2 ready, sendi⸮ , Node 2 ready !1Node 2 ready ⸮Lꋕ⸮2 ready sendi⸮” I provided enough current between 3.3V and gnd with “RXN1502D” Dc power supply. I also tried to connect 100uF/25V capacitor to 3.3V and gnd as parallel connection.


If you've found a bug or have other constructive feedback for our tutorial authors, please send us your feedback!