nRF905 Wireless Transceiver
The Nordic nRF905 is a highly integrated, low power, multiband RF transceiver IC for the 433/868/915MHz bands. See Nordic's site for more information.
The NRF905 (About Modules) module provides functions that allow you to easily send and receive data.
You can wire this up as follows:
NRF905 | Espruino | Type |
---|---|---|
1 (VCC) | 3.3 | 3.3v |
2 (CE) | A7 | GPIO out |
3 (UCK) | unused | CLK |
4 (AM) | unused | Address Match |
5 (MISO) | B14 | SPI MISO |
6 (SCK) | B13 | SPI SCK |
7 (GND) | GND | GND |
8 (TxEN) | A6 | GPIO out |
9 (PWR) | 3.3 | 3.3v |
10 (CD) | unused | Carrier Detect |
11 (DR) | B1 | GPIO in |
12 (MOSI) | B15 | SPI MOSI |
13 (CSN) | B10 | GPIO out |
14 (GND) | GND | GND |
How to use module:
var DR=B1;
var CSN=B10;
var TXEN=A6; //also seen as TX_EN or TXE
var CE=A7; //also seen as TRX_EN
function RX_callback(data){
console.log("Got "+JSON.stringify(data));
}
SPI2.setup({sck:B13, miso:B14, mosi:B15 });
var NRF = require("NRF905").connect(SPI2, CSN, DR, TXEN, CE);
// Init both the module RX address and the RX callback
NRF.init(0x17, RX_callback);
// Send a packet: requires the TX address and a byte array, up to 32 bytes
NRF.send(0x17,['H','e','l','l','o']);
This module could do with a bit more documentation - if you can, please click here to help improve it.
DataSheet
Buying
This page is auto-generated from GitHub. If you see any mistakes or have suggestions, please let us know.