- #1
jsguitar93
- 1
- 0
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 can't 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 [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 [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 [user]=14513887&filters[recent]=1&sort=1&o=1
http://s46.photobucket.com/user/rocker_j_batman/media/IMG_2358.jpg.html?filters [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
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 [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 [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 [user]=14513887&filters[recent]=1&sort=1&o=1
http://s46.photobucket.com/user/rocker_j_batman/media/IMG_2358.jpg.html?filters [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: