PDA

View Full Version : Serout IR TX



Jųan
- 28th January 2006, 05:08
A friend gave me a remote control, I used the following line to receive data into it, which works. The receiver side is using a 16F877 @ 20Mhz with a 38 Khz module.



MAIN:
Serin2 portb.0,813,100,MAIN,[key] ' Receive data and assign to key
SEROUT lcd,T9600,[254,128,key] ' Display key value on serial LCD
pause 10
GOTO MAIN

But now I want to make my own remote control using a 16F628 @ 4Mhz. Ive tried using this line amongst other combinations....

Serout2 portb.3,813,["A"] ' Send the letter A

But nothing seems to work. Ive also attached a schematic of my transmitter. Ive read other posts and visited rentron for examples but Im not doing something right. Any pointers or advice is appreciated

Juan

arniepj
- 28th January 2006, 20:53
Take a look at the IR tutorial here.http://www.rentron.com/Infrared_Communication.htm

Jųan
- 28th January 2006, 23:31
Thanks arniepj, I will have a look at the article

Bruce
- 28th January 2006, 23:53
Here's a better article for IR serial http://www.rentron.com/Micro-Bot/IR_Serial.htm