Skip to content
Using nRF24L01+ radio modules to send remote logs of activating a sensor
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


The best documention for this project will be the code, I like to comment and I feel like my code has been extra readable for this project. This is meant as an add-on of sorts to existing security systems. It's nice having the code and being able to flash MCU.

Using nRF24L01+ radio modules nRF_Detekt send remote logs of activating a sensor from a transmitter connected to sensor; to an ideally hidden receiver. If device uses wire as transmission line, it would be easy for a physical attacker to "follow the line" to logging device.

I won't move development to Atmel Studio 7 for this project. But I would like more debugging capabilities (and just a better IDE) in the future.

Add in these libraries to the Arduino IDE to build:

==> RF24:

==> Entropy:

==> XTEA:

==> AESLib:

==> LiquidCrystal_I2C:

Currently using AES-128-ECB, then XTEA, then AES-128-ECB encryption of a 32 byte struct: a microsecond timer, 4 entropy samples, a millisecond timer, and 2 authentication variables as the packet being sent back to the receiver, whenever a sensor changes state. This should mean that the same encrypted data would be sent very rarely, if at all. Also, the 2 authentication variables means not just anything can be sent to the receiver. I kept going back and forth between more authentication but more similar messages, and less authentication but less similar messages (since I'm using AES-128-ECB) but settled on less authentication. I'm not sure how to do IV's for AES-CBC between radios just yet (I can say what I want, just not sure how to do it).

It will use a AMS1117 5V-3.3V regulator module, to supply the radio with enough power. As is, just using the 3.3V output pin on the Arduino does not supply enough current for the radio (supplies max of 50mA, we need about 130mA or so). You could also use a transistor as an amplifier for the power, or use a completely separate power supply like a LM317T (probably the best, safest, most secure option but I'm choosing not to do that for "looks" and keeping everything compact).

My WishList is the following:

  1. Want to support more better and stronger ciphers/modes.

  2. Want to make a "shield" for holding the nRF24 module and a separate power supply.

  3. Want some kind of "spread spectrum" implementation integrated in, to change channels on every send.

  4. Want to incorporate some kind of authentication chip, like the ATSHA204A.

  5. Want a battery backup power system that switches on if AC power is lost.

/* Development will happen sporatically, but mostly thru the summer and winter break times. I want to move to some other projects too. But I will keep revisiting this project because I know it can eventually be really good. */







You can’t perform that action at this time.