![]() ![]() In that case, I can press one of the buttons which closes all media players, and launches/activates/maximizes a specific one. If more than one is found, it sends to whichever is active if none are, it uses a speech synth to say it can’t determine which is correct. If only one is found, it makes it the active window (if it’s not already), then sends the appropriate simulated keystroke. Then it scans the open window list for known media players. It decodes the signal based on the button codes manually determined also taking time and number of repetitions to account to filter out both false detections and needless repetitions (but still allowing auto-repeat when a button is held down). #Mediacenter remote softwareThe software is written in VB.NET because I’m a career Windows dev, and it’s the language I code fastest in so preferred for personal projects but it could be written for or in anything. Second, ignoring any code that is only received once helps reduce false detections. First, the receiver often fails to receive the first repetition or two as its AGC adjusts to the new signal. IIRC, for example the UR47A repeats 5x for the initial button press, and 2x for subsequent auto-repeats when the button is held down. You’ll notice that codes are sent repetitively. If the remote supports several RF protocols, try each, some may work better than others in terms of buttons supported, code uniqueness, etc. Then fire up a terminal program that displays input in hex, and mash buttons on the remote to learn the codes for each button. Does require some RS-232 status lines to be high (I forget which) as it takes power from them but otherwise ignores their state set them all high and you’re covered. #Mediacenter remote serialPreferred because it plugs into a serial port (or serial-to-USB adapter), so it’s universal and easy to use there’s a newer version that connects directly via USB, but that requires using X10’s API, which I’d rather avoid. The RF receiver is the MR26A, also out of production. Another by IBM sent the same code for Play, Pause, and Stop (wth?) and no codes at all for many buttons. The newer UR74A doesn’t auto-repeat when you hold down something like fast forward, which limits its usefulness. I tried a couple of others with poor results. Now out of production, but it’s my preferred one, and they can occasionally be found on Ebay. (Apologies to others for what turned out to be a long post). I can provide a bit more detail for you though. I’m bad about that, very few of my projects are publicly documented. The state of the 4 keys in the column appear in the inputs, and some key press in other columns is detected on those inputs.)Īfraid not. (Connect one column to output 1 (high), the others and row inputs to pulldown. Double press events can be detected, but gets more complex, and can’t be distinguished from certain combinations of 3 or more presses. Then only 7 inputs and (optional) resistors are needed instead of 12.Ī matrix detects no-press and single press states. Connect one end of each button to a vertical wire, 3 columns to a GPIO output, the other into horizontal rows, 4 rows to 4 inputs. One could also use a matrix instead of 1 GPIO per key as long as you don’t need to read simultaneous press events, and you have access to both pins of each switch. you are willing to have the chip fried as punishment for a software configuration error. A resistor connected to a GPIO input is not needed as long as you can be assured the GPIO won’t be configured as an output, i.e. An external pullup (R1 in his schematic) connected to VCC is not needed as the RPi input ports can be configured with a pullup resistor. ![]() XP users may require this driver, or follow these instructions.įor help with the remote or any other questions, please post on Interact in the Media Center Q & A thread here.There is a simpler way to use GPIO on an RPi from the circuit shown in Kees’ site. The emitter has a peel-off adhesive on one side, but is transparent enough that the usual remote used with the device will still work. You can attach the emitter to the IR detection lense of the equipment you want to control, such as a cable set top box, a receiver, or a TV.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |