Rc signal help


Closed Thread
Results 1 to 40 of 43

Thread: Rc signal help

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    Gecko and Dan are one and the same

  2. #2
    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 " !!!
    *****************************************

  3. #3
    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 ?

  4. #4
    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 14: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 " !!!
    *****************************************

  5. #5
    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

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


    Did you find this post helpful? Yes | No

    Default

    Malc,

    An Update of this Thread would be welcome ...

    We do not know any more what is looked for, and what Gecko really wants ...
    or what YOU're looking for.

    Thanks for Everyone

    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 " !!!
    *****************************************

  7. #7
    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 !

  8. #8
    Join Date
    Aug 2006
    Posts
    91


    Did you find this post helpful? Yes | No

    Default

    Im in US so was sleeping... Your in the loop you have missed nothing other than Malc knows my name lol.

    I want to be able to get the RX signal and tell weather the stick is left or right or center and flash the LED acordingly. Thats it, nothing overly complicated. I just got up and will be checking the latest code. From what I read from Malcs response its still no go.

    Ok to make it make more sense lets think of it as a blinker on a car.
    Left on the stick will cause the 1 blinker to blink right on the stick will cause another to blink and center will cause none to blink.

    I have been just trying to blink or solid a led but that may make more sense.

    Malc I will try the LCD and see what I get. Wish I had a serial connect some how.
    Last edited by geckogrotto; - 26th August 2006 at 19:17.

  9. #9
    Join Date
    Mar 2006
    Location
    China
    Posts
    266


    Did you find this post helpful? Yes | No

    Default Have you tried timers?

    Hi,

    I am not a big fan of PULSIN. It is sometimes hard to know what is happening so I prefer setting up timers to measure things myself. There are several posts in this forum how to use timers and it is really not that hard. If you pick a 16 bit timer and set the prescaler to 1:1 you can measure up to 65 ms without overflowing at 4 Mhz and 2.55 ms with a 8-bit timer and getting a nice resolution. The RC signal shouldn't be hard to catch this way.

    If you have tried everything else, Timers might be worth a try.



    /me
    Last edited by Jumper; - 26th August 2006 at 19:35.

  10. #10
    Join Date
    Aug 2006
    Posts
    91


    Did you find this post helpful? Yes | No

    Default

    Ok im feeling really dumb but may have it worked out. Doing some tests
    Last edited by geckogrotto; - 26th August 2006 at 20:13.

Similar Threads

  1. Replies: 24
    Last Post: - 1st December 2009, 09:01
  2. Decoding an incoming infrared signal: need advice
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 9th May 2008, 17: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, 15:19
  4. Help with sound command in 2 programs
    By hyperboarder in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 5th July 2007, 21:36
  5. Rc PCM signal Read (Help)
    By jetpr in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 8th March 2005, 04: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