send data between 2 microcontrollers by ir(infrared)


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2011
    Posts
    13

    Unhappy send data between 2 microcontrollers by ir(infrared)

    hi for all ........it's long time ago since i start serch for complete my idea but i failed .....
    i am trying to send data(like numbers 1,2,3,....) between two pic16f628a by ir ,i have tested my idea ...as next
    in trans section i configured pwm to 38khz and i used serout2 command to send data as next
    start:
    serout2 portb.0,813,[23,5,8,9]
    pause 100
    goto start
    ------------------------
    in recieve section
    i used serin2 and i connect lcd to display the recieved data
    x var byte
    y var byte[4]
    pause 300
    lcdout $fe,1
    start:
    serin2 portb.0,813,300,timeout,[wait(23),str y\3]
    lcdout dec y[0],dec y[1],dec y[2]
    goto start
    for test i connect trans pin to recieve pin directly and i have recieved instead of numbers 3,8,9 ...numbers 224,273,223
    can any one help me ....please........please

  2. #2
    Join Date
    Nov 2006
    Location
    Murrieta, CA
    Posts
    62


    Did you find this post helpful? Yes | No

    Default Re: send data between 2 microcontrollers by ir(infrared)

    What values are you receiving without declaring them as "DEC" ?

  3. #3
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default Re: send data between 2 microcontrollers by ir(infrared)

    Bruce has many examples on his site, here is one you might find useful:
    http://www.rentron.com/Infrared_Communication.htm
    and his site index:
    http://www.rentron.com/PicBasic/Rentron.htm
    you can spend (invest ?) lots of time in here.
    Last edited by Archangel; - 23rd November 2011 at 06:22.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

Members who have read this thread : 3

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

Tags for this Thread

Posting Permissions

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