|
Creating a secure remote control system with the HS Series encoder and decoder is very simple. The application circuits shown here use LR Series RF modules. First, we will look at the transmitter / encoder side.

Click here for a detailed PDF diagram.
In this example, the data lines (D0 - D7) are connected to buttons, and when any button is pressed, the SEND line is pulled high, which causes the encoder to transmit. Diodes are used to prevent the voltage on one data line from affecting another.
The KEY_IN line is attached to a port, which allows the key to be transferred from the decoder during setup. To ensure security, this would normally be a wire, contact, or short-range IR link, although any connection capable of transferring asynchronous serial data may be utilized.
None of the inputs have internal pull-up or pull-down resistors, so 100kΩ pull-down resistors are used on the data, SEND, and CREATE_PIN lines. These resistors are used to pull the lines to ground when the buttons are not being pressed, which ensures that the pins are always in a known state and not floating. Without these resistors, the state of the lines cannot be guaranteed and encoder operation may not be predictable.
A LED is attached to the MODE_IND line to provide visual feedback to the user that an operation is taking place. This line will source a maximum of 25mA, so the limiting resistor may not be needed, depending on the LED chosen and the brightness desired. A LED can also be connected to the TX_CNTL line to provide visual indication that the encoder is sending data.
Outgoing encrypted data will be sent via the DATA_OUT line at the baud rate determined by the state of the SEL_BAUD line. In the circuit above, the baud has been set for 4,800bps by pulling it to ground. The DATA_OUT line is connected directly to the DATA line of the LR Series transmitter.
The TX_CNTL line is connected to the PDN line of the transmitter so that the encoder can put the module into a low-power state when not in use. Since this line can source 25mA and the module only consumes 6mA, the encoder can be used to power the transmitter rather than using Vcc. This means that the transmitter will not pull any current when not in use rather than the 5 nanoamps (nA) it will consume when powered down.
In the example above, the data lines are pulled high by simple pushbutton switches, but many other methods may be employed. Contacts, reed switches, or microcontrollers are just some examples of other ways to pull the data lines high.
Next, we will look at the receiver / decoder side.

Click here for a detailed PDF diagram.
In this circuit, the baud rate has been set for 4,800bps by pulling the SEL_BAUD line to ground.
SEND_COPY, CREATE_KEY, and LEARN are all connected to buttons that will pull the line high when pressed. Since the lines do not have internal resistors, 100kΩ resistors are used to pull the lines to ground when not in use.
COPY_IN is connected to a port that allows the transfer of the User Data from another decoder. This port can be a simple wire, an infrared receiver, or any other device that allows the transmission of asynchronous serial data.
The KEY_OUT line is connected to a port that allows the transfer of the key to an encoder or another decoder. This port can be a simple wire, an infrared diode, or any other device that allows the transmission of asynchronous serial data.
The KEY_OUT line can also be connected to a microprocessor or PC to record the transmitter identity. Linx Application Note AN-00156 has sample C code that will read the transmitter ID and display the ID number on an LCD screen.
A LED indicator is attached to the MODE_IND line to provide visual feedback that an operation is taking place. This line will source a maximum of 25mA, so the limiting resistor may not be needed, depending on the LED chosen and the brightness desired.
The DATA_IN line is connected directly to the DATA output of the receiver.
Data Lines D0 through D7 can be connected directly to the external circuitry that is to be activated remotely. In this example, D5 is connected directly to a piezoelectric buzzer, which will cause the buzzer to sound when the D5 line on the encoder goes high. Line D6 will activate a relay through a transistor buffer when it goes high. A buffer like this may be needed if the decoder cannot source enough current or voltage to energize the relay coil. The decoder will turn on the transistor, which will provide the appropriate drive levels to the relay.
As can be seen by these examples, creating a highly secure remote control system with the HS Series is very straightforward. The flexibility of the encoder, combined with the associative options of the matching decoder, opens a new world of possibilities for creative product designers. For more information on the HS Series and the LR Series, please see our website, www.linxtechnologies.com.
Click here for more information about the HS Series. >>
Click here for more information about the LR Series. >>
|