A 16bit random number is generated and stored in EEPROM. This number can be transmitted via a short range RF link to a receiver and a picaxe. The receiver picaxe has a switch which when operated will cause the microcontroller to go into a “learn” mode.
The random number (transmitter ID code) is transmitted from the first device and the receiver picaxe memorizes and stores this number associated with the first transmitter. The number is transmitted again and if it is the same as the recently stored number, an OK beep is generated.
A second transmitter is activated and a second random number is generated. The receiver picaxe memorizes and stores this number and associates it with the second transmitter. This process continues until n (to be determined) transmitters are memorized. The learn mode is switched off.
Subsequently, if any transmitter sends its own random number, preceded by a suitable preamble to condition the receiver and alert the picaxe that a number will be coming next. The receiver picaxe will then do various things depending on which transmitter has sent the signal.
I am open to suggestions on what protocol could be used and how to strip out the n random numbers (transmitter ID codes).
The random number (transmitter ID code) is transmitted from the first device and the receiver picaxe memorizes and stores this number associated with the first transmitter. The number is transmitted again and if it is the same as the recently stored number, an OK beep is generated.
A second transmitter is activated and a second random number is generated. The receiver picaxe memorizes and stores this number and associates it with the second transmitter. This process continues until n (to be determined) transmitters are memorized. The learn mode is switched off.
Subsequently, if any transmitter sends its own random number, preceded by a suitable preamble to condition the receiver and alert the picaxe that a number will be coming next. The receiver picaxe will then do various things depending on which transmitter has sent the signal.
I am open to suggestions on what protocol could be used and how to strip out the n random numbers (transmitter ID codes).