Resistor ladder assistance please

In summary, Jonathan is trying to create a ladder of resistors that will give him different voltages. He is using a dip switch with 8 channels and is not able to get to 16 combinations without weird combinations. If anyone can think of a way to fix this with his current setup, he would be happy.
  • #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
 
Last edited by a moderator:
Engineering news on Phys.org
  • #2
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:
  • #5



Thank you for sharing your circuit and setup, Jonathon. It seems like you have a good start on your resistor ladder. However, I can see why you are having trouble getting to 16 unique combinations. It looks like you are using an 8-channel dip switch, which would only give you a maximum of 8 unique combinations. In order to get to 16, you would need a 16-channel dip switch or use multiple 8-channel dip switches in parallel.

Alternatively, you could also consider using a digital potentiometer instead of a dip switch. A digital potentiometer is an electronic component that can function as a variable resistor and can be controlled digitally. This would allow you to have more precise control over the voltage output and give you more unique combinations.

Another option is to use a multiplexer or demultiplexer. These components can help you switch between different resistors in your ladder to create different combinations. This would require some additional circuitry, but it may give you more flexibility in creating your 16 combinations.

Overall, I would suggest exploring these alternative components and seeing which one works best for your specific application. I hope this helps and good luck with your project!
 

Related to Resistor ladder assistance please

1. What is a resistor ladder?

A resistor ladder is a circuit made up of multiple resistors connected in series or parallel, often used to manipulate the voltage or current in a circuit.

2. How does a resistor ladder work?

A resistor ladder works by dividing the input voltage into smaller increments using multiple resistors. Each resistor contributes to the overall resistance and affects the output voltage or current depending on the circuit configuration.

3. What is the purpose of a resistor ladder?

The purpose of a resistor ladder is to manipulate the voltage or current in a circuit to achieve a desired output. It can be used in various applications such as digital-to-analog converters, voltage regulators, and audio amplifiers.

4. How do I choose the right resistors for a resistor ladder?

The choice of resistors for a resistor ladder depends on the desired output and the total resistance needed. It is important to consider the tolerance, power rating, and temperature coefficient of the resistors to ensure proper functionality.

5. Can I use different types of resistors in a resistor ladder?

Yes, different types of resistors can be used in a resistor ladder as long as they have the same resistance value. However, it is recommended to use the same type of resistors to ensure consistent performance and accuracy.

Similar threads

  • Electrical Engineering
Replies
3
Views
3K
  • Biology and Chemistry Homework Help
Replies
6
Views
2K
  • Introductory Physics Homework Help
Replies
3
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
4
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
1K
Replies
2
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
5
Views
1K
  • Biology and Chemistry Homework Help
Replies
12
Views
2K
  • Mechanical Engineering
Replies
1
Views
1K
Replies
2
Views
6K
Back
Top