I have a Nordic RF transceiver module and a key FOB from SparkFun that I wanted to get working with a PICAXE 20M2.
I had some Basic Stamp code that I worked on a few months ago, so I just had to convert it.
I am attaching the code in case anyone might be interested.
Here is program output showing register values and detected button/count info
The key FOB description
I had some Basic Stamp code that I worked on a few months ago, so I just had to convert it.
I am attaching the code in case anyone might be interested.
Here is program output showing register values and detected button/count info
Code:
Initialized
Register 0 = 00111011
Register 1 = 00000000
Register 2 = 00000011
Register 3 = 00000011
Register 4 = 00000000
Register 5 = 00000010
Register 6 = 00000110
rxAddr P0: 231 231 231 231 231
txAddr: 231 231 231 231 231
442 Top
443 Bottom
445 Left
446 Right
447 Center
The key FOB description
This is a nicely packaged key FOB that contains a Nordic nRF24L01+ radio and a ATtiny24 for control. Press any one of 5 buttons and the ATtiny24 will wake up, transmit the buttons being pressed, a 16-bit integer value of the total button presses since last battery replacement, and then return to low-power sleep.
Attachments
-
12.7 KB Views: 88
Last edited: