IR-RS232 with pic 16F628A


Closed Thread
Results 1 to 12 of 12

Hybrid View

  1. #1
    aloncha's Avatar
    aloncha Guest


    Did you find this post helpful? Yes | No

    Default

    Thanks to both of you!
    I only want to make a simple communication and PIC 16F628A has on board PWM, but I don´t know how it works.
    Can you help me?

  2. #2
    Join Date
    Feb 2005
    Location
    Kolkata-India
    Posts
    563


    Did you find this post helpful? Yes | No

    Default Get the datasheet for TSOP1736

    Hi there,

    The mentioned sensor is a three pin IR sensor/demodulator. It receives a modulated stream of 38/36 KHz IR and gives the output via its pulled up open collector port. So the output for a valid 1 is 0 that is inverted. It works best when the duty cycle for the carrier (38KHz nominal depends on the last two digits of the sensor part no.).

    Take an AND gate. Feed 1 input with the 38KHz output from your PWM module. You can set up your PWM module in the PIC by the PBP HPWM command. Now feed the data (non-inverted) to the other input of the AND gate. Amplify (a higher current is needed for effective IR transmission over the ranage of 5 to 10 meters) the output of the AND gate and drive some IR LED. That goes for the Tx part.

    For the Rx part , just invert the output from the sensor and feed it to the PIC.

    for the software you can use the Serial Out and Serial In of PBP. A maximum possible speed is 2400bps.

    Regards

    Sougata

  3. #3
    aloncha's Avatar
    aloncha Guest


    Did you find this post helpful? Yes | No

    Default

    Sougata,

    Could you make some code examples in assembler about the Tx and help me?
    Thanks a lot!
    Alan

  4. #4
    Join Date
    Jun 2005
    Location
    Wisconsin
    Posts
    382


    Did you find this post helpful? Yes | No

    Default

    Hold on a second, this has already been done.

    I built one myself a few years ago and it worked great.

    http://www.fukushima.us/UIRT2/

    I have since upgraded to the newest usb version.

    http://www.usbuirt.com/

  5. #5
    aloncha's Avatar
    aloncha Guest


    Did you find this post helpful? Yes | No

    Default

    Thanks!
    But I want to create my own, so can you send me some code examples in assembly languaje, not an hex file???
    Again, thanks!

  6. #6
    Join Date
    Jun 2005
    Location
    Wisconsin
    Posts
    382


    Did you find this post helpful? Yes | No

    Default

    I can't send you anything, its not my code. You could contact the author and see if he is willing to send it to you.

  7. #7
    aloncha's Avatar
    aloncha Guest


    Did you find this post helpful? Yes | No

    Default

    Ok, can you send me his E-mail?

Similar Threads

  1. Replies: 17
    Last Post: - 12th April 2014, 02:17
  2. SMS via pic
    By kenandere in forum GSM
    Replies: 15
    Last Post: - 10th March 2010, 10:00
  3. Sending Commands from Visual Basic about IR to Pic
    By tne_de in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 29th April 2009, 06:09
  4. pic to pic ir link versus wired link : help please anyone
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 30th May 2008, 21:01
  5. PIC to RS232 interface
    By thon in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 12th February 2004, 02:01

Members who have read this thread : 0

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