A discussion group for the PICMicro microcontroller. Also called the Microchip PIC, this list is dedicated to the use and abuse of this fine, simple, microcontroller. Close to topic posts are welcome, ie. general electronics.
infra red remote receiver in software - Lez - Sep 6 6:55:37 2006
I need to add simple infra red receive to a project.
I have a simple fob transmitter, I dont know what its standard is but
its an old car keyfob for the old car alarm.
I want to detect this signal (I supposes its a repeating pulse train)
and toggle a bit on one of the ports of a f88
has anyone any code from an old project i could modify?
Any pointers as to how to receive this and\or check its the right keyfob!
--
Lez
to unsubscribe, go to http://www.yahoogroups.com and follow the instructions

(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )
Re: infra red remote receiver in software - rtstofer - Sep 6 9:30:28 2006
--- In p...@yahoogroups.com, Lez
wrote:
>
> I need to add simple infra red receive to a project.
>
> I have a simple fob transmitter, I dont know what its standard is but
> its an old car keyfob for the old car alarm.
>
> I want to detect this signal (I supposes its a repeating pulse train)
> and toggle a bit on one of the ports of a f88
>
> has anyone any code from an old project i could modify?
>
> Any pointers as to how to receive this and\or check its the right
keyfob!
>
> --
>
> Lez
>
Most keyfobs are RF, not IR. However, if yours is IR then let's move on.
There are many different encodings of IR signals and that's the reason
that 'universal' remotes come with a large manual and list hundreds of
different code types.
So, you need to figure out what the code sequence looks like. The
easy way is with a logic analyzer connected to an IR detector.
Assuming this is out of the question, the next easiest way is to
program the PIC to timestamp the leading and falling edge of the IR
pulses and send this to a PC. Put the timestamps in a spreadsheet and
kind of draw the pulse train.
If you only need one or two of the pulse trains (likely the case for a
key fob), you can probably work through the timestamps fairly quickly.
You only need to differentiate, not fully decode.
There are a number of examples on the Web and there are some at the
Microchip site as well.
In the end, you are writing a PulseIn function (similar to function in
Basic Stamp) and that code is around the net as well. In fact, I used
that for a project basis a couple of years ago. I don't recall what
ever happened to that project.
Richard
to unsubscribe, go to http://www.yahoogroups.com and follow the instructions

(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )Re: infra red remote receiver in software - trentw_123 - Sep 21 3:14:44 2006
--- In p...@yahoogroups.com, Lez
wrote:
>
> I need to add simple infra red receive to a project.
>
> I have a simple fob transmitter, I dont know what its standard is but
> its an old car keyfob for the old car alarm.
>
> I want to detect this signal (I supposes its a repeating pulse train)
> and toggle a bit on one of the ports of a f88
>
> has anyone any code from an old project i could modify?
>
> Any pointers as to how to receive this and\or check its the right
keyfob!
>
> --
>
> Lez
>
Hi Lez,
As Richard said in his response definitely make sure it's IR and not
RC. I decided to take a simple two wheeled bot I had and add the
ability to control it with my TV remote. Here are a couple of sites
that definitely helped me get it all figured out and working:
Here is a great java applet to check what you are seeing on your scope
against the various popular IR encodings. This helped me narrow down
which format I was dealing with:
http://www.users.bigpond.com/pbhandary/pic/iralyze/sig_analysis.html
And this one has a ton of useful info on everything IR:
http://links.epanorama.net/links/irremote.html
And of course get a few GP1U52X IR receivers or the equivalent. One
of these and a resister and filter cap is all you'll need to begin
seeing the pulse train on your pic.
Good luck,
Trent
to unsubscribe, go to http://www.yahoogroups.com and follow the instructions

(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )Re: Re: infra red remote receiver in software - Lez - Sep 21 3:35:57 2006
> Here is a great java applet to check what you are seeing on your scope
> against the various popular IR encodings. This helped me narrow down
> which format I was dealing with:
>
> http://www.users.bigpond.com/pbhandary/pic/iralyze/sig_analysis.html
>
> And this one has a ton of useful info on everything IR:
>
> http://links.epanorama.net/links/irremote.html
>
> And of course get a few GP1U52X IR receivers or the equivalent. One
> of these and a resister and filter cap is all you'll need to begin
> seeing the pulse train on your pic.
>
> Good luck,
>
> Trent
Thanks I'll be catching up on this soon.
Lez
to unsubscribe, go to http://www.yahoogroups.com and follow the instructions

(You need to be a member of piclist -- send a blank email to piclist-subscribe@yahoogroups.com )