Good day to all in this forum,
I am trying to send serial UART data over the IR using rx and tx at 38 Khz with a baud rate of 1200.
Does anyone have any sample schematics and a sample code please ?
Thanks for helping.
Ambrogio
Good day to all in this forum,
I am trying to send serial UART data over the IR using rx and tx at 38 Khz with a baud rate of 1200.
Does anyone have any sample schematics and a sample code please ?
Thanks for helping.
Ambrogio
What hardware are you using, and how far have you got with the project?
Amazing what you can find when you google the subject !
http://nrqm.ca/2011/08/transmitting-...over-infrared/
OK this uses an arduino, but it explains the concept https://learn.sparkfun.com/tutorials/ir-communication
Last edited by Scampy; - 26th May 2017 at 09:44.
Thanks,
at the moment my hardware consist of pic 18f1320, a tsal6100 emitter and tsop4038 receiver.
The emitter is driven by a bs170 mosfet and it handles about 200 mA of current.
I did transmit some burst of 38khz carrier and I got the required distance that is around 20 meters: that is OK for me now.
The small piece of code is like this:
LOOP:
HPWM 1, 127, 38000
PAUSE 1
HPWM 1, 0, 38000
PAUSE 100
GOTO LOOP
Now how could I modulate the carrier using the serial ( UART data ) ?
Thanks
Ambrogio
I would look for a processor with a DATA SIGNAL MODULATOR Module. Perhaps an 16F1825, or 16F1847 or such.
Dave Purola,
N8NTA
EN82fn
thanks ,
but I am linked to the 18f1320 now.
Bye
This may help, achieved from Rentron. Be sure to copy any info that you like. It may not be available in the future.
https://web.archive.org/web/20120504...munication.htm
Bookmarks