button input: what is necessary for a proofed behaviour


Closed Thread
Results 1 to 2 of 2

Hybrid View

  1. #1
    Join Date
    Jan 2005
    Posts
    72

    Default button input: what is necessary for a proofed behaviour

    hello all

    a bit a simple question at a first glance, but i have had some problems earlier with this....

    if i have a button some centimeters or a few meters away from a pic, what would be the best method to connect this? try to avoid all environment influences..

    perhaps to route out the ground to the button, and the input side with a pull up (10k?) to the pic? a capacitor (value, typ?) from the input line to ground? a 100 ohm resistor in serial to the input line near by the pic? (i have sawn this recommendation in a microchip app note in relation with a keyboard once, but i am not able to refind this document again....)

    thanks for some hints or links to other threads

    cheers
    i know it's only microcontrolling, but i like it!

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    mmm, well there's many different method from the opto coupler, to the funky MAX 232, to the current loop, to the simple 'just extend your wires - but do a software compensation method' and finally, use 2 i/o : one to send a query to the button, and the other to read it.

    Which one is the best? i think this might be different from an environment to another. (HV or not)
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. RB0 + Internal Pullup + Interrupt
    By Freman in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 10th August 2009, 11:11
  2. button input
    By naga in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 22nd October 2008, 14:24
  3. 3 HPWM channels
    By docwisdom in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 4th April 2006, 02:43
  4. Code check -- button not working
    By docwisdom in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 2nd March 2006, 22:43
  5. Can anyone help a beginner in a struggle?
    By douglasjam in forum mel PIC BASIC
    Replies: 1
    Last Post: - 5th May 2005, 23:29

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