VS1838B remote


Closed Thread
Results 1 to 19 of 19

Thread: VS1838B remote

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default Re: VS1838B remote

    I'm thinking the way to do it is use COUNT and just look for X amount of pulses from the 38khz ired xmtr. If > X then high a pin.
    Should work I hope. ?

  2. #2


    Did you find this post helpful? Yes | No

    Default Re: VS1838B remote

    Bummer. Never used COUNT before, maybe I'm missing something?

    CT VAR WORD

    COUNT portb.5, 1000, CT
    IF CT > 10 then
    HIGH porta.7
    CT = 0
    ENDIF

    Getting nothing. Using 16f628a and 4mhz.

    I have no doubt there are more than 10 pulses in a second with the ired data out.

  3. #3


    Did you find this post helpful? Yes | No

    Default Re: VS1838B remote

    Presto -- thought I had the count set at 10 (was 20) -- working great now.
    Like the way I have conversations with myself on the forum?

    Kind of a cool way to use these ired units for a simple foolproof switch actually.

  4. #4
    Join Date
    May 2012
    Location
    Merseyside, UK
    Posts
    237


    Did you find this post helpful? Yes | No

    Default Re: VS1838B remote

    Hi ...

    I am using same code ish

    count ir,500,realtrig ' Looks for real trigger
    if realtrig >15 then 'if real ir then turn light on
    gosub Seconds 'then on 88 Seconds
    endif
    return
    Works fine for me also..... But I I am getting false triggers due to mains spikes (My circuit is on a 12v Battery then LDO down to 5v....Was wondering what your circuit looked like ... If I was missing anything maybe ...



    Andy

Similar Threads

  1. Remote Ip remote relay switch
    By jetpr in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 23rd June 2014, 17:07
  2. Remote control help
    By paulthegulll in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 2nd November 2010, 09:01
  3. IR/RF Remote Control
    By jhorsburgh in forum General
    Replies: 2
    Last Post: - 6th February 2008, 02:23
  4. need help in decoding RC-5 IR-remote
    By vu2iia in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 14th August 2007, 04:34
  5. Remote control
    By Radiance in forum General
    Replies: 2
    Last Post: - 6th August 2003, 15:13

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