From owner-freebsd-hardware Sat Jun 17 10:56:53 2000 Delivered-To: freebsd-hardware@freebsd.org Received: from arg1.demon.co.uk (arg1.demon.co.uk [194.222.34.166]) by hub.freebsd.org (Postfix) with ESMTP id A3DE237B63F for ; Sat, 17 Jun 2000 10:56:49 -0700 (PDT) (envelope-from arg@arg1.demon.co.uk) Received: from localhost (arg@localhost) by arg1.demon.co.uk (8.8.8/8.8.8) with ESMTP id SAA07225; Sat, 17 Jun 2000 18:56:14 +0100 (BST) (envelope-from arg@arg1.demon.co.uk) Date: Sat, 17 Jun 2000 18:56:12 +0100 (BST) From: Andrew Gordon X-Sender: arg@server.arg.sj.co.uk To: Nate Lawson Cc: freebsd-hardware@freebsd.org Subject: Re: LCD panel/buttons In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hardware@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Fri, 16 Jun 2000, Nate Lawson wrote: > > Also, we hope to add an IR remote. I was looking at the keyspan.com USB > unit that maps IR to keystrokes. This seems like a good thing but it's > also a bit pricey. Has anyone used the IR port on PC motherboards to > have a universal remote device for FreeBSD? Any other suggestions would > be great. "IR port on PC motherboards" generally means IRDA. If you had in mind a TV-style remote to be used across the width of a room, IRDA is useless: it uses a very crude modulation scheme (pulse = 0, no pulse = 1) and so it has very short range (about 1m) and requires sender/receiver to be pointing directly at each other. TV remotes typically use a more robust coding scheme, modulating a carrier of 38KHz or 56KHz. I have done RC5 (one of the popular encoding schemes) on FreeBSD by bashing bits on a parallel port - driving an IR LED for transmit, and using one of the integrated receiver devices (eg. Sharp IS1U60: photodiode, amplifier, detector, integrator all in a 3-pin package for < $1) for reception. However, this is all a bit too fast to do reliably in software - for receive you need to time pulses that are nominally 888us or 1778us wide. For serious applications, I use a PIC12C508 to offload the real-time stuff - still only a total component cost of about $2. As well as TV-type remotes, you can get qwerty keyboards using similar modulation schemes that you can receive on the same hardware; these have slightly less range/robustness (higher datarate -> shorter pulses), but still work OK. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hardware" in the body of the message