Resistor ladder assistance please

Click For Summary

Discussion Overview

The discussion revolves around designing a resistor ladder circuit that can produce 16 distinct voltage levels using a set of buttons. The participant is currently using a dip switch with 8 channels but is encountering issues with achieving the desired combinations without overlaps in voltage readings.

Discussion Character

  • Exploratory, Technical explanation, Debate/contested

Main Points Raised

  • One participant describes their current setup using a dip switch and expresses difficulty in achieving 16 unique voltage combinations due to overlapping outputs.
  • Another participant suggests looking into how computer keyboards manage multiple key presses without interference, referencing the concept of "rollover" mechanisms.
  • A third participant proposes using an R-2R ladder configuration, indicating that this could help in achieving the desired voltage outputs by connecting resistors to either the reference voltage or ground.
  • A fourth post provides a link to a resource on analog to digital converters, potentially relevant to the participant's needs.

Areas of Agreement / Disagreement

There is no consensus on the best approach to resolve the participant's issue, as multiple suggestions have been made, each proposing different methods without agreement on a single solution.

Contextual Notes

The discussion does not clarify the specific requirements for the resistor values or the reference voltage, which may affect the proposed solutions.

jsguitar93
Messages
1
Reaction score
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
 
Last edited by a moderator:
Engineering news on Phys.org
jsguitar93 said:
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

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 let's 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:

Similar threads

  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 2 ·
Replies
2
Views
8K