The RF2400x is a 2.4Ghz transceiver module from INHAOS ( China). These modules are meant to be compatible with the Nordic NRF24L01+ modules. While these modules can communicate with the Nordic modules, the programing is slightly different.
The INHAOS modules cost $2.99 each with free shipping from China, compared to > $19.00 each plus shipping for the Nordic modules from Spark Fun. Functionally they are basically the same, however the Nordic Module has an on board 3.6V regulator and can take 5v Vdd. The INHAOS module has no regulator and can only take Vdd up to 3.6 volts. The Nordic Module module has an Antenna Factor chip antenna while the INHAOS has a PCB trace antenna. This gives Nordic module an edge on range. However the INHAOS has a max output of 5 dBm compared to the Nordic 0dBm. It would be easy enough to peel off the trace antenna on the INHAOS and solder on a chip antenna . This would give the INHAOS a big range advantage over the NORDIC with 5dBm vs 0dBm.
1. The INHAOS has no 250Khz AIR Data Rate option.
2. To write to registers 28 & 29 you must first write the "Activate" command byte
then write the register and then do a hard reset.
3. A hard reset may be required after changing the default receive addresses for the Data Pipes
Suggest keeping the default addresses unless multiple star networks are set up in
the same location.
These programs are for basic testing or the INHAOS RF2400 Transceivers. One program sets the Module
as a dedicated receiver and the other as a dedicated transmitter. Automatic packet handling is not enabled for the purpose of this demo. These are intended to show how to program the modules and to use the HSPI interface and to do range testing.
I will post code for automatic packet handling soon.
There are several subroutines ( functions) that are not used. These functions have been tested to
work and can be used in a modified program.
The code is written for a 20x2. You will need to modify the pins / variables to suit your Picaxe
Load I_2400_TX into one Picaxe/Module combo
Load I_2400_RX into another Picaxe/Module combo
Keep Download connector connected to receive module.
Hard reset both boards.
NOTE: The receiver was detuned to allow close testing between modules. For maximum range, you will need to change the line for register 6 in config_registers to:
Have fun !
20 x 2 Connections
Physical Pins ....................... RF2400 Pins
--------------------------------------------------
Picaxe .................................. RF2400
---------------------------------------------------
Pin 1 Vdd ( 3.6v)
Pin 2 SerIn
Pin 3 Serout
Pin 4 NC
Pin 5 C.5 ................. > INHAOS IRQ Pin 8 / 10K Pullup
Pin 6 NC
pin 7 NC
Pin 8 NC
Pin 9 HSPI SDO .............. > INHAOS MOSI Pin 6
Pin 10 NC
Pin 11 SPI Clock ........... > INHAOS SCK Pin 5
Pin 12 NC
Pin 13 HSPI SDI ............ > INHAOS MISO Pin 7
Pin 14 B.4 ................. > INHAOS CSN Pin 4
Pin 15 NC
Pin 16 NC
Pin 17 B.1 ................. > INHAOS CE Pin 3
Pin 18 NC
Pin 19 NC
Pin 20 Ov
The INHAOS modules cost $2.99 each with free shipping from China, compared to > $19.00 each plus shipping for the Nordic modules from Spark Fun. Functionally they are basically the same, however the Nordic Module has an on board 3.6V regulator and can take 5v Vdd. The INHAOS module has no regulator and can only take Vdd up to 3.6 volts. The Nordic Module module has an Antenna Factor chip antenna while the INHAOS has a PCB trace antenna. This gives Nordic module an edge on range. However the INHAOS has a max output of 5 dBm compared to the Nordic 0dBm. It would be easy enough to peel off the trace antenna on the INHAOS and solder on a chip antenna . This would give the INHAOS a big range advantage over the NORDIC with 5dBm vs 0dBm.
1. The INHAOS has no 250Khz AIR Data Rate option.
2. To write to registers 28 & 29 you must first write the "Activate" command byte
then write the register and then do a hard reset.
3. A hard reset may be required after changing the default receive addresses for the Data Pipes
Suggest keeping the default addresses unless multiple star networks are set up in
the same location.
These programs are for basic testing or the INHAOS RF2400 Transceivers. One program sets the Module
as a dedicated receiver and the other as a dedicated transmitter. Automatic packet handling is not enabled for the purpose of this demo. These are intended to show how to program the modules and to use the HSPI interface and to do range testing.
I will post code for automatic packet handling soon.
There are several subroutines ( functions) that are not used. These functions have been tested to
work and can be used in a modified program.
The code is written for a 20x2. You will need to modify the pins / variables to suit your Picaxe
Load I_2400_TX into one Picaxe/Module combo
Load I_2400_RX into another Picaxe/Module combo
Keep Download connector connected to receive module.
Hard reset both boards.
NOTE: The receiver was detuned to allow close testing between modules. For maximum range, you will need to change the line for register 6 in config_registers to:
Code:
'write Register 6
low csn
[B]hspiout ($26,%00000111)[/B] 'REG 6 Data Rate 1 mbps LNA Normal Output 5 dbm
high csn
Have fun !
20 x 2 Connections
Physical Pins ....................... RF2400 Pins
--------------------------------------------------
Picaxe .................................. RF2400
---------------------------------------------------
Pin 1 Vdd ( 3.6v)
Pin 2 SerIn
Pin 3 Serout
Pin 4 NC
Pin 5 C.5 ................. > INHAOS IRQ Pin 8 / 10K Pullup
Pin 6 NC
pin 7 NC
Pin 8 NC
Pin 9 HSPI SDO .............. > INHAOS MOSI Pin 6
Pin 10 NC
Pin 11 SPI Clock ........... > INHAOS SCK Pin 5
Pin 12 NC
Pin 13 HSPI SDI ............ > INHAOS MISO Pin 7
Pin 14 B.4 ................. > INHAOS CSN Pin 4
Pin 15 NC
Pin 16 NC
Pin 17 B.1 ................. > INHAOS CE Pin 3
Pin 18 NC
Pin 19 NC
Pin 20 Ov
Attachments
Last edited: