Control NEXA 230V RF Switch


Closed Thread
Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Dec 2005
    Posts
    1,073


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Dennis View Post
    Code:
    DEFINE PULSIN_MAX 11200				'>11200 RETURNS 0
    You need to change this. I suggest you make it 120% of the greatest expected pulse. Battery operated transmitters can vary ±10-15%.

    Also, there is no 1:1 correspondence between uS and the units used by PulsIn. You need to study and understand the manual. At 20MHz, PulsIn units are 2uS.

  2. #2


    Did you find this post helpful? Yes | No

    Default pulsin max

    Hi again Dave

    Hope all is well with you :-)

    Thanks for the reply.

    As always it has sent me hurtling off to get more info about pulsin and pulsout

    So regarding your reply ...

    Assuming the reciver side is also @ 20 MHz and T =350uS and 32T as per the above code is 11200 would that mean a figure of 13440 would be acceptable
    Code:
    DEFINE PULSIN_MAX 13440 >13440 returns a 0
    or have I done the wrong by taking 120% of 11200
    Should it be less ?
    The reason I am asking is what happens if the pulse is less than 13440 , let's say it is the actual max without variance and is spot on as 11200 that arrives...do we just discard it ?
    If I take max as 11200 and then take off 15% that leaves me with a figure of
    9520.
    This seems to be the one I should use because if the pulse is anything less than this then we should discard it right ?
    Now i have a MIN and a MAX for the received initial pulse and something to test against right.
    So...
    IF pulsein < 9520 or > 13440 then discard it

    Is that correct ?

    Kind regards
    Dennis

    Do i have it correct so far ?

Similar Threads

  1. Simple RF remote control code
    By Bruce in forum Code Examples
    Replies: 13
    Last Post: - 22nd January 2014, 10:45
  2. Need help - Just want to make a simple switch using RF Modules
    By financecatalyst in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 25th October 2009, 10:38
  3. Using input from Switch to control a loop
    By MrRoboto in forum mel PIC BASIC
    Replies: 9
    Last Post: - 2nd February 2009, 05:02
  4. PIC to control NEXA remoteswitch
    By Fredrick in forum mel PIC BASIC Pro
    Replies: 21
    Last Post: - 8th January 2009, 11:29
  5. RF Remote control
    By eralp in forum General
    Replies: 3
    Last Post: - 10th January 2007, 23:15

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