Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Resistor ladder assistance please

  1. Aug 7, 2014 #1
    I am trying to create a ladder of resistors that is connected to a set of buttons where when pushed (by themselves or in combination) will give me different voltages (which will then be measure by a micro controller). I need 16 combinations in total. I am currently using the attached circuit, I am using a dip switch with 8 channels to attempt the 16 channels, but I cant get to 16 without weird combinations (problem). If anyone can think of a way to fix this with my current setup I would be very happy, but if you have a better idea (circuit, switch, etc) please let me know.

    http://s46.photobucket.com/user/rocker_j_batman/media/image.png.html?filters[user]=14513887&filters[recent]=1&sort=1&o=3

    http://s46.photobucket.com/user/rocker_j_batman/media/image.png.html?filters [Broken][user]=14513887&filters[recent]=1&sort=1&o=3

    here is the setup

    http://s46.photobucket.com/user/rocker_j_batman/media/IMG_2356.jpg.html?filters[user]=14513887&filters[recent]=1&sort=1&o=0



    http://s46.photobucket.com/user/rocker_j_batman/media/IMG_2357.jpg.html?filters[user]=14513887&filters[recent]=1&sort=1&o=1

    http://s46.photobucket.com/user/rocker_j_batman/media/IMG_2356.jpg.html?filters [Broken][user]=14513887&filters[recent]=1&sort=1&o=0

    http://s46.photobucket.com/user/rocker_j_batman/media/IMG_2358.jpg.html?filters[user]=14513887&filters[recent]=1&sort=1&o=2

    http://s46.photobucket.com/user/rocker_j_batman/media/IMG_2357.jpg.html?filters [Broken][user]=14513887&filters[recent]=1&sort=1&o=1

    http://s46.photobucket.com/user/rocker_j_batman/media/IMG_2358.jpg.html?filters [Broken][user]=14513887&filters[recent]=1&sort=1&o=2


    all the pins on one side of the dip are connected together acting as the hot rail (green wire).
    The yellow on the bottom is ground, and the last green wire which is at the same node as the last resistor is the v out with is being measured by my micro cont. with respect to ground.

    There are some combinations that are almost exactly the same (1,2 = 5) that I would like to use, but they are so close even the micro (which reads to the thousandths place) can't tell them apart.

    Thanks

    Jonathon
     
    Last edited by a moderator: May 6, 2017
  2. jcsd
  3. Aug 7, 2014 #2

    berkeman

    User Avatar

    Staff: Mentor

    Welcome to the PF.

    The photobucket links don't work for me. Have you looked at how regular computer keyboards work, including the x-key "rollover" mechanisms (that's what lets you press several keys at a time and still decode them correctly without "ghosting")?

    http://en.wikipedia.org/wiki/Rollover_(key)

    :smile:
     
    Last edited by a moderator: May 6, 2017
  4. Aug 9, 2014 #3

    Baluncore

    User Avatar
    Science Advisor

  5. Aug 10, 2014 #4

    Baluncore

    User Avatar
    Science Advisor

Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Resistor ladder assistance please
Loading...