Hello,
I have an Uno and I'm trying to get the Node/Gateway example of Felix's RFM69 library to work. I'm not sure about some of the pin connections, and I don't know how to use the schematic files that Felix put up.
RFM MISO - Arduino MISO
RFM MOSI - Arduino MOSI
RFM SCK - Arduino SCK
RFM 3.3V - 3.3V regulator output
RFM GND - Common...do both GND pins need to be connected?
RFM Reset - ???
RFM NSS chip select - Arduino ???
RFM NC - Common
RFM DIOx - Not wired?
Looking at Felix's node and gateway example, I can't tell how/if the reset is used.
edit: I see Felix defines the pins in the header file of the RFM69 library. I didn't know that's how it's done. But for the slave select pin (NSS), this is what's in the header:
Quote#define SPI_CS SS // SS is the SPI slave select pin, for instance D10 on atmega328
So if I use pin D10 on the ATMEGA328 for SPI_CS, do I replace "SS" with "10"?
Quote#define RF69_IRQ_PIN 2 // INT0 on AVRs should be connected to DIO0 (ex on Atmega328 it's D2)
So the interrupt on RF69 should be routed to pin 2 digital input on the Arduino uno?
Quote from: labusr on April 12, 2014, 12:00:49 PM
....I don't know how to use the schematic files that Felix put up....
The files are in Eagle PCB format. There's a free version you can download at http://www.cadsoftusa.com/download-eagle/?language=en (http://www.cadsoftusa.com/download-eagle/?language=en).
Jeremy Blum's videos will quickly get you up and running with Eagle http://www.jeremyblum.com/category/eagle-tutorials/ (http://www.jeremyblum.com/category/eagle-tutorials/).
The schematic clearly shows all the wiring.
SS = D10 on atmega328p, (defined by arduino IDE).
The IRQ pin is DIO0 on RFM69 and should go to D2, or you can also use D3 but would need to change the definition in the lib header file.
Quote from: Felix on April 13, 2014, 05:12:33 PM
The schematic clearly shows all the wiring.
SS = D10 on atmega328p, (defined by arduino IDE).
The IRQ pin is DIO0 on RFM69 and should go to D2, or you can also use D3 but would need to change the definition in the lib header file.
Yeah, I'm pretty new to this so I didn't know where I had to look. I used your schematic wiring. On the header file, I modified the header like this:
Quote
//#define SPI_CS SS // SS is the SPI slave select pin, for instance D10 on atmega328
#define SPI_CS 10 // SS is the SPI slave select pin, for instance D10 on atmega328
That's right, yeah?
SS = whatever pin your board has it defined on. In 238p case it is = 10, so your replacement is pointless.