control my embedded system by infrared remote controller
Someone was saying that I have to detect the infrared signal from the remote using serial port. Is that necessary?
NO, the simplest connection is to use an IR LED, connected to PORTC2 of a PIC like 16F877a for the transmitter side. RC2 because it is a PWM output via suitable config. PWM required because we want to modulate the signal to 38kHz carrier frequency.
Hi, Don't . Better use an interrupt pin together with an internal timer. simply time the time between interrupt for 1 and 0 decoding.
Paul.
PaulHolland said:You generate the pulses by delay routines and detect them by interrupt and counting the time between two interrupts with an internal timer. This way you can do other processing jobs between the receiving of IR pulses.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?