If you are watching your favorite movies lying on the couch, or listening to WinAmp, and you are too lazy to reach out to Claudia to rewind the track or put out the sound or something, then this devaysin is for you. This is something like a normal COM infrared controlled by any remote control, and a special program that actually controls the operation of an application. So, in order.
Step 1. Hardware
We will need:
- The remote control (with the exception of the Horizon remotes and some Panasonic models, their signal carrier frequency is 400 kHz, and the COM port operating frequency is up to 115 kHz. Mostly the remotes have a signal frequency of 30-40 kHz.)
- Radio components:
- a photodetector - the simplest option is the domestic TK-19 or TK1833. Import analogues TSOP 1738, TSOP1836 will do. In general, any 5-volt.
Pinout shown in Figure 2,
- 20µF 25V capacitor
- resistors - 5.1, 10kΩ 0.125 or 0.5W
- LED - any. Cathode foot shorter
- 9 needle COM connector type "mother" with the case.
We collect the "most complicated" scheme shown in Figure 1,

Pic.1
No | Designation | Purpose | Signal |
one | DCD | Input | Data Carrier Detect |
2 | Rxd | Input | Recieved Data |
3 | Txd | Output | Transmitted Data |
four | DTR | Output | Data Terminal Ready |
five | GND | - | Signal ground |
6 | DsR | Input | Data set Ready |
7 | Rts | Output | Request To Send |
eight | CtS | Output | Clear To Send |
9 | RI | Input | Ring Indicator |
If there is no desire, the switch is not set. We cling everything to foot 1 or 2. Here is the pinout of the COM connector that can be found on the Internet:
But consider that when the signal on foot 2 works better. Here is the pinout of the receiver contacts:
Twice or three times we are convinced that everything has been soldered correctly in compliance with all polarities, and connected to the computer’s COM port.
-Where is the WINDOWS message about a new device ???
No! And will not be! :)
Step 2. Program. |
WinLirc and Device Controller are simple programs that require a plug-in for applications (for WinAmp- a separate plug-in is installed, for Light Alloy it is not required).
-Driver WinLirc
')
After starting the program will say that it must be configured.

Click OK and get to the configuration menu. For the assembled scheme, we set the parameters as shown in the figure below, except for the port parameter. In this parameter you specify your COM port number to which the assembled IR receiver was connected.

(It all depends on which foot you attached the receiver to, or in what position the switch.)
To check the assembled scheme, it is necessary to temporarily select the sample.cf file in the Config line, which lies in the winlirc-0.6.5 folder by clicking the Browse button ... Next, click the Raw Codes button, the signal reception verification window will open. Pressing the buttons on any remote control in the window should accept packets of the type “Pulse: 300, space: 4000”, if nothing happens, you need to check the correctness of the assembled IR receiver circuit, whether the parameters are correct and whether the COM port number is correctly specified. If packets are accepted, then the assembled scheme can be considered valid. Close the window and return to the program settings window.

After that, you need to specify the Winlirc driver, which model of the remote control it will work with, for this you need to select the remote control file in the config line by clicking the Browser button ... and click the OK button in the settings window. You can get the file to your remote control by downloading it from the site of the Winlirc driver developer.
(http://lirc.sourceforge.net/remotes/) or by sending a request for a free receipt to DeviceCTRL@Mail.ru with the note "remote file" (specify the remote control model). That's it, winlirc is set up! Click Hide Winlirc and the program will minimize to tray. Press the remote control button and Winlirc will respond to pressing only the selected remote control, which will be signaled by flashing in the round icon tray. If you did not find the remote control file for your model, or you do not know the model or for other reasons you cannot select the remote control file, you can create it (train Winlirc on any remote control). To learn Winlirc, in the config line, manually specify the path and name of the new file to which the learning result will be written, for example:

Click Learn - a window will appear to learn Winlirc.

To begin, the program will ask you to enter the name of the remote control -
Please enter a name for this remote. Enter an arbitrary name for the remote control and do not use SPACE when entering!
Then Winlirc will ask you to enter the recognition percentage (from 1% to 99%)
Desired margin of error for this remote? (1-99, enter = 25) .
The higher the percentage, the more severe Winlirc will recognize the received signal in the future (if you choose 99%, Winlirc most likely will not respond to the signal from the remote control, since the signals from the remote control are not stable and not ideally the same), the smaller the parameter By that, Winlirc will be more loyal to the received signals (if you choose 1%, then Winlirc will respond to the remote control, but it can confuse the buttons and react to interference). Experimental studies have shown that it is optimal to introduce 40%. Enter and press enter, then Winlirc will write
Gap and length?write nothing in the line and press enter. Then the program will ask you to press the same any button the necessary number of times in order to analyze the type of signal transmitted from the remote control. Press and release until Winlirc writes:
To finish recording buttons, enter a blank button nameButton 1 name?Winlirc is ready to enter the button name.
Next you need to make all the data buttons remote. To do this, you enter the name of the button (DO NOT USE SPACES!), Press enter and then Winlirc will require you to press and not release the button whose name you entered
Please press and hold down the 'INTRODUCED_VAMI_NAME_KNOTS' button until told.While pressing the remote control button, Winlirc will receive data from the remote control, which will be indicated by an increase in the value of “matches =”
Keep the button pressed until Winlirc prompts you to save the button. (Advice: do not hold the button, but poke it very quickly.) You can refuse it if there are a lot of errors (the number of errors is displayed in the value “faults =”), while the name of the button and pressing must be repeated, and also agree, then Winlirc will record the result and prompt you to enter the name of the next button.

Entering all the necessary buttons one after another, the program will write everything into a file. If you want to finish entering the buttons, enter not the name of the button, but leave the field blank and press enter, while Winlirc will inform you that the configuration has been saved. We press everywhere ok. That's it, winlirc is set up! Click Hide Winlirc and the program will minimize to tray. Press the remote control button and Winlirc will begin to respond to a click on the trained remote control, which will be signaled by flashing in the round icon tray.
After that, restart the program Device controller, which can be downloaded here. It will automatically find the external Winlirc driver. Now, when you press the button on the remote control, Winlirc will transmit the data to the Device controller about pressing via TCP / API and the name of the remote control and the name of the button will be displayed in the program.

If you have a firewall and asks for the Winlirc and Device Controller connection, then you need to allow it, otherwise it will block the data transfer.
After that you need to assign a command to the buttons, for which you need to familiarize yourself with
interface of the program and learn how to work in it
On this, I finish my modest narration about the unbroken beast of Vindovs and his subordinate Lirke.