How would you do this?


Closed Thread
Results 1 to 24 of 24

Hybrid View

  1. #1
    Join Date
    Jan 2010
    Posts
    88


    Did you find this post helpful? Yes | No

    Default Re: How would you do this?

    I'm looking at 4 inputs though. Two for a positive trigger and two for a negative trigger.

    My thought was to pull the positive ones low and the negative ones high to give a distinct change.

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


    Did you find this post helpful? Yes | No

    Default Re: How would you do this?

    I give up.
    Charles Linquist

  3. #3
    Join Date
    Jan 2010
    Posts
    88


    Did you find this post helpful? Yes | No

    Default Re: How would you do this?

    Here are two circuits I've put together. One is a voltage divider and the other is an optocoupler setup. The positive inputs on the VD setup has a cap and zener for debouncing and has pulldown resistors. The negative inputs have a pullup resistor. The VD setup allows for only one input to trigger a new routine. The opto setup requires the LED circuit to be completed in order to trigger a new routine, so the setup has to work as a pair instead of individually.

    In this case, is the VD setup the better setup to use? Disregard the resistor values and they were just thrown in there.

    Thanks,
    Tony
    Name:  vd.gif
Views: 4351
Size:  7.7 KB

    Name:  opto.gif
Views: 5255
Size:  31.8 KB

  4. #4


    Did you find this post helpful? Yes | No

    Default Re: How would you do this?

    Charles,
    Good point about clamp ability in pins (a few pins don't have that clamp diode), but why are you using such low val resisters ? Voltage dividers with 50, 100-200K value resisters make any voltage/power dissipation insignificant. I tried a touch sensor to a/d pin through a 10 MEG ohm R (and diode) which instantly brought a/d val to full, (5 volt).
    Don

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