Rc signal help


Closed Thread
Results 1 to 40 of 43

Thread: Rc signal help

Hybrid View

  1. #1
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default

    Hi, Malc - the - bass - beat - filter - forum ...

    I do not understant your question so well ...

    When the transmitter is on ( and good link to Rx !!! ) the received channels durations are ALWAYS in the 800 - 2200 µS range ...

    WHATEVER you do with your sticks and switches ...

    THE ONLY exception is the LM1872 IC coder where pulses can " disappear" from the frame. But I didn't see such circuit in any of our R/C dedicated radios for, at least 30 years ...

    I Think you're mixing memory switch and missing ( or wrong ) pulse detector ...

    Nothing has to happend on a stick position change, here ...

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  2. #2
    malc-c's Avatar
    malc-c Guest


    Did you find this post helpful? Yes | No

    Default

    Don't talk to me about base beat filters !!

    Let me explain the test rig. I,m using a simple GWS 8ch RX. Ch5 is a straight switched channel on the TX. Ch5 on the RX is connected to the input pin on the PIC. With power applied to the RX and the TX turned on with the switch in one position you get a nice train of 1ms pulses appearing on the PIC input. - There is no mixining involved.

    I think whats happening here is we are getting confused over Dan's requirements are. He doesn't want to simply detect the presence of a signal, he needs to detect the change of state of that pulse from 1ms width to 2ms. So maybe the IF/THEN statement should read if pulselen <150 flash LED else LEDS is solid ??

    Does pulsein measure the time between positive going pulses, or is it triggered by the positive going pulse, then measures the time in 10us chuncks until it goes negative ? The reason I ask is that if it measures from one positive going pulse to the next then the value will be 20ms (or 2000 counts) and will thus always invoke a "no signal" responce ??

  3. #3
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Talking

    Heuuuuuu,

    Who's that DAN ????

    and what does he do in this thread ... may be your castle's ghost ???

    gecko was looking for a signal/no signal indicator ...

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  4. #4
    malc-c's Avatar
    malc-c Guest


    Did you find this post helpful? Yes | No

    Default

    Gecko and Dan are one and the same

  5. #5
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default

    soooooo,

    If Pulselen < 50 Then GoTo Blink ' no signal -> blink led
    If Pulselen > 50 Then GoTo Solid ' signal -> Solid led

    that's all !!!
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  6. #6
    malc-c's Avatar
    malc-c Guest


    Did you find this post helpful? Yes | No

    Default

    Something is really screwed up !

    Code:
    ReadPWM:
       pulsin GPIO.4,1,Pulselen                  ' pin 3 - read high pulse length                  
       If Pulselen  > 0  Then GoTo Blink      ' on  -> blink led
       GoTo ReadPWM
    I've tried various settings for "if pulselen >" and it makes no difference, the code just won't jump to the blink led section. I also tried the RCTIME as it mentions in the manual that RCTIME measures the time it takes for a pulse to change state from on to off.. even that didn't work.

    Dan (Gecko) - maybe you can use your 16F628 as a test bead and hook up your LCD to display the value of pulselen for a 1ms signal, and 2ms signal and then use that to set the threshold ?

  7. #7
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Talking La Pallice already told it

    Nothing surprising Malc ...

    If Pulselen > 0 Then GoTo Blink ... means the only "Solid led" possibility is Tx ON, but no frame sent ( pupil switch ON, but
    no pupil Tx )

    Too Bad !!!

    Now, ... understand you've received info from Gecko ... and we didn't !!! .... difficult to understand each others then !!!
    Last edited by Acetronics2; - 26th August 2006 at 13:13.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  8. #8
    malc-c's Avatar
    malc-c Guest


    Did you find this post helpful? Yes | No

    Default

    varified that the output from the RX is being received on input pin of the PIC and still no joy

  9. #9
    malc-c's Avatar
    malc-c Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Acetronics

    Now, ... understand you've received info from Gecko ... and we didn't !!! .... difficult to understand each others then !!!
    We've been communicating via e-mail when he started his pellet counter, and it was me that suggested he joined this forum... not received anything on this project so you are still in the loop !

Similar Threads

  1. Replies: 24
    Last Post: - 1st December 2009, 08:01
  2. Decoding an incoming infrared signal: need advice
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 9th May 2008, 16:28
  3. PIC16F684 + LCD to use the 256bytes of EEPROM - HELP
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 7th March 2008, 14:19
  4. Help with sound command in 2 programs
    By hyperboarder in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 5th July 2007, 20:36
  5. Rc PCM signal Read (Help)
    By jetpr in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 8th March 2005, 03:37

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