View Full Version : Easy pic based infrared
Michael
- 13th January 2006, 16:25
I don't do a great deal of programming but wouldn't it be easy to do a pic infrared remote control? (I have PBP).
I have a bunch of 16c54 chips. (Are they current, by the way?)
Just monitor the state of the pusbuttons and xmit the data using SEROUT and possibly even generate the 38 or 40khz with pic?
Just use an Ired rcvr and a pic with SERIN on the receiver?
I though a couple of bytes of qualifier data and a data byte.
I have been goofing around with these Holtek chips and some others but they're constantly being discontinued.
JEC
- 13th January 2006, 17:04
Bruce has some excellent sample code for PIC-based IR comms at rentron.com. The PIC handles carrier generation as well.
John
Michael
- 14th January 2006, 14:59
Would these ired receiver modules like Sharp etc be able to demodulate the RS232 coming from a xmtr pic and it's infrared led?
I'm talking about the little shielded receiver modules.....sharp, panasonic, vishay etc.
Bruce
- 14th January 2006, 18:10
Yes. As long as your serial data is modulated at the IR detectors internal band-pass frequency.
Tips:
Use Vishay brand IR modules for reliable serial communications.
Select an IR LED that matches the peak spectral sensitivity of your IR module for max range.
Select IR LEDs with rise/fall times fast enough to support your intended serial data rates.
Over 2400bps, I recommend the TSOP7000 and 870nm GaAlAs IR LEDs. The TSHF5400 or TSFF5200 are outstanding. We use these in our Fyre-Fly for wireless IR communications up to 38,400bps, and wireles boot-loading with the MCS loader at 19,200bps.
Michael
- 14th January 2006, 20:52
Thanks very much Bruce. I thought I'd breadboard something....I'll keep your suggestions in mind.
I have a dozen Sharp 38khz receivers so I'll try them first...heck, even 1200 baud is fine for that matter...just want to transmit the condition of 3 or 4 switches.
Powered by vBulletin® Version 4.1.7 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.