Searching \ for '[PIC]: building a remote control to capture and re' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page:
Search entire site for: 'building a remote control to capture and re'.

Exact match. Not showing close matches.
PICList Thread
'[PIC]: building a remote control to capture and re'
2002\04\10@145933 by iosif stalin

i am new to pic processors, and have a question.  i am using a pic to
record the pulse widths of low pulses from a remote control.  the
remote i am using is a standard 40khz modulated remote control for my tv
(hitachi).  i am then wanting to take those pulse widths, and output it to
a pin connected to an ir led, to change the television channels, volume,
power, etc.

i am using picbasic pro, and am programming everything in basic.  the
problem is, i am trying to use the pulsin function to record the time a
pin stays low.  i know that my remote control sends
out about 50 pulses, the shortest being about 1ms.  i am running the
pulsin function in a while loop, looping back if pulsin returns a zero.  i
am using a 16f874 with a 20mhz clock, but pulsin doesnt seem to be
catching all the pulses.  i have also tried using the ccp1 interrupt to
count low pulse edges, however, if i want to reproduce the data sequence,
i will need to generate an interrup on both rising and falling edges,
since i believe the pulses are not pwm.

so can i use pulsin/pulsout under basic?  or should i code it in
assembly?  or should i just use interrupts?  has anyone else done
something similar to this?  any help would be greatly appreciated.


"in 1972 a crack-commando unit was sent to prison by a military court for
a crime they didnt commit.  these men promptly escaped from a maximum
security stockage to the los angeles underground.  today, still wanted by
the government, they servive as soldiers of fortune.  if you have a
problem, if no one else can help, and if you can find them, maybe you can
hire the a-team."

-- Going offline? Don't AutoReply us!
email with SET PICList DIGEST in the body

2002\04\10@190406 by Herbert Graf

{Quote hidden}

       It might be better to use an IR receiver module to receive the signals, the
receiver module will filter out the 40kHz carrier resulting in much slower
pulses for you to detect. The only problem is you would have to regenerate
the carrier when outputting, which is easily done with a 555 timer. TTYL

-- Going offline? Don't AutoReply us!
email with SET PICList DIGEST in the body

More... (looser matching)
- Last day of these posts
- In 2002 , 2003 only
- Today
- New search...