Jumper to enter setup


Closed Thread
Results 1 to 12 of 12

Hybrid View

  1. #1
    Join Date
    Mar 2010
    Posts
    52


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Acetronics View Post
    Would be easier you to tell what you want to do with those " jumpers " ... a jumper is someting easily removable ... so, there's something I do not understand here ...

    Alain

    soft example:

    Jumper is active LOW

    Code:
    '******************************************************************************
    ' check if programming jumper not forgotten ...
    '******************************************************************************
     delay = 0
     BUTTON Prog,0,255,0,delay,1,mesurav
     
    oubli:       ' infinite loop ... jumper MUST be placed ...
     error = 1 ' Blink the led !!!
     PAUSE 50
     error = 0
     PAUSE 50
     
     GOTO oubli
     
    '****************************************************************************** 
    '******************************************************************************
    ' Measure programming pulses
    '******************************************************************************
    '******************************************************************************
     
     
    '******************************************************************************
    Mesurav: 'Measure Forward Max pulse
    '******************************************************************************
     Show = 1 ' programming led ON
     Entree = 0
     
     GOSUB Mes
    ...
    Sorry, basically, all the jumper is doing is on boot it the Pic check if it is "on" and then goes into a setup mode to sense the Transmitter stick location.

    What I have done this evening is resolder another board and manged to bridge accross on another PIN (one I had designed onto the same PCB for LED lighting) and got it to work. Its not "pretty" but now functional. I would still like to find a way to use the pins that are now unconnected untill the jumper is installed and then pulled up to +ve.

    Worst case, is there any harm of leaving the pins floating if I am not using them for input or output? would mean I can use these PCBs for now and then fix the design in the next batch I have printed (sounds commercial, :-), not for sale but making some onboard glow / LED light drivers for some mates at the flying field.

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Make all of the unused pins an OUTPUT and code them LOW near the beginning of your program.
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107


    Did you find this post helpful? Yes | No

    Default

    Again, the method I outline above will allow you to determine if a pin is completely open, or else connected to one of the rails via a resistor.

    I had exactly the same case, where a board layout was incorrect. I needed to figure out if a jumper was on or not. "Little green wires" or added resistors were not an option.

    I'm not advocating this method for production. But it can fix a bad situation.
    Charles Linquist

  4. #4
    Join Date
    Mar 2010
    Posts
    52


    Did you find this post helpful? Yes | No

    Default

    Hi Charles,

    I will give your option a go tonight, :-), should work for what I need it to do. Was thinking to monitor the pin for a few cycles and if it floated to read it as open and if it was high to read it as closed / Jumper on.

    had a closer look at the circuit and I may be able to squeeze a 0402 or 0805 under the PIC's socket from the pin to the GND track, although there are no pads it should solder to the track - 0.25mm track width - if i can get it in there then I would read the pin as LOW for "open / jumper off" and high for "closed / jumper on" :-)

    I like your option though as it keeps the compnent count down which is what I was aiming for as hand soldering 0402's is quite a challenge, :-)

    Many Thanks

    Kind regards
    Rob

  5. #5
    Join Date
    Mar 2010
    Posts
    52


    Did you find this post helpful? Yes | No

    Default

    Error, :-( looked at it last night and cant use the track under the PIC, will have to try the "Slam-read" option which seems viable or use the other PIN and leave that side empty until I have some more printed.

    Question to Alain, have you manged to code a section in any programs you could share where you check if the user has a Futaba or a JR TX?

    It seems the PIC reads Throttle low-high on a JR as +- 100-200 and a futaba as +- 200-100.

    Cheers
    Rob

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