Serial over the IR


Closed Thread
Results 1 to 13 of 13

Hybrid View

  1. #1
    Join Date
    Jun 2008
    Location
    Varese , Italy
    Posts
    326

    Default Serial over the IR

    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

  2. #2
    Join Date
    Oct 2009
    Posts
    583


    Did you find this post helpful? Yes | No

    Default Re: srial over the IR

    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.

  3. #3
    Join Date
    Jun 2008
    Location
    Varese , Italy
    Posts
    326


    Did you find this post helpful? Yes | No

    Default Re: srial over the IR

    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

  4. #4
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default Re: srial over the IR

    I would look for a processor with a DATA SIGNAL MODULATOR Module. Perhaps an 16F1825, or 16F1847 or such.
    Dave Purola,
    N8NTA
    EN82fn

  5. #5
    Join Date
    Jun 2008
    Location
    Varese , Italy
    Posts
    326


    Did you find this post helpful? Yes | No

    Default Re: srial over the IR

    thanks ,
    but I am linked to the 18f1320 now.
    Bye

  6. #6


    Did you find this post helpful? Yes | No

    Default Re: srial over the IR

    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

Members who have read this thread : 3

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts